Merge pull request #349 from 3dwardch3ng/infra/node-exporter

fix the container host pid
This commit is contained in:
2024-06-26 21:47:55 +10:00
committed by GitHub

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: