mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39: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:
|
||||
- grafana.gorilych.ru
|
||||
secretName: grafana-tls
|
||||
persistence:
|
||||
enabled: true
|
||||
type: pvc
|
||||
existingClaim: grafana
|
||||
grafana.ini:
|
||||
server:
|
||||
root_url: https://grafana.gorilych.ru
|
||||
|
|
|
|||
Loading…
Reference in a new issue