Reorganized the monolithic migration plan into separate files: - 00_overview.md: Architecture, technical decisions, shared info - P0_foundation.complete.md: Phase 0 (complete) - P1_k8s_infrastructure.md: Phase 1 (in progress) - P2-P9: Remaining phases (pending) This makes the plan easier to navigate and track progress. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
809 B
809 B
Phase 3: PostgreSQL Migration
Goal: Migrate miniflux database to CloudNativePG
Status: Pending
Prerequisites: Phase 2 complete
Steps
1. Create databases and users in k8s PostgreSQL
- miniflux database/user
- borgmatic read-only user
2. Export from brew PostgreSQL
pg_dump -h localhost -U miniflux miniflux > miniflux_backup.sql
3. Expose k8s PostgreSQL via Tailscale
- Service with
loadBalancerClass: tailscale - Tag:
svc:pg-k8s
4. Import data
psql -h pg-k8s.tail8d86e.ts.net -U miniflux miniflux < miniflux_backup.sql
5. Update borgmatic config
- Change hostname to k8s PostgreSQL
6. Verify data integrity
Rollback
Keep brew PostgreSQL running until Phase 4 verified