TODO: Fix Grafana CrashLoopBackOff — duplicate default datasource
Problem
Grafana is in CrashLoopBackOff in the monitoring namespace. Error:
Root Cause
Three ConfigMaps with label
grafana_datasource: "1" exist in the monitoring namespace. Two of them set isDefault: true:kube-prometheus-stack-grafana-datasource(Helm) — PrometheusisDefault: trueloki-stack(loki-stack Helm chart auto-generated) — LokiisDefault: truegrafana-loki-datasource(custom Terraform ConfigMap) — LokiisDefault: false
ConfigMap #3 was the correct fix attempt, but #2 (auto-generated by loki-stack chart) is still present and competing.
Fix
In
terraform/main.tf ~line 192, disable the loki-stack chart's built-in datasource sidecar:
Then
tofu apply. The custom ConfigMap (#3) already handles the Loki datasource correctly.Pre-existing
This bug predates the 2026-03-06 hard shutdown. Grafana has been crash-looping for ~8 days (since the kube-prometheus-stack was last redeployed).