Skip to content

Commit 75eb899

Browse files
committed
feat(helm): add startup probe support to deployment template
Add a configurable startupProbe to the Helm chart, following the same pattern as the existing readinessProbe and livenessProbe. The startup probe is disabled by default to avoid breaking existing deployments. When enabled, it uses the /health endpoint on the management port with a failureThreshold of 30 and periodSeconds of 10, allowing up to ~5 minutes for the application to start.
1 parent 3adcb25 commit 75eb899

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

helm/akhq/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ spec:
115115
successThreshold: {{ $.Values.readinessProbe.successThreshold }}
116116
failureThreshold: {{ $.Values.readinessProbe.failureThreshold }}
117117
{{- end }}
118+
{{- if $.Values.startupProbe.enabled }}
119+
startupProbe:
120+
httpGet:
121+
path: {{ .Values.startupProbe.prefix | default "" }}{{ $.Values.startupProbe.path }}
122+
port: {{ $.Values.startupProbe.port }}
123+
{{- if $.Values.startupProbe.httpGetExtra }}{{ toYaml $.Values.startupProbe.httpGetExtra | trim | nindent 14 }}{{ end }}
124+
initialDelaySeconds: {{ $.Values.startupProbe.initialDelaySeconds }}
125+
periodSeconds: {{ $.Values.startupProbe.periodSeconds }}
126+
timeoutSeconds: {{ $.Values.startupProbe.timeoutSeconds }}
127+
successThreshold: {{ $.Values.startupProbe.successThreshold }}
128+
failureThreshold: {{ $.Values.startupProbe.failureThreshold }}
129+
{{- end }}
118130
resources:
119131
{{- toYaml .Values.resources | nindent 12 }}
120132
{{- with .Values.nodeSelector }}

helm/akhq/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,18 @@ livenessProbe:
179179
failureThreshold: 3
180180
httpGetExtra: {}
181181

182+
startupProbe:
183+
enabled: false
184+
prefix: "" # set same as `micronaut.server.context-path`
185+
path: /health
186+
port: management
187+
initialDelaySeconds: 0
188+
periodSeconds: 10
189+
timeoutSeconds: 5
190+
successThreshold: 1
191+
failureThreshold: 30
192+
httpGetExtra: {}
193+
182194
resources: {}
183195
# limits:
184196
# cpu: 100m

0 commit comments

Comments
 (0)