homelab: k8s and monitoring


Some more k8s adventures:

And the reason for this post is to remind myself in the future that on a local kubernetes setup for grafana, you might run into this error:

GF_PATHS_DATA=’/var/lib/grafana’ is not writable

which is entirely due to the default manifest provided by grafana. As it turns out, you should just swap

          volumeMounts:
            - mountPath: /var/lib/grafana
              name: grafana-pv

with

          volumeMounts:
            - mountPath: grafana-pv:/var/lib/grafana
              name: grafana-pv

And then it will stop crashing. I’m sure I’ll totally understand this at some future point in time but right now that just felt like a magic voodoo incantation. I ended up looking at some commit here to figure this one out: https://github.com/questdb/questdb-slack-grafana-alerts/pull/5/commits/7cf28d57e142c2322157dcedc77626b6b26246b1

In any case once it stopped crashing I curled the :3000 endpoint, it responded, and I felt I was done for the day.

Well I also asked OpenAI out of curiosity to see if it would have helped me in this situation and as it turns out, yeah, no it wouldn’t have.

Next up: NodePort and other network magic incantations