fix(infra-monitoring): add hostNetwork support for blackbox (e.g. vpn)
This commit is contained in:
parent
0e5e7d1bf9
commit
6ccca3dd2f
2 changed files with 8 additions and 1 deletions
|
@ -21,7 +21,12 @@ spec:
|
||||||
{{- toYaml .Values.commons.helm.release.driftDetection | nindent 4 }}
|
{{- toYaml .Values.commons.helm.release.driftDetection | nindent 4 }}
|
||||||
interval: 10m
|
interval: 10m
|
||||||
values:
|
values:
|
||||||
|
{{- if .Values.prometheus.exporter.blackbox.hostNetwork }}
|
||||||
|
hostNetwork: true
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
rollingUpdate:
|
||||||
|
{{- else }}
|
||||||
# to run icmp
|
# to run icmp
|
||||||
# Workaround: https://github.com/prometheus-community/helm-charts/issues/2360
|
# Workaround: https://github.com/prometheus-community/helm-charts/issues/2360
|
||||||
podSecurityContext:
|
podSecurityContext:
|
||||||
|
@ -31,6 +36,7 @@ spec:
|
||||||
# securityContext:
|
# securityContext:
|
||||||
# capabilities:
|
# capabilities:
|
||||||
# add: ["NET_RAW"]
|
# add: ["NET_RAW"]
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
selfMonitor:
|
selfMonitor:
|
||||||
|
|
|
@ -152,6 +152,7 @@ prometheus:
|
||||||
exporter:
|
exporter:
|
||||||
blackbox:
|
blackbox:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
hostNetwork: false
|
||||||
ingress:
|
ingress:
|
||||||
# -- enable ingress for blackbox-exporter
|
# -- enable ingress for blackbox-exporter
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue