add lifecycle to vault instead of extra container (#179)

This commit is contained in:
fischerman 2020-01-15 11:03:20 +01:00 committed by Jason O'Donnell
parent 80027d3bda
commit 1f68852dc2

View file

@ -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
@ -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 }}