fix the container host network mode

This commit is contained in:
2024-06-26 21:03:56 +10:00
parent fbc2b73f49
commit 224b310b71

View File

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