Skip to content

Commit ac243ec

Browse files
committed
Add probes to Connector chart
Add configurable probes to the connector container: - startupProbe: enabled by default, allows up to 2 minutes for startup - readinessProbe: enabled by default, marks pod ready when /ready returns OK - livenessProbe: disabled by default, can be enabled via values All probe settings (path, port, thresholds, intervals) are customizable through values while providing sensible defaults.
1 parent e702797 commit ac243ec

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

charts/connector/templates/deployment.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,38 @@ spec:
5353
{{- end }}
5454
resources:
5555
{{- toYaml .Values.resources | nindent 12 }}
56+
{{- $startupProbe := .Values.startupProbe | default dict }}
57+
{{- if ne $startupProbe.enabled false }}
58+
startupProbe:
59+
httpGet:
60+
path: {{ $startupProbe.path | default "/ready" }}
61+
port: {{ $startupProbe.port | default 8080 }}
62+
periodSeconds: {{ $startupProbe.periodSeconds | default 5 }}
63+
timeoutSeconds: {{ $startupProbe.timeoutSeconds | default 1 }}
64+
failureThreshold: {{ $startupProbe.failureThreshold | default 24 }}
65+
{{- end }}
66+
{{- $readinessProbe := .Values.readinessProbe | default dict }}
67+
{{- if ne $readinessProbe.enabled false }}
68+
readinessProbe:
69+
httpGet:
70+
path: {{ $readinessProbe.path | default "/ready" }}
71+
port: {{ $readinessProbe.port | default 8080 }}
72+
initialDelaySeconds: {{ $readinessProbe.initialDelaySeconds | default 0 }}
73+
periodSeconds: {{ $readinessProbe.periodSeconds | default 5 }}
74+
timeoutSeconds: {{ $readinessProbe.timeoutSeconds | default 1 }}
75+
failureThreshold: {{ $readinessProbe.failureThreshold | default 3 }}
76+
{{- end }}
77+
{{- $livenessProbe := .Values.livenessProbe | default dict }}
78+
{{- if $livenessProbe.enabled }}
79+
livenessProbe:
80+
httpGet:
81+
path: {{ $livenessProbe.path | default "/health" }}
82+
port: {{ $livenessProbe.port | default 8080 }}
83+
initialDelaySeconds: {{ $livenessProbe.initialDelaySeconds | default 0 }}
84+
periodSeconds: {{ $livenessProbe.periodSeconds | default 5 }}
85+
timeoutSeconds: {{ $livenessProbe.timeoutSeconds | default 1 }}
86+
failureThreshold: {{ $livenessProbe.failureThreshold | default 3 }}
87+
{{- end }}
5688
{{- with .Values.volumeMounts }}
5789
volumeMounts:
5890
{{- toYaml . | nindent 12 }}

0 commit comments

Comments
 (0)