Skip to content

Commit 05fd175

Browse files
authored
fix: [release/v0.14.x] Introduce startup probe to CAREN pod to reduce races (#934)
Introduce a more frequent startup probe polling every second, which once it succeeds will trigger readiness and liveness probes to run at their default intervals. This reduces chances of races in clusterctl checking for readiness while keeping the overhead on the kubelet for checking readiness once the pod is up to a minimum (default probe period).
1 parent cb63955 commit 05fd175

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

charts/cluster-api-runtime-extensions-nutanix/templates/deployment.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ spec:
7373
fieldRef:
7474
fieldPath: metadata.namespace
7575
resources:
76-
{{ with .Values.resources }}
76+
{{- with .Values.resources }}
7777
{{- toYaml . | nindent 10 }}
7878
{{- end }}
7979
volumeMounts:
@@ -93,9 +93,16 @@ spec:
9393
port: probes
9494
scheme: HTTP
9595
path: /readyz
96+
startupProbe:
97+
httpGet:
98+
port: probes
99+
scheme: HTTP
100+
path: /healthz
101+
periodSeconds: 1
102+
failureThreshold: 30
96103
priorityClassName: {{ .Values.priorityClassName }}
97104
securityContext:
98-
{{ with .Values.securityContext }}
105+
{{- with .Values.securityContext }}
99106
{{- toYaml . | nindent 8}}
100107
{{- end }}
101108
volumes:

0 commit comments

Comments
 (0)