File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ spec:
104
104
- --tries=1
105
105
- --timeout=5
106
106
- --spider
107
- - http://localhost :8080/healthz
107
+ - http://127.0.0.1 :8080/healthz
108
108
{{- end }}
109
109
readinessProbe :
110
110
{{- if $.Values.gateway.readinessProbe }}
@@ -126,7 +126,7 @@ spec:
126
126
- --tries=1
127
127
- --timeout=5
128
128
- --spider
129
- - http://localhost :8080/healthz
129
+ - http://127.0.0.1 :8080/healthz
130
130
{{- end }}
131
131
env :
132
132
{{- if .Values.gateway.logsProviderURL }}
@@ -366,6 +366,28 @@ spec:
366
366
securityContext :
367
367
{{- toYaml .Values.securityContext | nindent 10 }}
368
368
{{- end }}
369
+ livenessProbe :
370
+ {{- if $.Values.operator.livenessProbe }}
371
+ initialDelaySeconds : {{ $.Values.operator.livenessProbe.initialDelaySeconds | default 0 }}
372
+ periodSeconds : {{ $.Values.operator.livenessProbe.periodSeconds | default 10 }}
373
+ timeoutSeconds : {{ $.Values.operator.livenessProbe.timeoutSeconds | default 5 }}
374
+ failureThreshold : {{ $.Values.operator.livenessProbe.failureThreshold | default 3 }}
375
+ successThreshold : {{ $.Values.operator.livenessProbe.successThreshold | default 1 }}
376
+ {{- end }}
377
+ {{- if .Values.httpProbe }}
378
+ httpGet :
379
+ path : /healthz
380
+ port : 8081
381
+ {{- else }}
382
+ exec :
383
+ command :
384
+ - wget
385
+ - --quiet
386
+ - --tries=1
387
+ - --timeout=3
388
+ - --spider
389
+ - http://127.0.0.1:8081/healthz
390
+ {{- end }}
369
391
command :
370
392
- ./faas-netes
371
393
{{- if or .Values.openfaasPro .Values.oem }}
Original file line number Diff line number Diff line change @@ -191,6 +191,15 @@ operator:
191
191
# for debugging purposes
192
192
pprof : false
193
193
194
+ # The liveness probe was added so that the operator can be restarted
195
+ # if its watch connections to the Kubernetes API server are lost.
196
+ livenessProbe :
197
+ initialDelaySeconds : 5
198
+ periodSeconds : 5
199
+ timeoutSeconds : 3
200
+ failureThreshold : 3
201
+ successThreshold : 1
202
+
194
203
faasnetesPro :
195
204
image : ghcr.io/openfaasltd/faas-netes:0.5.63
196
205
logs :
You can’t perform that action at this time.
0 commit comments