Skip to content

Commit

Permalink
Merge pull request #90 from saibit-tech/dev/Melody/OGC-2477/liveness-…
Browse files Browse the repository at this point in the history
…proto-configurable-in-chart

make liveness probe configurable in chart
  • Loading branch information
electrosenpai authored Oct 29, 2024
2 parents e4524ab + 769ae5d commit 9776190
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/events-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
4 changes: 4 additions & 0 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
10 changes: 10 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ worker:
podAnnotations: {}
podLabels: {}
extraEnv: {}
livenessProbe:
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3

eventsWorker:
replicas: 1
Expand All @@ -158,6 +163,11 @@ eventsWorker:
podAnnotations: {}
podLabels: {}
extraEnv: {}
livenessProbe:
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3


clock:
Expand Down

0 comments on commit 9776190

Please sign in to comment.