This commit is contained in:
David J. M. Karlsen
2019-12-10 11:41:57 +01:00
parent 41d29c2daa
commit b598aa715f
3 changed files with 10 additions and 2 deletions

View File

@@ -39,10 +39,18 @@ spec:
{{- end }}
containers:
- name: memcached
{{- if .Values.persistence.enabled }}
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "/usr/bin/pkill -10 memcached ; sleep 60s"]
{{- end }}
image: {{ template "memcached.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
command:
{{ toYaml .Values.command | indent 12 }}
args:
{{ toYaml .Values.arguments | indent 12 }}
{{- if .Values.persistence.enabled }}
- -e/cache-state/memory_file
{{- end }}