Skip to content

Commit

Permalink
fix: [release/v0.14.x] Introduce startup probe to CAREN pod to reduce…
Browse files Browse the repository at this point in the history
… 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).
  • Loading branch information
jimmidyson authored Oct 2, 2024
1 parent cb63955 commit 05fd175
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
resources:
{{ with .Values.resources }}
{{- with .Values.resources }}
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
Expand All @@ -93,9 +93,16 @@ spec:
port: probes
scheme: HTTP
path: /readyz
startupProbe:
httpGet:
port: probes
scheme: HTTP
path: /healthz
periodSeconds: 1
failureThreshold: 30
priorityClassName: {{ .Values.priorityClassName }}
securityContext:
{{ with .Values.securityContext }}
{{- with .Values.securityContext }}
{{- toYaml . | nindent 8}}
{{- end }}
volumes:
Expand Down

0 comments on commit 05fd175

Please sign in to comment.