Commit d210a505 by frank Committed by Craig Jellick

Fix Grafana PV can't be mounted (Patch)

**Problem:** Grafana still can't mount PV correctly in Cloud, because there are 2 `securityContext` and `fsGroup` only work on Pod spec. **Solution:** Change the `securityContext` to Pod spec. **Issue:** https://github.com/rancher/rancher/issues/16953
parent 5b00f9d6
...@@ -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 }}"
......
...@@ -143,6 +143,8 @@ spec: ...@@ -143,6 +143,8 @@ spec:
tolerations: tolerations:
{{ toYaml .Values.tolerations | indent 8 }} {{ toYaml .Values.tolerations | indent 8 }}
{{- end }} {{- end }}
securityContext:
fsGroup: 472
volumes: volumes:
- name: grafana-static-hooks - name: grafana-static-hooks
configMap: configMap:
......
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