fix(grafana): use named pvc so it's reused

templated pvc as using a different name al the time. this caused left
over pvc that were unused. name set so they can be reused

!1
This commit is contained in:
2023-09-25 16:38:32 +09:30
parent 8f53b0fa07
commit a26f887fa4

View File

@ -141,8 +141,13 @@ spec:
name: provisioning-config
{{ end }}
- name: grafana-storage
ephemeral:
volumeClaimTemplate:
persistentVolumeClaim:
claimName: grafana-pvc
serviceAccountName: grafana
nodeSelector:
kubernetes.io/os: linux
persistentVolumeClaim:
metadata:
annotations:
pv.beta.kubernetes.io/gid: "65534"
@ -150,14 +155,9 @@ spec:
app.kubernetes.io/name: grafana
app.kubernetes.io/component: graphing
app.kubernetes.io/part-of: {{ $.Chart.Name }}
app.kubernetes.io/version: {{ $.Chart.Version }}
app.kubernetes.io/managed-by: {{ $.Release.Service }}
spec:
accessModes:
- "ReadWriteMany"
resources:
requests:
storage: "5Gi"
serviceAccountName: grafana
nodeSelector:
kubernetes.io/os: linux