blumeops/plans/k8s-migration
Erich Blume 7e6742ad24 K8s Migration Phase 2: Grafana to Kubernetes (#30)
## Summary
- Migrate Grafana from Homebrew/Ansible to Kubernetes deployment
- Switch CloudNativePG to use forge-mirrored Helm chart (HTTPS, no auth needed)
- Add Grafana Helm chart deployment via ArgoCD with multi-source pattern
- Add Grafana config (Tailscale Ingress, 9 dashboard ConfigMaps)
- Update Loki to bind 0.0.0.0 for k8s pod access via `host.containers.internal`

## Key Changes
- `argocd/apps/grafana.yaml` - Grafana Helm chart Application
- `argocd/apps/grafana-config.yaml` - Ingress + dashboard ConfigMaps
- `argocd/apps/cloudnative-pg.yaml` - Now uses forge mirror instead of external Helm repo
- `ansible/roles/loki/templates/loki-config.yaml.j2` - Bind 0.0.0.0

## Deployment and Testing
- [x] Deploy Loki config change: `mise run provision-indri -- --tags loki`
- [x] Create namespace: `ki create namespace monitoring`
- [x] Create secret: `op inject -i argocd/manifests/grafana-config/secret-admin.yaml.tpl | ki apply -f -`
- [x] Sync ArgoCD apps (grafana, grafana-config)
- [x] Verify Grafana works at https://grafana.tail8d86e.ts.net
- [x] Remove svc:grafana from ansible tailscale_serve
- [x] Stop brew grafana: `ssh indri 'brew services stop grafana'`
- [x] Delete ansible grafana role

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: https://forge.tail8d86e.ts.net/eblume/blumeops/pulls/30
2026-01-19 14:40:25 -08:00
..
00_overview.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P0_foundation.complete.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P1_k8s_infrastructure.complete.md Rename P1 to complete 2026-01-19 10:03:52 -08:00
P2_grafana.md K8s Migration Phase 2: Grafana to Kubernetes (#30) 2026-01-19 14:40:25 -08:00
P3_postgresql.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P4_miniflux.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P5_devpi.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P6_kiwix.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P7_forgejo.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P8_woodpecker.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00
P9_cleanup.md K8s Migration Phase 1: Infrastructure Setup (#29) 2026-01-19 09:49:52 -08:00