diff options
| author | Paul Buetow <paul@buetow.org> | 2025-10-24 09:47:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-10-24 09:47:13 +0300 |
| commit | b2d0fc7a5e0fc9a3693de1ff8f83cc7fb08089f9 (patch) | |
| tree | 0aece6b368866b84c35439728ec79fabb1a30c7c /f3s/prometheus/persistence-values.yaml | |
| parent | 5d5c261d4df6b28f5ade47902b17bfa37e80efcf (diff) | |
add persistent volumes to prometheus/grafana
Diffstat (limited to 'f3s/prometheus/persistence-values.yaml')
| -rw-r--r-- | f3s/prometheus/persistence-values.yaml | 31 |
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 |
