Merge pull request #358 from 3dwardch3ng/infra/node-exporter
update node-exporter
This commit is contained in:
@@ -17,6 +17,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
hostPID: true
|
hostPID: true
|
||||||
|
hostIPC: true
|
||||||
topologySpreadConstraints:
|
topologySpreadConstraints:
|
||||||
- maxSkew: 1
|
- maxSkew: 1
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
@@ -24,9 +25,6 @@ spec:
|
|||||||
labelSelector:
|
labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: prometheus-node-exporter
|
app: prometheus-node-exporter
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
runAsGroup: 0
|
|
||||||
containers:
|
containers:
|
||||||
- name: prometheus-node-exporter
|
- name: prometheus-node-exporter
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
@@ -37,6 +35,8 @@ spec:
|
|||||||
mountPath: /host
|
mountPath: /host
|
||||||
readOnly: true
|
readOnly: true
|
||||||
mountPropagation: HostToContainer
|
mountPropagation: HostToContainer
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: node-volume
|
- name: node-volume
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|||||||
Reference in New Issue
Block a user