infra/stacks/platform/modules/redis
Viktor Barzin 58e93ae4f0 Add HAProxy for Redis HA master-only routing
The Redis K8s Service was load-balancing across both master and replica
nodes, causing READONLY errors when clients hit the replica. This broke
Nextcloud (DAV 500s, liveness probe timeouts, crash loops) and
potentially other services.

Replace the direct Service with HAProxy (2 replicas) that health-checks
each Redis node via INFO replication and only routes to role:master.
On Sentinel failover, HAProxy detects the new master within ~9 seconds.
2026-03-18 08:03:58 +00:00
..
main.tf Add HAProxy for Redis HA master-only routing 2026-03-18 08:03:58 +00:00