Grafana Configuration 发表于 2019-03-25 | 分类于 Grafana Kuberntes ConfigurationGF_PATHS_DATA=’/var/lib/grafana’ is not writable12345678910111213141516171819202122232425262728293031323334353637383940414243444546apiVersion: apps/v1beta1kind: StatefulSetmetadata: name: grafana-core labels: app: grafana-corespec: 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