infra/stacks/wealthfolio
Viktor Barzin b56a868b4e wealthfolio-sync: podAffinity to co-locate with app pod (RWO multi-attach fix)
The monthly wealthfolio-sync CronJob mounts the same RWO
wealthfolio-data-encrypted volume (shared wealthfolio.db SQLite) as the
always-running wealthfolio app Deployment. RWO attaches to only one node,
but the sync had no affinity — so the 2026-06-01 run landed on node4 while
the app held the volume on node3 and hung in ContainerCreating for 3 days
(FailedAttachVolume / Multi-Attach), surfacing as a problematic_pods WARN.

Add a required podAffinity (app=wealthfolio, topologyKey hostname) so the
sync always schedules onto the app's node, where the volume is already
attached (RWO permits multiple pods on the same node). Verified: a fresh
sync run co-located on node3, attached cleanly, and broker-sync started.
2026-06-05 09:19:10 +00:00
..
.terraform.lock.hcl kms: revert files accidentally bundled into the docs commit 2026-06-01 10:36:49 +00:00
main.tf wealthfolio-sync: podAffinity to co-locate with app pod (RWO multi-attach fix) 2026-06-05 09:19:10 +00:00
providers.tf state(dbaas): update encrypted state 2026-05-26 08:59:40 +00:00
secrets [ci skip] Move Terraform modules into stack directories 2026-02-22 14:38:14 +00:00
terragrunt.hcl wealth: SQLite→PG ETL sidecar + new Grafana dashboard 2026-04-25 17:07:33 +00:00