From b64ed0bef576c2d80aeab2b587684c28355af023 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 26 Jun 2024 21:47:28 +1000 Subject: [PATCH] fix the container host pid --- .../infrastructure/prometheus-node-exporter/app/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/infrastructure/prometheus-node-exporter/app/deployment.yaml b/kubernetes/infrastructure/prometheus-node-exporter/app/deployment.yaml index 169f639..b84ceb1 100644 --- a/kubernetes/infrastructure/prometheus-node-exporter/app/deployment.yaml +++ b/kubernetes/infrastructure/prometheus-node-exporter/app/deployment.yaml @@ -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: