Managed Databases with HA

PostgreSQL via CloudNativePG, and Valkey with primary + replica replication, both with automated failover.

  • `postgres` provisions a CloudNativePG cluster with streaming replication; `replicas.write.count` defaults to 3 for managed HA.
  • `keyvalue` (Valkey) with `replicas.write.count > 1` provisions a primary (pod-0) plus `replicaof` replicas; an init container on each replica configures replication and reads `masterauth` from the mounted auth secret, so the password never appears in the pod spec.
  • This is primary/replica replication, not hash-slot sharding — every replica holds a full copy of the primary keyspace. `replicas.write.count <= 0` fails closed with a validation error.
  • Applications without their own read/write splitting can instead connect through db-proxy for transparent routing.

← Back to all features

Full technical documentation →