fix: address review of the Postgres move
- close the pool on SIGTERM before exiting; query_timeout on the pool - SIGTERM test fails instead of hanging; test cleanup in finally - preStop sleep so rollouts don't drop form posts; Postgres startupProbe - CI step timeout, clear error if test Postgres never starts, remove test image - export stops on SQL errors; README note on changing the DB password Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
This commit is contained in:
1 parent
20e07e9d80
commit
ad5996283e
7 files changed
+42
-14
No files matched your search
@@ -46,6 +46,8 @@ First install, on the microk8s host (`k` = `microk8s kubectl`):
|
||||
k -n ins-landing-page rollout status statefulset/postgres
|
||||
k -n ins-landing-page rollout status deployment/ins-landing-page
|
||||
|
||||
The password is read only when the database is first created. To change it later, run `ALTER USER ins PASSWORD '...'` in Postgres first, then update the secret and restart the app; changing only the secret locks the app out.
|
||||
|
||||
`k apply -f k8s/` does not recurse, so `k8s/examples/secret.yaml` (an example, never the real value) is not applied.
|
||||
|
||||
Updates: every push to `main` runs the tests against a throwaway Postgres, then builds `gitea.containerverse.dev/solvway/ins-landing-page:ins-landing-page-prd-latest`. CI then runs `./krrd.sh ins-landing-page ins-landing-page` on the deploy host. Manifest changes are applied by hand (`k apply -f k8s/`).
|
||||
@@ -73,7 +75,7 @@ Close the port-forward when you're done.
|
||||
To CSV, with times in Malaysia time:
|
||||
|
||||
```bash
|
||||
microk8s kubectl -n ins-landing-page exec -i postgres-0 -- psql -q -U ins -d ins -f - < docs/export-leads.sql > leads.csv
|
||||
microk8s kubectl -n ins-landing-page exec -i postgres-0 -- psql -q -v ON_ERROR_STOP=1 -U ins -d ins -f - < docs/export-leads.sql > leads.csv
|
||||
```
|
||||
|
||||
Read-only. Text cells starting with `= + - @` get a leading `'` so Excel can't run form input as a formula; phone numbers starting with `+` show it too.
|
||||
|
||||
Reference in new issue
Block a user