mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
grafana: add persistence
This commit is contained in:
parent
9827dae65b
commit
2a3fa0dd06
3 changed files with 27 additions and 0 deletions
11
apps/system/grafana/templates/volume.yaml
Normal file
11
apps/system/grafana/templates/volume.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
hostPath:
|
||||||
|
path: /data/grafana
|
||||||
12
apps/system/grafana/templates/volumeclaim.yaml
Normal file
12
apps/system/grafana/templates/volumeclaim.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
volumeMode: Filesystem
|
||||||
|
volumeName: grafana
|
||||||
|
|
@ -17,6 +17,10 @@ grafana:
|
||||||
- hosts:
|
- hosts:
|
||||||
- grafana.gorilych.ru
|
- grafana.gorilych.ru
|
||||||
secretName: grafana-tls
|
secretName: grafana-tls
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
type: pvc
|
||||||
|
existingClaim: grafana
|
||||||
grafana.ini:
|
grafana.ini:
|
||||||
server:
|
server:
|
||||||
root_url: https://grafana.gorilych.ru
|
root_url: https://grafana.gorilych.ru
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue