Skip to content

Commit dfc59e7

Browse files
committed
wip
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
1 parent 74291f1 commit dfc59e7

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

helm/generic-helm-chart/templates/deployment.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ spec:
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 }}
@@ -80,6 +80,16 @@ spec:
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:

helm/generic-helm-chart/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)