File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 {{- toYaml .Values.securityContext | nindent 12 }}
5555 image : " {{ required " A valid .Values.image.repository is required" .Values.image.repository }}:{{ include "generic-operator.imageTag" . }}"
5656 imagePullPolicy : {{ .Values.image.pullPolicy }}
57- {{- if or .Values.probes.startup.enabled .Values.probes.readiness.enabled }}
57+ {{- if or .Values.probes.startup.enabled .Values.probes.readiness.enabled .Values.probes.liveness.enabled }}
5858 ports :
5959 - name : probes
6060 containerPort : {{ .Values.probes.port }}
8080 timeoutSeconds : {{ .Values.probes.readiness.timeoutSeconds }}
8181 failureThreshold : {{ .Values.probes.readiness.failureThreshold }}
8282 {{- end }}
83+ {{- if .Values.probes.liveness.enabled }}
84+ livenessProbe :
85+ httpGet :
86+ path : {{ .Values.probes.liveness.path }}
87+ port : probes
88+ initialDelaySeconds : {{ .Values.probes.liveness.initialDelaySeconds }}
89+ periodSeconds : {{ .Values.probes.liveness.periodSeconds }}
90+ timeoutSeconds : {{ .Values.probes.liveness.timeoutSeconds }}
91+ failureThreshold : {{ .Values.probes.liveness.failureThreshold }}
92+ {{- end }}
8393 env :
8494 - name : OPERATOR_NAMESPACE
8595 valueFrom :
Original file line number Diff line number Diff line change @@ -149,3 +149,14 @@ probes:
149149 periodSeconds : 5
150150 timeoutSeconds : 5
151151 failureThreshold : 3
152+ # We provide an option to sepcify liveness probes.
153+ # However, the framework itself does not define any runtime
154+ # information what such probe should check. The only purpose here
155+ # is to cover your domain specific use case.
156+ # liveness:
157+ # enabled: false
158+ # path: /healthz
159+ # initialDelaySeconds: 15
160+ # periodSeconds: 10
161+ # timeoutSeconds: 5
162+ # failureThreshold: 3
You can’t perform that action at this time.
0 commit comments