Grafana Configuration

Kuberntes Configuration

GF_PATHS_DATA=’/var/lib/grafana’ is not writable

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: grafana-core
labels:
app: grafana-core
spec:
serviceName: "grafana-core-headless-service"
replicas: 1
selector:
matchLabels:
app: grafana-core
template:
metadata:
labels:
app: grafana-core
spec:
initContainers:
- name: grafana-chown
command: ["chown", "-R", "472:472", "/var/lib/grafana"]
image: busybox
volumeMounts:
- name: grafana-core-pvc
mountPath: /var/lib/grafana
containers:
- name: grafana-core
image:
resources:
requests:
memory: 256M
limits:
memory: 1G
ports:
- containerPort: 3000
volumeMounts:
- name: grafana-core-pvc
mountPath: /var/lib/grafana
volumeClaimTemplates:
- metadata:
name: grafana-core-pvc
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "pd-standard"
resources:
requests:
storage: 1Gi