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