#6060th of 102 in Backends, databases and hosting

cloudnative-pg

Kubernetes operator that runs and manages PostgreSQL primary/standby clusters

Stars
9.6k
License
Apache-2.0
Last commit
Nov 2026
Last release
Sep 2026
Language
Go
Stars, last 29 weeks+1,151
21 Apr 2026: 8,427 stars28 Apr 2026: 8,467 stars5 May 2026: 8,513 stars12 May 2026: 8,544 stars19 May 2026: 8,583 stars26 May 2026: 8,626 stars2 Jun 2026: 8,674 stars9 Jun 2026: 8,718 stars16 Jun 2026: 8,773 stars23 Jun 2026: 8,806 stars30 Jun 2026: 8,851 stars7 Jul 2026: 8,901 stars14 Jul 2026: 8,931 stars21 Jul 2026: 8,979 stars28 Jul 2026: 9,018 stars4 Aug 2026: 9,060 stars11 Aug 2026: 9,100 stars18 Aug 2026: 9,134 stars25 Aug 2026: 9,185 stars1 Sept 2026: 9,215 stars8 Sept 2026: 9,254 stars15 Sept 2026: 9,289 stars22 Sept 2026: 9,327 stars29 Sept 2026: 9,370 stars6 Oct 2026: 9,401 stars13 Oct 2026: 9,442 stars20 Oct 2026: 9,473 stars27 Oct 2026: 9,498 stars3 Nov 2026: 9,541 stars10 Nov 2026: 9,578 stars

8,427 on 21 Apr 20269,578 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

CloudNativePG is a Go Kubernetes operator that manages the lifecycle of vanilla PostgreSQL clusters: deployment, failover, replica scaling, rolling updates and backups. It talks to the Kubernetes API directly instead of using Patroni, repmgr or Stolon, and exposes cluster status on the Cluster resource. It is a CNCF Sandbox project, originally built and sponsored by EDB.

Who it is for: Platform engineers and DBAs running PostgreSQL on Kubernetes

Strengths

  • Uses the Kubernetes API for failover, with no Patroni, repmgr or Stolon
  • Rolling updates upgrade replicas first, then switch over the primary
  • Custom resources for Backup, ScheduledBackup, Pooler, Database, Publication and Subscription
  • Extensible through the CNPG-I plugin interface

Weaknesses

  • Kubernetes only; no support for other orchestrators
  • PostgreSQL only; no other databases such as MariaDB
  • PostgreSQL forks are supported only as extensions or pluggable frameworks
  • Targets vanilla upstream Kubernetes; other distributions are not described

What it needs

  • no GPU
  • Docker
  • Needs Kubernetes, PostgreSQL

Quick answers

Is cloudnative-pg open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Can you run cloudnative-pg with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Also in Backends, databases and hosting

See all 102
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.7k starscustom license93 out of 100
2strapiHeadless CMS that generates REST and GraphQL APIs from content models Live demo ↗ (opens in a new tab)73.5k stars+245 (+0.3%) in 30 dayscustom license92 out of 100
3traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.5k stars+446 (+0.7%) in 30 daysMIT92 out of 100
#4appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58k stars+463 (+0.8%) in 30 daysBSD-3-Clause92 out of 100
#5medusaNode.js commerce platform with modular products, carts, orders and payments37.2k starscustom license92 out of 100