Merge "Prometheus-Alertmanager: Fix permisions for PVC"

This commit is contained in:
Zuul 2018-01-11 04:22:17 +00:00 committed by Gerrit Code Review
commit e239914dd5

@ -51,6 +51,19 @@ spec:
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.alertmanager.timeout | default "30" }}
initContainers:
{{ tuple $envAll .Values.pod_dependency list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
- name: alertmanager-perms
{{ tuple $envAll "alertmanager" | include "helm-toolkit.snippets.image" | indent 10 }}
securityContext:
runAsUser: 0
{{ tuple $envAll $envAll.Values.pod.resources.alertmanager | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
command:
- chown
- -R
- "nobody:"
- /var/lib/alertmanager/data
volumeMounts:
- name: storage
mountPath: /var/lib/alertmanager/data
containers:
- name: alertmanager
{{ tuple $envAll "alertmanager" | include "helm-toolkit.snippets.image" | indent 10 }}