Grafana deployment with a Persistent Volume
A basic deployment of Grafana with a persistent volume attached using existing Storage Class.
---
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana
labels:
dashboards: "grafana"
spec:
persistentVolumeClaim:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
# storageClassName: "" # Customize storage class if needed
config:
log:
mode: "console"
auth:
disable_login_form: "false"
security:
admin_user: root
admin_password: secret
deployment:
spec:
template:
spec:
containers:
- name: grafana
readinessProbe:
failureThreshold: 3
volumes:
- name: grafana-data
persistentVolumeClaim:
claimName: grafana-pvc