diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 4e17a854..428dff06 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -10,6 +10,9 @@ spec: selector: matchLabels: {{- include "actions-runner-controller.selectorLabels" . | nindent 6 }} + {{- with .Values.minReadySeconds }} + minReadySeconds: {{ . }} + {{- end }} template: metadata: {{- with .Values.podAnnotations }} @@ -148,6 +151,15 @@ spec: {{- toYaml .Values.resources | nindent 12 }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} + {{- if .Values.startupProbe }} + startupProbe: {{ toYaml .Values.startupProbe | nindent 12 }} + {{- end }} + {{- if .Values.livenessProbe }} + livenessProbe: {{ toYaml .Values.livenessProbe | nindent 12 }} + {{- end }} + {{- if .Values.readinessProbe }} + readinessProbe: {{ toYaml .Values.readinessProbe | nindent 12 }} + {{- end }} volumeMounts: {{- if .Values.authSecret.enabled }} - mountPath: "/etc/actions-runner-controller" diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index fff18cc0..bfe2b7e8 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -141,6 +141,13 @@ tolerations: [] affinity: {} +minReadySeconds: 10 + +# Probes +startupProbe: {} +livenessProbe: {} +readinessProbe: {} + # Only one of minAvailable or maxUnavailable can be set podDisruptionBudget: enabled: false