PostgreSQL HA Cluster with Query Load Balancing on Kubernetes
summary
Demonstrates a working setup that uses KubeDB operator to create a 3-node streaming replication cluster (1 primary, 2 standbys) and deploys pgpool-II as a separate pod to parse queries and load-balance reads while sending writes to the primary. Uses Kubernetes Services for stable primary/replica DNS names, environment variables and ConfigMaps for pgpool config, and Prometheus plus postgres/pgpool exporters for metrics; failover and restarts work via K8s, and the demo shows read queries distributed across standbys. Notes KubeDB lacks Postgres 12 and some replication features.
AI-written summary · about
