Skip to content

Commit

Permalink
Add lifecycle hooks for the artifacts deployment (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet authored Jan 24, 2024
1 parent 386c3d5 commit 0a40af8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/artifacts/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ spec:
path: /_healthz
port: http
{{ toYaml .Values.deployment.artifacts.livenessProbe | indent 10 }}
lifecycle:
preStop:
exec:
command: ["/bin/sh","-c","nginx -s quit; while killall -0 nginx; do sleep 1; done"]
volumes:
- name: cache
emptyDir: {}
Expand Down

0 comments on commit 0a40af8

Please sign in to comment.