fix(infra-monitoring): add hostNetwork support for blackbox (e.g. vpn)

This commit is contained in:
WrenIX 2024-06-15 10:49:52 +02:00
parent 0e5e7d1bf9
commit 6ccca3dd2f
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
2 changed files with 8 additions and 1 deletions

View file

@ -21,7 +21,12 @@ spec:
{{- toYaml .Values.commons.helm.release.driftDetection | nindent 4 }}
interval: 10m
values:
{{- if .Values.prometheus.exporter.blackbox.hostNetwork }}
hostNetwork: true
strategy:
type: Recreate
rollingUpdate:
{{- else }}
# to run icmp
# Workaround: https://github.com/prometheus-community/helm-charts/issues/2360
podSecurityContext:
@ -31,6 +36,7 @@ spec:
# securityContext:
# capabilities:
# add: ["NET_RAW"]
{{- end }}
serviceMonitor:
selfMonitor:

View file

@ -152,6 +152,7 @@ prometheus:
exporter:
blackbox:
enabled: true
hostNetwork: false
ingress:
# -- enable ingress for blackbox-exporter
enabled: false