Skip to content

Commit

Permalink
feat(prometheus): Add pvc to store Grafana config
Browse files Browse the repository at this point in the history
  • Loading branch information
levaitamas committed Feb 20, 2025
1 parent 20ab54d commit e4d16e1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion helm/stunner-prometheus/templates/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ spec:
labels:
app: grafana
spec:
securityContext:
runAsUser: 472
fsGroup: 472
containers:
- name: grafana
image: {{ .Values.image.grafana }}:{{ .Values.version.grafana }}
ports:
- name: grafana
containerPort: 3000
env:
- name: GF_SECURITY_ALLOW_EMBEDDING
value: "true"
resources:
limits:
memory: "2Gi"
Expand All @@ -57,13 +63,26 @@ spec:
readOnly: false
volumes:
- name: grafana-storage
emptyDir: {}
persistentVolumeClaim:
claimName: grafana-pvc
- name: grafana-datasources
configMap:
defaultMode: 420
name: grafana-datasources
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grafana-pvc
namespace: {{ .Values.namespace }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: grafana
Expand Down

0 comments on commit e4d16e1

Please sign in to comment.