mrkeyoor.comAsk

cloudnative-pg/cloudnative-pgtested 03 Oct 2026commit 887bffe

cloudnative-pg review

CloudNativePG is worth evaluating when your team already operates Kubernetes and wants PostgreSQL managed through that API.

  • Install 34 s
  • Build 199 s
145/147passed, run exited non-zero
  • 236 packages
Dataevaluationupdated 25 Oct 2026
+20stars / 7d

CloudNativePG is a Kubernetes operator for managing vanilla PostgreSQL primary and standby clusters through Kubernetes resources. Its README describes automated failover, replica scaling, service updates and rolling updates, plus resources for databases, poolers and backups. Our recorded source-check run did not exercise those database operations.

Verdict

CloudNativePG is worth evaluating when your team already operates Kubernetes and wants PostgreSQL managed through that API. Its documented automation fits that workflow, but our recorded run provides no evidence about database availability, restore speed or production readiness. Start with the local quickstart, then validate recovery and failure handling on your intended storage and network. Plan the Barman Cloud Plugin migration before upgrading beyond the 1.31 release line.

We ran it

Lab card: what happened when we ran cloudnative-pg
Lab card from our sandbox run
Screenshot of cloudnative-pg (cloudnative-pg.io)
cloudnative-pg.io
Install✓ · 34s236 packages
Build✓ · 199s
Tests✗ · 153s145 passed · 2 failed of 147 (go test)
Repo1855 files~220,709 lines of source · 62 MB · 21 CI workflows · Dockerfile · tests dir

Answers from our run

Does cloudnative-pg build from source?

Dependencies installed in 34 seconds (236 packages), and the build succeeded in 199 seconds. We cloned commit 887bffe into a clean Debian container with 3 CPUs and no project-specific setup.

Do cloudnative-pg's tests pass?

No. The project's own test command finished in 153 seconds and reported 145 passed, 2 failed (go test).

Who should not use cloudnative-pg?

Teams seeking a PostgreSQL manager outside Kubernetes.

What are the alternatives to cloudnative-pg?

Zalando Postgres Operator, Crunchy Postgres for Kubernetes. CloudNativePG is worth evaluating when your team already operates Kubernetes and wants PostgreSQL managed through that API.

Setup3/5Documented installation paths support evaluation, but Kubernetes and storage preparation remain necessary. Our 2026-10-03 run at 887bffe did not verify an installed operator or a deployed cluster.
Docs4/5Supplied guides explain local setup limits, upgrade reconnections and physical recovery requirements. The historical release note and development backup guide give different removal schedules, requiring version-specific reading.
Community3/5The README provides community meeting and contribution resources. The supplied evidence does not measure support response times, adoption or sustained issue resolution.
Maturity3/5Documented lifecycle and backup workflows provide a basis for evaluation. Our recorded source-check run did not validate production availability or recovery, and backup integration is undergoing a documented transition.

Discussed on

  1. hnCloudNativePG – Postgres Operator for Kubernetes151 points
  2. hnCloudNativePG: Run PostgreSQL, the Kubernetes Way3 points

Who it’s for

Kubernetes platform teams that want PostgreSQL configuration reviewed alongside application manifests.
PostgreSQL operators prepared to validate storage, primary isolation, upgrades and recovery on their own infrastructure.
GitOps teams that want declarative database resources and can maintain the Kubernetes platform beneath them.

Who it’s NOT for

Teams seeking a PostgreSQL manager outside Kubernetes.
Teams seeking one operator for MariaDB or other database engines. The project's stated scope is vanilla PostgreSQL; fork-specific features must fit extensions or pluggable frameworks.
Teams expecting a managed database service to take responsibility for infrastructure and recovery.
Production deployments copied directly from the local quickstart, which explicitly limits its instructions to demonstration, testing and practice.
Teams planning to retain native Barman Cloud integration when upgrading to 1.32.0 or later. The supplied development documentation says native support ends after the 1.31 release line.

Setup reality

In our recorded run on 2026-10-03 at commit 887bffe481a37c198a2f7c6cb9023b415faad515, the setup step exited 0 after 34 seconds. Its retained output says go: downloading go1.27.1 (linux/amd64). This establishes a toolchain download, not installation of the operator or the cnpg plugin. The dependency metric was 236; it is not a verified count of installed packages.

The harness marked its build step successful after 199 seconds, but the retained output is only vet-exit:0. That does not establish that an operator executable was produced or installed. The test step exited 1 after 153 seconds. Its parser recorded 145 successful package results and 2 failed package results, with 54 packages having no test files. These are package-summary observations, not individual test counts or verified exhaustive unique coverage. The retained tail does not identify the failing packages or assertions.

A Kubernetes trial is a separate task. The quickstart requires kubectl, uses Kind or Minikube, and deploys a three-instance PostgreSQL cluster using the default storage class. We did not record that deployment, installed-binary checks, failover, backup, restore or workload measurements. The installation documentation also warns about webhook connectivity on GKE and application reconnections during default operator upgrade rollouts.

Should you run PostgreSQL through CloudNativePG?

CloudNativePG fits teams that want PostgreSQL managed through Kubernetes and can take responsibility for the infrastructure beneath it. The decision depends on whether your team can validate storage failures, primary isolation and recovery, as well as deploy the operator.

The project's README describes direct integration with the Kubernetes API rather than an external high-availability coordinator such as Patroni. Cluster status is available on the Cluster resource. Documented operations include promoting a replacement primary, scaling replicas, updating service endpoints and rolling image updates through replicas before a primary switchover. These are upstream capability descriptions, not operations demonstrated by our run.

The stated scope is Kubernetes and vanilla PostgreSQL. Other database engines are excluded. PostgreSQL-fork features are considered only when they fit extensions or pluggable frameworks.

What our recorded run establishes

Our stored run took place on 2026-10-03 at commit 887bffe481a37c198a2f7c6cb9023b415faad515, whose recorded commit date is 2026-10-02. The configured sandbox had 3 CPUs, 8 GB of memory and the image golang:1.24-bookworm. That image label does not establish the toolchain actually used: the setup tail records a download of Go 1.27.1.

Step Recorded result Evidence limit
Setup Exit 0, 34 seconds Retained output shows a Go toolchain download; no operator or plugin installation check
Build Harness success, exit 0, 199 seconds Retained output is only vet-exit:0; no executable artifact check
Tests Exit 1, 153 seconds Parser reports 145 successful and 2 failed package results; failing assertions are absent from the tail

The parser also recorded 54 packages with no test files. Those packages are not failed or skipped tests. The 147 total is the recorded successful-plus-failed package summary, not a count of individual tests. Unique and exhaustive coverage was not verified through complete-log reconciliation.

The repository metrics were 1,855 files, about 220,709 lines of source and 62 MB, with 21 CI workflows, a Dockerfile and a tests directory. The dependency metric was 236, with no recorded download size. These inventory figures do not establish installation or runtime correctness.

The retained test tail ends with FAIL but does not identify the failing packages or assertions. We cannot diagnose the cause from that excerpt. The failed command prevents a clean test-run claim for this sandbox; it does not establish that CloudNativePG is broken. No Kubernetes deployment, installed-binary check, database workload, failover or restore was recorded. No security audit result was supplied.

A local trial and a production deployment answer different questions

The supplied development quickstart uses Kind or Minikube, requires kubectl, and applies a three-instance Cluster using the default storage class. It explicitly prohibits using those instructions as a production recipe. Use it to learn the resource model before designing a deployment around your actual storage and recovery requirements.

The installation documentation covers manifests, the cnpg plugin, Helm and Operator Lifecycle Manager. It warns that GKE firewall rules can block the webhook on port 9443. These are deployment considerations that our source-check run did not test.

Under the default upgrade behavior, updating the controller triggers an instance-manager rolling update. The default unsupervised policy completes the final switchover automatically; supervised requires manual promotion. Applications must reconnect. A single-instance cluster restarts and does not support the supervised strategy. The documentation also describes optional in-place instance-manager updates, disabled by default, so a rolling restart is not the only supported upgrade path.

Use specific PostgreSQL image versions or digests. The quickstart warns against broad tags such as latest or a bare major version in production. Read the release notes matching your deployed version before an upgrade.

Plan the backup migration against the current documentation

The supplied development backup documentation says native Barman Cloud support was deprecated from 1.26, remains available through the 1.31 release line, and is removed starting with 1.32.0. It directs users toward the Barman Cloud Plugin through CNPG-I. The historical v1.30.0 release notes announced removal in 1.31.0; that earlier schedule differs from the supplied development documentation. Plan migrations against documentation for the version you intend to deploy.

CloudNativePG's backup documentation covers physical backups. It excludes logical pg_dump backups from its managed business-continuity workflow. Object-store backups require WAL archiving and support hot backups. Native volume snapshots depend on the storage class, support hot and cold backups, and do not provide native retention policies. Incremental and differential snapshot capabilities depend on the underlying storage.

The docs recommend WAL archiving in production. A WAL archive alone cannot restore a cluster: recovery also needs a physical base backup. Backup requests do not include PostgreSQL superuser or application-user Kubernetes secrets, so include those in the broader cluster backup plan. Our run measured neither backup completion nor recovery time.

Two alternatives to compare

Zalando Postgres Operator documents a Patroni-based approach configured through Postgres manifests. Compare it when Patroni is part of the operating model your team wants to maintain.

Crunchy Postgres for Kubernetes integrates PGO with PostgreSQL and related tools. Its README describes pgBackRest full, incremental and differential backups. Compare it when that recovery model fits your requirements, and review the image distribution terms attached to its default installation path.

Neither alternative was executed in our recorded run. These are documented differences to investigate, not performance rankings.

How to read the scores

Scores use a five-point editorial rubric: 1 means substantial obstacles or insufficient evidence for the category; 2 means limited support with important gaps; 3 means a documented basis for evaluation with material work or unknowns; 4 means broad supporting evidence with bounded gaps; 5 requires comprehensive evidence for the intended use. These are judgments about the supplied evidence, not measured reliability or adoption scores. Missing evidence limits confidence rather than proving poor product quality.

Setup receives 3/5 because deployment paths are documented but require Kubernetes and storage preparation, and our run did not verify deployment. Documentation receives 4/5 for concrete setup, upgrade and recovery guidance, with a backup-removal schedule that must be read in version context. Community receives 3/5 because the README documents open meetings and contribution resources, while response times and adoption were not measured. Maturity receives 3/5 because lifecycle and recovery workflows are documented but production behavior was not validated by our run.

For a useful next step, deploy the local quickstart, then build a separate evaluation on your intended infrastructure. Record application reconnection behavior, primary isolation and a full restore before making a production decision.

Alternatives

ProjectWhat it isPick it when
Zalando Postgres OperatorA Kubernetes PostgreSQL operator whose README describes Patroni-based high availability and configuration through Postgres manifests.Consider it when your team wants a Patroni-based PostgreSQL stack managed through Kubernetes manifests. This is a comparison of documented approaches; we did not run it.
Crunchy Postgres for KubernetesAn integrated PostgreSQL product using Crunchy Data's PGO operator, with documented pgBackRest backup and restore support.Consider it when pgBackRest full, incremental and differential backups fit your recovery plan. Review the Developer Portal image terms used by its default installation instructions. We did not run it.

What people are saying

  1. [github-trending] cloudnative-pg/cloudnative-pg

Sources

  1. CloudNativePG repository and README
  2. CloudNativePG quickstart
  3. CloudNativePG installation and upgrades
  4. CloudNativePG backup documentation
  5. CloudNativePG v1.30.0 release
  6. Failover blocked with surviving WAL sender

More data reviews