Skip to content

Commit

Permalink
OWS: add pre-stop delay
Browse files Browse the repository at this point in the history
Intended to ensure that requests can drain when pods terminating.
See opendatacube/datacube-ows#764
  • Loading branch information
benjimin committed Nov 17, 2021
1 parent 3e587ce commit 024a096
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stable/datacube-ows/templates/ows-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ spec:
{{- end }}
containers:
- name: ows
lifecycle:
preStop:
exec:
command: ["/usr/bin/sleep", "15"]
env:
{{- if .Values.owsConfig.url }}
- name: OWS_CONFIG_URL
Expand Down

0 comments on commit 024a096

Please sign in to comment.