diff --git a/templates/events-worker-deployment.yaml b/templates/events-worker-deployment.yaml index ffb1546..87d203a 100644 --- a/templates/events-worker-deployment.yaml +++ b/templates/events-worker-deployment.yaml @@ -116,5 +116,9 @@ spec: livenessProbe: exec: command: ["/bin/bash", "-l", "-c", "bundle exec sidekiqmon processes | grep $(hostname) || exit 1"] + initialDelaySeconds: {{ .Values.eventsWorker.livenessProbe.initialDelaySeconds | default 0 }} + periodSeconds: {{ .Values.eventsWorker.livenessProbe.periodSeconds | default 10 }} + timeoutSeconds: {{ .Values.eventsWorker.livenessProbe.timeoutSeconds | default 1 }} + failureThreshold: {{ .Values.eventsWorker.livenessProbe.failureThreshold | default 3 }} restartPolicy: Always serviceAccountName: {{ .Values.global.serviceAccountName | default (printf "%s-serviceaccount" .Release.Name) }} diff --git a/templates/worker-deployment.yaml b/templates/worker-deployment.yaml index 1c7eedd..c167a8e 100644 --- a/templates/worker-deployment.yaml +++ b/templates/worker-deployment.yaml @@ -172,6 +172,10 @@ spec: livenessProbe: exec: command: ["/bin/bash", "-l", "-c", "bundle exec sidekiqmon processes | grep $(hostname) || exit 1"] + initialDelaySeconds: {{ .Values.worker.livenessProbe.initialDelaySeconds | default 0 }} + periodSeconds: {{ .Values.worker.livenessProbe.periodSeconds | default 10 }} + timeoutSeconds: {{ .Values.worker.livenessProbe.timeoutSeconds | default 1 }} + failureThreshold: {{ .Values.worker.livenessProbe.failureThreshold | default 3 }} {{- with .Values.worker.resources }} resources: {{- toYaml . | nindent 12}} diff --git a/values.yaml b/values.yaml index b72c670..82525bf 100644 --- a/values.yaml +++ b/values.yaml @@ -143,6 +143,11 @@ worker: podAnnotations: {} podLabels: {} extraEnv: {} + livenessProbe: + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 eventsWorker: replicas: 1 @@ -158,6 +163,11 @@ eventsWorker: podAnnotations: {} podLabels: {} extraEnv: {} + livenessProbe: + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 clock: