Merge pull request #741 from 3dwardch3ng/infra/node-exporter
update node-exporter
This commit is contained in:
@@ -14,10 +14,15 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
app: prometheus-node-exporter
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/path: '/metrics'
|
||||
prometheus.io/port: "9100"
|
||||
spec:
|
||||
hostNetwork: true
|
||||
hostPID: true
|
||||
hostIPC: true
|
||||
enableServiceLinks: false
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
@@ -29,16 +34,27 @@ spec:
|
||||
- name: prometheus-node-exporter
|
||||
image: prom/node-exporter
|
||||
args:
|
||||
- "--path.rootfs=/host"
|
||||
- "--path.rootfs=/root"
|
||||
- "--path.sysfs=/host/sys"
|
||||
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
|
||||
- --collector.netclass.ignored-devices=^(veth.*)$
|
||||
ports:
|
||||
- containerPort: 9100
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: node-volume
|
||||
mountPath: /host
|
||||
- name: sys
|
||||
mountPath: /host/sys
|
||||
mountPropagation: HostToContainer
|
||||
- name: root
|
||||
mountPath: /root
|
||||
readOnly: true
|
||||
mountPropagation: HostToContainer
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumes:
|
||||
- name: node-volume
|
||||
- name: sys
|
||||
hostPath:
|
||||
path: /
|
||||
type: Directory
|
||||
path: /sys
|
||||
- name: root
|
||||
hostPath:
|
||||
path: /
|
||||
Reference in New Issue
Block a user