giantswarm/prometheus

Putting a PVC in Grafana's Deployment doesn't save the data.

abourget opened this issue · 1 comments

The grafana image has a VOLUME spec at /var/lib/grafana ..

The current Deployment uses this:

        volumeMounts:
        - name: grafana-persistent-storage
          mountPath: /var

so the storage isn't persisted even if you change it to a PVC or something, because the VOLUME tag in the image will create an emptyDir at /var/lib/grafana and store it there. We should correct the deployment.yaml to read:

        volumeMounts:
        - name: grafana-persistent-storage
          mountPath: /var/lib/grafana