# CloudNativePG

> Run PostgreSQL. The Kubernetes way.

Source: https://talira.ai/catalog/cloudnativepg-vev9c0tv
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [databases / postgres / kubernetes](https://talira.ai/categories/databases/postgres/kubernetes), [databases / postgres](https://talira.ai/categories/databases/postgres), [infrastructure / kubernetes](https://talira.ai/categories/infrastructure/kubernetes)
- Platforms: kubernetes[^4]
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2][^3]
- Free tier: yes[^2][^3]
- Self-hostable: yes[^4]
- API: yes[^4]
- Plugins: yes[^4]
- Backed by: [Cloud Native Computing Foundation](https://talira.ai/orgs/cncf.md)
- Funding: non-profit[^5][^6]
- Sponsors: EDB

CloudNativePG is a [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) operator that runs [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) clusters: a Cluster resource declares a primary and any number of streaming replicas, and the operator handles failover, switchover, scaling, rolling minor upgrades and the read-write and read-only services applications connect to. Backups and point-in-time recovery go to object storage through the [Barman Cloud plugin](https://talira.ai/catalog/barman-cloud-plugin-h1e2ar3n.md) or to volume snapshots, replica clusters keep standbys in other Kubernetes clusters, and it manages roles, databases, extensions and a [PgBouncer](https://talira.ai/catalog/pgbouncer-ke0bbbm9.md) pooler declaratively. It was built by EDB, released under Apache-2.0, and is a CNCF incubating project; its standard Postgres images include [pgvector](https://talira.ai/catalog/pgvector-vv3axms1.md).

## Links

- Website: https://cloudnative-pg.io
- GitHub: https://github.com/cloudnative-pg/cloudnative-pg
- Docs: https://cloudnative-pg.io/docs/current

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/kubectl-cnpg>[^1]

## Problems it solves

- highly available Postgres on our own Kubernetes cluster that promotes a replica by itself when the primary dies
- self-host the database for our app on Kubernetes instead of paying for managed Postgres
- stop hand-managing streaming replication and replicas for Postgres in containers
- continuous Postgres backups to S3 with point-in-time recovery, from inside the cluster
- declare our Postgres cluster, its users, databases and extensions in YAML and let something keep it that way
- upgrade Postgres minor versions with a rolling update and a switchover instead of downtime
- a read-write service for the primary and a read-only service spread across the replicas
- keep a standby copy of our database in another Kubernetes cluster or cloud
- a PgBouncer connection pooler managed together with the database
- Prometheus metrics for every Postgres instance in the cluster
- move a database from a VM into Kubernetes with an online import over logical replication
- Postgres with pgvector for embeddings that keeps running when a node fails

## Features

- automated failover and planned switchover
- synchronous and quorum-based replication
- backups and point-in-time recovery to object stores (Barman Cloud plugin) or volume snapshots
- replica clusters across Kubernetes clusters
- declarative roles, databases and extensions
- PgBouncer pooler
- rolling minor upgrades and offline major upgrades
- Prometheus metrics exporter
- cnpg kubectl plugin
- TLS and cert-manager integration

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.84 out of 1.
Signals: maintenance 1.00, adoption 0.80, momentum 0.67, community 0.97, backing 0.70, extensibility 0.60.

- last commit 8 days ago
- 278 commits in the last 90 days
- latest release v1.30.1 2 months ago
- 9.6k GitHub stars
- 259 contributors
- backed by Cloud Native Computing Foundation
- funding: non-profit
- sponsored by EDB
- has a plugin system

## Related

- Works with [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md)

## Alternatives

- [KubeBlocks](https://talira.ai/catalog/kubeblocks-21mkwhhc.md): One open source operator for every database on Kubernetes
- [Barman Cloud Plugin](https://talira.ai/catalog/barman-cloud-plugin-h1e2ar3n.md): The reference CNPG-I backup/restore plugin for Barman Cloud

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://github.com/cloudnative-pg/cloudnative-pg/blob/main/LICENSE (checked 17 Nov 2026)
[^3]: https://cloudnative-pg.io (checked 17 Nov 2026)
[^4]: https://github.com/cloudnative-pg/cloudnative-pg (checked 17 Nov 2026)
[^5]: https://www.cncf.io/about/charter/ (checked 20 Nov 2026)
[^6]: https://www.cncf.io/ (checked 20 Nov 2026)
