Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyue722 committed Oct 29, 2024
1 parent fd01dc2 commit 769ae5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions templates/events-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ spec:
livenessProbe:
exec:
command: ["/bin/bash", "-l", "-c", "bundle exec sidekiqmon processes | grep $(hostname) || exit 1"]
initialDelaySeconds: {{ .Values.eventsWorker.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.eventsWorker.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.eventsWorker.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.eventsWorker.livenessProbe.failureThreshold }}
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) }}
8 changes: 4 additions & 4 deletions templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ spec:
livenessProbe:
exec:
command: ["/bin/bash", "-l", "-c", "bundle exec sidekiqmon processes | grep $(hostname) || exit 1"]
initialDelaySeconds: {{ .Values.worker.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.worker.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.worker.livenessProbe.timeoutSeconds }}
failureThreshold: {{ .Values.worker.livenessProbe.failureThreshold }}
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

0 comments on commit 769ae5d

Please sign in to comment.