-
I have been looking for a way to make my grafana and other data persistent across restarts. I deployed using the example: kubectl apply --server-side -f manifests/setup Everything is working as expected, but I would like the data to be persistent. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally got this working. Assuming you have a NFS share working already, next it requires you have a storage class setup. In my deployment, I use the k8s-mgmt namespace instead of the default monitoring. For setting up the storage class I basically followed this tutorial: My final config:
My jsonnet file for building the manifest:
|
Beta Was this translation helpful? Give feedback.
I finally got this working. Assuming you have a NFS share working already, next it requires you have a storage class setup. In my deployment, I use the k8s-mgmt namespace instead of the default monitoring.
My storage class name is kube-prometheus-storage.
For setting up the storage class I basically followed this tutorial:
https://www.youtube.com/watch?v=DF3v2P8ENEg&t=1359s
My final config: