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 d617153
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/datacube-ows/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Datacube Web Map Service
name: datacube-ows
version: 0.18.20
version: 0.18.21
keywords:
- datacube
- http
Expand Down
2 changes: 1 addition & 1 deletion stable/datacube-ows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ datacube-ows
============
Datacube Web Map Service

Current chart version is `0.18.20`
Current chart version is `0.18.21`

Source code can be found [here](https://www.opendatacube.org/documentation)

Expand Down
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 d617153

Please sign in to comment.