PGO automates PostgreSQL on Kubernetes with declarative cluster configuration. It targets production setups with HA, backups, monitoring, and TLS.
Overview
PGO, the Postgres Operator from Crunchy Data, watches custom resources and keeps PostgreSQL clusters in the desired state on Kubernetes. Operators describe clusters declaratively instead of hand-managing pods, storage, and failover steps.
Provisioning covers creating, scaling, and deleting clusters with customizable pods and PostgreSQL settings. High availability uses automated failover with distributed consensus, pod anti-affinity, and self-healing primaries. Standby clusters can span namespaces or clusters for disaster recovery.
Backups and restores integrate pgBackRest with full, incremental, and differential schedules and retention policies. Storage targets include local volumes and object stores compatible with S3, Google Cloud Storage, and Azure Blob, including mixed destinations. Security defaults require TLS; users may supply their own certificates.
Operations also include rolling PostgreSQL upgrades, pgBouncer connection pooling, pgMonitor-based health tracking, cloning from existing clusters or backups, and scheduling controls for affinity, tolerations, and namespace scope. Install paths document Quickstart, Kustomize, and Helm flows alongside tested Kubernetes distributions.
Key features
- Declarative PostgreSQL cluster provisioning
- Automated HA failover with Patroni
- pgBackRest backup and restore
- TLS-enforced database connections
- pgMonitor cluster health metrics
- Rolling PostgreSQL version upgrades
- pgBouncer connection pooling
- Clone clusters from backups or peers
Use cases
- Production Postgres on Kubernetes
- GitOps-managed database infrastructure
- HA PostgreSQL with automated failover
- Scheduled backups to object storage
- Multi-namespace database-as-a-service platforms