JacksonWrath / k8s-config-weebcluster

This repo aims to define the state of my primary cluster.
MIT License
0 stars 0 forks source link

Grafana - move from Helm to jsonnet #19

Closed JacksonWrath closed 1 week ago

JacksonWrath commented 1 week ago

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.

JacksonWrath commented 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.

JacksonWrath commented 1 week ago

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.

JacksonWrath commented 1 week ago

https://github.com/JacksonWrath/k8s-config-weebcluster/commit/1a5d6bf3b3007cfc70633f4bae12d45cfcb73085

JacksonWrath commented 1 week ago

Created a new issue for the Postgres bit.