diff --git a/charts/netdata/templates/child/daemonset.yaml b/charts/netdata/templates/child/daemonset.yaml index 049796c..19f46a0 100644 --- a/charts/netdata/templates/child/daemonset.yaml +++ b/charts/netdata/templates/child/daemonset.yaml @@ -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 }} @@ -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 }}