fix the container host pid

This commit is contained in:
2024-06-26 21:47:28 +10:00
parent 224b310b71
commit b64ed0bef5

View File

@@ -16,6 +16,7 @@ spec:
app: prometheus-node-exporter
spec:
hostNetwork: true
hostPID: true
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
@@ -30,7 +31,6 @@ spec:
- name: prometheus-node-exporter
image: prom/node-exporter
args:
- "--pid=\"host\""
- "--path.rootfs=/host"
- "--cap-add=SYS_TIME"
volumeMounts: