summaryrefslogtreecommitdiff
path: root/f3s/prometheus/persistence-values.yaml
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-24 09:47:13 +0300
committerPaul Buetow <paul@buetow.org>2025-10-24 09:47:13 +0300
commitb2d0fc7a5e0fc9a3693de1ff8f83cc7fb08089f9 (patch)
tree0aece6b368866b84c35439728ec79fabb1a30c7c /f3s/prometheus/persistence-values.yaml
parent5d5c261d4df6b28f5ade47902b17bfa37e80efcf (diff)
add persistent volumes to prometheus/grafana
Diffstat (limited to 'f3s/prometheus/persistence-values.yaml')
-rw-r--r--f3s/prometheus/persistence-values.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/f3s/prometheus/persistence-values.yaml b/f3s/prometheus/persistence-values.yaml
new file mode 100644
index 0000000..5bdd996
--- /dev/null
+++ b/f3s/prometheus/persistence-values.yaml
@@ -0,0 +1,31 @@
+prometheus:
+ prometheusSpec:
+ storageSpec:
+ volumeClaimTemplate:
+ spec:
+ storageClassName: ""
+ accessModes: ["ReadWriteOnce"]
+ resources:
+ requests:
+ storage: 10Gi
+ selector:
+ matchLabels:
+ type: local
+ app: prometheus
+
+grafana:
+ persistence:
+ enabled: true
+ type: pvc
+ existingClaim: "grafana-data-pvc"
+
+ # Disable the init container that chowns the data directory.
+ # This is necessary when using NFS volumes, as the chown operation will fail.
+ initChownData: false
+
+ # Set the security context for the grafana pod.
+ # The fsGroup should match the group that owns the data directory on the NFS server.
+ podSecurityContext:
+ fsGroup: 911
+ runAsUser: 911
+ runAsGroup: 911 \ No newline at end of file