Prometheus: Fix permisions for PVC
This PS fixes the permisions for the PVC backing Prometheus Change-Id: I19b96296fe3553df5b433c22c05cbdfff1b8402a
This commit is contained in:
parent
13852ceee4
commit
f59d3b0011
@ -51,6 +51,19 @@ spec:
|
||||
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.prometheus.timeout | default "30" }}
|
||||
initContainers:
|
||||
{{ tuple $envAll .Values.pod_dependency list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
- name: prometheus-perms
|
||||
{{ tuple $envAll "prometheus" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.prometheus | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
command:
|
||||
- chown
|
||||
- -R
|
||||
- "nobody:"
|
||||
- /var/lib/prometheus/data
|
||||
volumeMounts:
|
||||
- name: storage
|
||||
mountPath: /var/lib/prometheus/data
|
||||
containers:
|
||||
- name: prometheus
|
||||
{{ tuple $envAll "prometheus" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user