Commit 1d3be8c2 by frank Committed by Craig Jellick

Fix Grafana PV can't mount

Problem: - Grafana can't mount PV correctly in Cloud Solution: - Use SecurityContext Issue: rancher/rancher#16953
parent 0b45c998
...@@ -17,7 +17,7 @@ data: ...@@ -17,7 +17,7 @@ data:
"access": "proxy", "access": "proxy",
"basicAuth": false, "basicAuth": false,
"editable": false, "editable": false,
"isDefault:": true, "isDefault": true,
"name": "Rancher-Monitoring", "name": "Rancher-Monitoring",
"type": "prometheus", "type": "prometheus",
"url": "{{ .Values.prometheusDatasourceURL }}" "url": "{{ .Values.prometheusDatasourceURL }}"
......
...@@ -61,6 +61,8 @@ spec: ...@@ -61,6 +61,8 @@ spec:
{{- if .Values.extraVars }} {{- if .Values.extraVars }}
{{ toYaml .Values.extraVars | indent 8 }} {{ toYaml .Values.extraVars | indent 8 }}
{{- end }} {{- end }}
securityContext:
fsGroup: 472
volumeMounts: volumeMounts:
- name: grafana-storage - name: grafana-storage
mountPath: /var/lib/grafana mountPath: /var/lib/grafana
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment