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
|
successThreshold: 1
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.server.extraContainers }}
|
|
||||||
{{ toYaml .Values.server.extraContainers | nindent 8}}
|
|
||||||
{{- end }}
|
|
||||||
lifecycle:
|
lifecycle:
|
||||||
# Vault container doesn't receive SIGTERM from Kubernetes
|
# Vault container doesn't receive SIGTERM from Kubernetes
|
||||||
# and after the grace period ends, Kube sends SIGKILL. This
|
# and after the grace period ends, Kube sends SIGKILL. This
|
||||||
|
@ -128,6 +125,9 @@ spec:
|
||||||
preStop:
|
preStop:
|
||||||
exec:
|
exec:
|
||||||
command: ["/bin/sh","-c","kill -SIGTERM $(pidof vault)"]
|
command: ["/bin/sh","-c","kill -SIGTERM $(pidof vault)"]
|
||||||
|
{{- if .Values.server.extraContainers }}
|
||||||
|
{{ toYaml .Values.server.extraContainers | nindent 8}}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- if .Values.global.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
|
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
|
||||||
|
|
Loading…
Reference in a new issue