add lifecycle to vault instead of extra container (#179)
This commit is contained in:
parent
80027d3bda
commit
1f68852dc2
1 changed files with 3 additions and 3 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue