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:
@ -120,7 +120,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/grafana/dashboards
|
- mountPath: /var/lib/grafana/dashboards
|
||||||
name: dashboards
|
name: dashboards
|
||||||
{{ end }}
|
{{ end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 65534
|
fsGroup: 65534
|
||||||
volumes:
|
volumes:
|
||||||
@ -141,23 +141,23 @@ spec:
|
|||||||
name: provisioning-config
|
name: provisioning-config
|
||||||
{{ end }}
|
{{ end }}
|
||||||
- name: grafana-storage
|
- name: grafana-storage
|
||||||
ephemeral:
|
persistentVolumeClaim:
|
||||||
volumeClaimTemplate:
|
claimName: grafana-pvc
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
pv.beta.kubernetes.io/gid: "65534"
|
|
||||||
labels:
|
|
||||||
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
|
serviceAccountName: grafana
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/os: linux
|
kubernetes.io/os: linux
|
||||||
|
|
||||||
|
persistentVolumeClaim:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
pv.beta.kubernetes.io/gid: "65534"
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: grafana
|
||||||
|
app.kubernetes.io/component: graphing
|
||||||
|
app.kubernetes.io/part-of: {{ $.Chart.Name }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- "ReadWriteMany"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "5Gi"
|
||||||
|
Reference in New Issue
Block a user