infra/k8s/operators/kube-prometheus/node-exporter-patch.yaml

20 lines
532 B
YAML
Raw Normal View History

2024-07-10 04:10:53 +00:00
---
- op: replace
path: "/spec/template/spec/containers/0/args/0"
value: "--web.listen-address=0.0.0.0:9100"
- op: add
path: "/spec/template/spec/containers/0/ports"
value:
- containerPort: 9100
hostPort: 9100
name: http
- op: replace
path: "/spec/template/spec/containers/1/args/0"
value: "--secure-listen-address=[$(IP)]:9101"
- op: replace
path: "/spec/template/spec/containers/1/ports/0/containerPort"
value: 9101
- op: replace
path: "/spec/template/spec/containers/1/ports/0/hostPort"
value: 9101