Skip to content

Commit

Permalink
child: use 127.0.0.1 for httpGet probes by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 committed Aug 7, 2024
1 parent 4862480 commit 0b74a6d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/netdata/templates/child/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
{{- if $.Values.child.livenessProbe.httpGet.host }}
host: {{ .Values.child.livenessProbe.httpGet.host }}
{{- else if .Values.child.hostNetwork }}
host: 127.0.0.1
{{- end}}
path: /api/v1/info
port: http
initialDelaySeconds: {{ .Values.child.livenessProbe.initialDelaySeconds }}
Expand All @@ -144,7 +148,11 @@ spec:
timeoutSeconds: {{ .Values.child.livenessProbe.timeoutSeconds }}
readinessProbe:
httpGet:
{{- if $.Values.child.readinessProbe.httpGet.host }}
host: {{ .Values.child.readinessProbe.httpGet.host }}
{{- else if .Values.child.hostNetwork }}
host: 127.0.0.1
{{- end}}
path: /api/v1/info
port: http
initialDelaySeconds: {{ .Values.child.readinessProbe.initialDelaySeconds }}
Expand Down

0 comments on commit 0b74a6d

Please sign in to comment.