Skip to content

Commit

Permalink
fix: Introduce startup probe to CAREN pod to reduce races
Browse files Browse the repository at this point in the history
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 committed Oct 2, 2024
1 parent 59b451f commit 053c629
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 053c629

Please sign in to comment.