Skip to content

Commit

Permalink
add lifecycle to vault instead of extra container (hashicorp#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
fischerman authored and jasonodonnell committed Jan 15, 2020
1 parent 8586175 commit 203a93f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ spec:
successThreshold: 1
timeoutSeconds: 5
{{- end }}
{{- if .Values.server.extraContainers }}
{{ toYaml .Values.server.extraContainers | nindent 8}}
{{- end }}
lifecycle:
# Vault container doesn't receive SIGTERM from Kubernetes
# and after the grace period ends, Kube sends SIGKILL. This
Expand All @@ -128,6 +125,9 @@ spec:
preStop:
exec:
command: ["/bin/sh","-c","kill -SIGTERM $(pidof vault)"]
{{- if .Values.server.extraContainers }}
{{ toYaml .Values.server.extraContainers | nindent 8}}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
Expand Down

0 comments on commit 203a93f

Please sign in to comment.