Skip to content

Commit 04d0b59

Browse files
committed
Probes can be disabled in Helm chart
Signed-off-by: mickkael <19755421+mickkael@users.noreply.github.com>
1 parent e90504b commit 04d0b59

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ci/helm-chart/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,18 @@ spec:
123123
containerPort: {{ .port }}
124124
protocol: {{ .protocol }}
125125
{{- end }}
126+
{{- if ne .Values.livenessProbe.enabled false }}
126127
livenessProbe:
127128
httpGet:
128129
path: /healthz
129130
port: http
131+
{{- end }}
132+
{{- if ne .Values.readinessProbe.enabled false }}
130133
readinessProbe:
131134
httpGet:
132135
path: /healthz
133136
port: http
137+
{{- end }}
134138
resources:
135139
{{- toYaml .Values.resources | nindent 12 }}
136140
{{- with .Values.nodeSelector }}

ci/helm-chart/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ resources: {}
111111
# cpu: 100m
112112
# memory: 1000Mi
113113

114+
livenessProbe:
115+
enabled: true
116+
117+
readinessProbe:
118+
enabled: true
119+
114120
nodeSelector: {}
115121

116122
tolerations: []

0 commit comments

Comments
 (0)