Skip to content

Commit

Permalink
Merge pull request #22 from stefanprodan/prom-pv-fix
Browse files Browse the repository at this point in the history
Fix Prometheus persistent volume mount ownership
  • Loading branch information
jaypipes authored Oct 23, 2019
2 parents 26bcbea + e620ee4 commit ba7968b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions stable/appmesh-prometheus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
initContainers:
- name: chown
image: alpine:latest
command: ["/bin/sh", "-c"]
args:
- chown 65534:65534 /mount;
volumeMounts:
- name: data-volume
mountPath: /mount
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -51,6 +60,10 @@ spec:
httpGet:
path: /-/ready
port: http
securityContext:
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus
Expand Down

0 comments on commit ba7968b

Please sign in to comment.