Switch k8s manifests from SQLite/Litestream to Postgres #78
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-api!78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "76-postgres-manifest-switch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Removes all SQLite/Litestream infrastructure from k8s manifests and switches the app to read
PALDOCS_DATABASE_URLfrom a Kubernetes secret (pal-e-docs-db). This is PR 2 of 2 -- must be merged AFTER PR #77 (code changes), Terraform apply (creates the DB secret), alembic upgrade head against Postgres, and data migration script execution.Changes
k8s/deployment.yaml: ReplacedPALDOCS_DATABASE_PATHenv var withPALDOCS_DATABASE_URLfrompal-e-docs-dbsecret; removed Litestream init container, Litestream sidecar container, PVC volume, and all associated volume mountsk8s/pvc.yaml: Deleted (no longer needed -- data lives in CNPG Postgres)k8s/litestream-configmap.yaml: Deleted (no longer needed)k8s/kustomization.yaml: Removed references to deleted pvc.yaml and litestream-configmap.yamlTest Plan
pal-e-docs-dbsecret withdatabase-urlkey)alembic upgrade headrun against Postgres successfullyscripts/migrate_sqlite_to_postgres.pyexecuted, data verifiedReview Checklist
Related Notes
plan-2026-02-26-tf-modularize-postgres-- the plan this implements (Phase 3)