Merge pull request #349 from 3dwardch3ng/infra/node-exporter
fix the container host pid
This commit is contained in:
@@ -16,6 +16,7 @@ spec:
|
|||||||
app: prometheus-node-exporter
|
app: prometheus-node-exporter
|
||||||
spec:
|
spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
|
hostPID: true
|
||||||
topologySpreadConstraints:
|
topologySpreadConstraints:
|
||||||
- maxSkew: 1
|
- maxSkew: 1
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
@@ -30,7 +31,6 @@ spec:
|
|||||||
- name: prometheus-node-exporter
|
- name: prometheus-node-exporter
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
args:
|
args:
|
||||||
- "--pid=\"host\""
|
|
||||||
- "--path.rootfs=/host"
|
- "--path.rootfs=/host"
|
||||||
- "--cap-add=SYS_TIME"
|
- "--cap-add=SYS_TIME"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
Reference in New Issue
Block a user