Closed JacksonWrath closed 1 week ago
It turns out Grafana isn't completely stateless. Things like user preferences can't be defined in config.
By default Grafana uses sqlite for this, which won't work for more than one replica. It supports an external DB, which I'll have to set up.
Kubegres seems like a possible contender for setting up a postgres cluster.
There's no jsonnet libs for it that I could find, so I'll have to do a lot of heavy lifting. I'll come back to this piece.
Created a new issue for the Postgres bit.
https://github.com/grafana/jsonnet-libs/tree/master/grafana
The Helm chart sucks if you set up persistence. It won't swap the deployment because the PVC is RWO until you delete the old pod lol. (maybe I'm doing something wrong; idk)
Also it's annoying having to figure out what Grafana version a particular Helm chart version lines up with.
Has added benefit of making Grafana stateless.