diff --git a/grafana/grafana-deploy.yaml b/grafana/grafana-deploy.yaml index a94c3ce..e3071b0 100644 --- a/grafana/grafana-deploy.yaml +++ b/grafana/grafana-deploy.yaml @@ -15,7 +15,7 @@ spec: component: core spec: containers: - - image: grafana/grafana:4.2.0 + - image: grafana/grafana:latest name: grafana-core imagePullPolicy: IfNotPresent # env: @@ -44,9 +44,14 @@ spec: port: 3000 # initialDelaySeconds: 30 # timeoutSeconds: 1 + initContainers: + - name: "init-chown-data" + image: "busybox:latest" + imagePullPolicy: "IfNotPresent" + command: ["chown", "-R", "472:472", "/var/lib/grafana/"] volumeMounts: - name: grafana-persistent-storage - mountPath: /var + mountPath: /var/lib/grafana/ volumes: - name: grafana-persistent-storage emptyDir: {}