Skip to content

Commit 1edf39c

Browse files
feat: disable readiness and liveness probes in backup mode
Signed-off-by: Abhishek Choudhary <[email protected]>
1 parent 83cef51 commit 1edf39c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/gateway/templates/_pod.tpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ spec:
138138
{{- end }}
139139
{{- end }}
140140
{{- end }}
141+
{{- if and .Values.deployment.fallback_cp.mode (eq .Values.deployment.fallback_cp.mode "write") }}
142+
{{- /* Disable probes when fallback_cp mode is set to write */ -}}
143+
{{- else }}
141144
{{- if .Values.gateway.readinessProbe }}
142145
readinessProbe:
143146
{{- toYaml .Values.gateway.readinessProbe | nindent 8 }}
@@ -155,6 +158,7 @@ spec:
155158
livenessProbe:
156159
{{- toYaml .Values.gateway.livenessProbe | nindent 8 }}
157160
{{- end }}
161+
{{- end }}
158162
lifecycle:
159163
preStop:
160164
exec:

charts/gateway/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ deployment:
239239
# -- use cloud storage as the fallback control plane,
240240
# should be consistent with the same configuration in control plane side.
241241
fallback_cp: {}
242+
# interval: 10
243+
# mode: "write"
242244
# aws_s3:
243245
# access_key: "access"
244246
# secret_key: "secret"

0 commit comments

Comments
 (0)