PostgreSQL on Kubernetes with CloudNativePG

CloudNativePG runs PostgreSQL as declarative clusters on Kubernetes with automated failover, object storage backups and point-in-time recovery. This page covers how to build it, what it demands from your team, and when a VM-based cluster is simpler.

On this page

Running PostgreSQL on Kubernetes with CloudNativePG: what it does and when to choose it

CloudNativePG is a Kubernetes operator that manages PostgreSQL clusters, failover, backups and upgrades on your behalf, so a platform team can describe a database in Kubernetes manifests instead of scripting each server by hand. The supported path is the operator's own custom resources, which declare the cluster, its instances, storage and backup policy, combined with backups written to object storage. If your team already runs Kubernetes and wants databases handled the same way as other workloads, this is the model the operator is built around.

CloudNativePG is released under the Apache 2.0 license, which is separate from the PostgreSQL License that covers the database itself. The PostgreSQL License is a liberal open source license similar to the BSD or MIT licenses, so the database can be deployed, modified and redistributed without a commercial agreement. The license does not settle operational questions, and the database does not help with them either: PostgreSQL does not provide software that detects a failed primary and promotes a standby. That detection and promotion work is exactly what the operator takes on, which is why the choice of operator affects recovery behavior as much as the choice of database version does.

Before committing, confirm the operator's current release, its supported Kubernetes versions and its supported PostgreSQL major versions against the project documentation, and check them against the PostgreSQL versioning policy for your target major version. Then decide who owns the operator lifecycle, including upgrades, custom resource changes and restore drills. Operators reduce manual steps, but they add a Kubernetes control plane dependency that a VM-based cluster does not have, so the team should be able to explain where that trade-off lands in its own environment.

What you need before building a CloudNativePG cluster

A CloudNativePG cluster is only as steady as the platform under it. The cards below cover the Kubernetes, storage, network, security and PostgreSQL decisions to settle before the first cluster manifest is applied. Check each one against your own environment, because the operator and the platform must agree on versions.

Kubernetes version and support window

Kubernetes maintains the three most recent minor releases, currently 1.37, 1.36 and 1.35. The 1.35 line reaches end of life on February 28, 2027, 1.36 on June 28, 2027 and 1.37 on October 28, 2027. Build on a version with a support window that outlasts your planned cluster life, and confirm the CloudNativePG operator version supports your Kubernetes minor in the operator documentation before you install it.

Kubernetes releases

Upgrade order and version skew

Plan cluster upgrades around the version skew policy. The kube-apiserver must be upgraded one minor version at a time and before the controller manager, scheduler and kubelets, and kubelets may run up to three minor versions behind. Schedule node pool upgrades so CloudNativePG pods can be drained, rescheduled and failed over without a second change happening at the same time.

Version skew policy

Control plane design

If you build the cluster yourself, plan at least three control plane nodes behind a TCP load balancer in front of the kube-apiserver on port 6443. Choose between a stacked etcd topology, where etcd runs on the control plane nodes, and an external etcd cluster, which isolates it. A managed control plane shifts this work to the provider, but you still need to confirm what the provider backs up and how fast it restores.

kubeadm HA guide

etcd backup readiness

Kubernetes stores cluster state in etcd, and a CloudNativePG cluster depends on that state to reschedule pods and volumes. Keep an odd number of etcd members, with five recommended for production, and run scheduled snapshots with etcdctl snapshot save. Test a restore with etcdutl before go-live, because an untested etcd backup does not prove recovery of your database platform.

Recommended etcd members
5
Operating etcd clusters

Object storage for WAL and base backups

Point-in-time recovery needs a bucket or container that stores base backups and archived WAL files outside the cluster. Choose a location in your own infrastructure or a provider you have approved, and confirm that it supports the access method the operator uses, along with versioning or retention controls and encryption at rest. Keep the backup credentials separate from the database credentials so one leak does not expose both.

Storage classes for data volumes

Each PostgreSQL instance writes to its own persistent volume, so the storage class decides latency, durability and how fast a replica can be rebuilt. Confirm that the CSI driver supports the volume expansion and snapshot features your runbooks depend on. Test volume binding and failover on a non-production cluster, because a storage class that is slow to detach a volume can lengthen failover time.

Network paths and TLS certificates

Plan the network paths for replication between instances, client traffic through a service or pooler, backup traffic to object storage and administrative access. Decide which namespaces may reach the database, and restrict them with network policies. Issue TLS certificates for client and replication connections from a CA you control, and set a renewal process before the first certificate expires.

PostgreSQL major version choice

Choose the PostgreSQL major version before you write the cluster manifest, because changing it later means a major upgrade. Version 18 is the newest supported release, with support running through November 14, 2030. Version 14 reaches end of support on November 12, 2026, so do not start a new cluster on it. Confirm the image tags your operator release supports for the version you select.

PostgreSQL versioning policy

How to deploy and configure a CloudNativePG cluster in order

This sequence takes a team from an empty Kubernetes namespace to a PostgreSQL cluster with replicated instances, scheduled object storage backups and a restore rehearsal that proves recovery works before anyone depends on it. Each step closes with a check you can record as evidence.

  1. Install the operator and confirm its health

    The platform team installs the CloudNativePG operator into its own namespace, using the install method approved for your cluster, and sets the operator version as a pinned value in your deployment tooling. Confirm the operator deployment reports ready and that its custom resource definitions are registered before going further. Done means the operator pod is running with no restart loop and the Cluster resource type is accepted by the API server.

  2. Define storage classes for data and WAL

    The platform team selects storage classes for data volumes and, where the design calls for it, a separate class for write-ahead log volumes, based on the latency, throughput and expansion behavior your storage provider documents. Confirm with the storage team that the class supports volume expansion and that its reclaim policy matches how long you want data to survive a deleted cluster. Done means each class is listed in the cluster with the expected provisioner and a test volume binds and mounts.

  3. Create the object storage bucket and credentials

    The team creates a bucket in the object store you control, enables the versioning and retention settings your recovery policy requires, and creates a credential scoped only to that bucket. Store the access keys in your secrets manager and expose them to the cluster as a Kubernetes Secret, never in the Cluster manifest. Done means a test write and read with that credential succeed and a write to any other bucket is refused.

  4. Define the Cluster resource with instances and replication mode

    The database team writes the Cluster resource with the number of instances, the PostgreSQL major version, resource requests, anti-affinity rules that spread instances across nodes or zones, and the replication settings, including whether any commit must wait for a standby. Decide the synchronous commit trade-off with the application owners before applying it, since it affects write latency and availability. Done means the cluster reports a primary and the expected number of replicas in a healthy streaming state.

  5. Configure WAL archiving and the first base backup

    Add the object store destination to the Cluster backup section, pointing at the bucket and referencing the credential Secret, then let the operator take the first base backup. The operator streams WAL to the bucket continuously, so the archive is what makes point-in-time recovery possible. Done means the Cluster status shows continuous archiving working and the first backup appears in the bucket with a completed state.

  6. Schedule backups and set retention

    Create a ScheduledBackup resource for regular base backups and set the retention period in the backup configuration to match the recovery point and recovery time targets agreed with the business owners. Confirm the schedule runs at the expected time and that old backups are removed according to the policy. Done means at least one scheduled backup completes, the retention rule is visible in the cluster status, and the alert for failed backups reaches the on-call channel.

  7. Prove point-in-time recovery in a separate namespace

    Restore the cluster into a separate namespace using a recovery target such as a timestamp shortly before a test write, so the restore uses the base backup and archived WAL together. Connect to the restored instance and check that the test row written before the target exists and the row written after it does not. Done means the restored cluster reaches a running state and the timestamp check passes, and the result is recorded with the date, the target time and the operator version.

  8. Rehearse a rolling minor update

    Apply a minor PostgreSQL image update to the restored test cluster first, then to a staging cluster, and watch the operator restart replicas before the primary and perform a switchover. Minor releases do not change the storage format, so the restart is the main risk to check, and it should be measured against your application's connection retry behavior. Done means the rollout finishes with all instances healthy, the primary has changed or stayed as expected, and the application test suite passes against the updated cluster.

Choosing between a Kubernetes-hosted cluster and a VM-based cluster

Teams that already run Kubernetes and deliver changes through GitOps usually gain the most from CloudNativePG. The operator expresses a PostgreSQL cluster as a declarative resource, so instances, storage, backups and upgrades follow the same review and rollout path as other workloads. Failover and rolling updates are handled by the operator rather than by hand-built scripts, and the team reuses its existing monitoring, RBAC and secret tooling.

  • Shared lifecycle tooling: Cluster definitions live in the same repository and pipeline as application manifests, with the same approval steps.
  • Operator ownership: Someone must own CloudNativePG upgrades, CRD changes and compatibility with each Kubernetes minor release.
  • Storage performance: Persistent volumes, their classes and their I/O behavior decide database latency, so storage tuning moves into the cluster design.
  • Control plane dependency: Database recovery depends on the API server and etcd, so etcd backups and restore drills become part of database recovery.
  • Platform skills: Engineers who only know VMs need training in pod scheduling, volume lifecycle and node drains before they can run incidents.

Before committing, confirm the Kubernetes version support window and the operator release cadence your platform team can sustain.

How CloudNativePG resources map to PostgreSQL roles, storage and backups

This table pairs each Kubernetes object an operator uses with the PostgreSQL concept it controls, so you can see where a change in a manifest changes a database role, a volume or a recovery path. Read it as a checklist for review: for each row, confirm the exact field names in the CloudNativePG reference for your release before you write manifests. The main takeaway is that the operator manages the cluster, but credentials, storage classes and backup retention still need decisions from your team.

Kubernetes objectPostgreSQL conceptWhat to decide or confirm
Cluster resourcePrimary and streaming standby instances managed as one clusterInstance count, replication mode and failover behavior; confirm the instance and replication fields in the CloudNativePG reference for your release
SecretsSuperuser and application database role passwordsWho can read each Secret, how passwords rotate and whether applications use the operator-generated or your own Secrets; Secrets are unencrypted in etcd by default unless you enable encryption at rest
Identity source for rolesDatabase roles created and bound to application usersHuman access usually comes from your identity provider through Kubernetes authentication, while database roles are defined in the Cluster spec or in Secrets; map each group to a role deliberately
PersistentVolumeClaimsData directory and, where configured, a separate WAL volumeStorage class, volume size and reclaim policy; confirm whether WAL uses its own claim in your release and what happens to volumes when a Cluster is deleted
Object storage pathsBase backups and archived WAL segments used for point-in-time recoveryBucket, prefix and credentials per cluster; keep backup paths separate from live clusters and confirm retention settings for your release
ScheduledBackup resourceCadence of base backups taken against the clusterSchedule, backup target and whether backups run on a standby; test a restore on a separate cluster before relying on the schedule
Service objectsStable endpoints for read-write and read-only connectionsWhich endpoint each application uses, and whether a connection pooler sits in front of them; PgBouncer releases carry security fixes, so track them

How automated failover and point-in-time recovery work together

PostgreSQL does not detect a failed primary or promote a standby on its own, so the CloudNativePG operator supplies that control loop: it watches the cluster, decides when the primary is gone, and promotes a replica. The data loss you accept during that promotion is set by the replication mode, not by the operator. With asynchronous replication, a commit on the primary returns before the standby has it, so a failover can lose the most recent transactions. With synchronous replication, a commit waits for one or more standbys, which narrows that window at the cost of write latency and, if standbys are unavailable, possible write stalls. Decide the number of synchronous standbys and the behavior when none respond before you choose a cluster size, and test the failover with writes in flight to confirm what was lost.

Failover restores availability; point-in-time recovery (PITR) handles the cases replication cannot, such as an accidental DROP TABLE or a bad migration that replicates faithfully to every standby. PITR combines a base backup with archived WAL files, so the cluster can be replayed to a chosen moment. In CloudNativePG, the base backups and WAL archive go to object storage, and the recovery target is set when you create a new cluster from the backup. Confirm with the operator documentation how the backup schedule, retention policy and WAL archiving are declared, and rehearse a restore to a timestamp before you rely on it.

Incremental backups are a planning option for reducing the time and storage needed for base backups. PostgreSQL's pg_basebackup can take incremental backups, and pg_combinebackup reconstructs a full data directory from them at restore time, which adds steps and a dependency on the chain of backups being intact. Confirm whether the operator version you choose supports this workflow natively or whether it would need to be run outside the operator, and include the restore time in your recovery time target. Whichever approach you choose, test a full restore from object storage on a schedule, because a backup that has never been restored is an assumption, not a recovery plan.

How the operator, PostgreSQL pods and object storage fit together

The diagram starts with application pods sending traffic through a pooler service to the cluster's primary, which the CloudNativePG operator manages alongside a standby on its own volume. Synchronous or asynchronous replication keeps the standby current, while WAL archiving and base backups leave the cluster for object storage, the trust boundary to check first. Credentials for the object store and database users sit in Kubernetes Secrets, and the restore path reads the same archive into a new cluster. Confirm that the restore path has been tested, not only that backups run.

Components, replication and backup flows, with the object storage trust boundary marked.

Hardening the database path on Kubernetes

A CloudNativePG cluster inherits the security posture of the Kubernetes cluster it runs in. The controls below cover where credentials sit, how pods run, how clients prove who they are and which traffic can reach the database. Confirm each setting against your own cluster and your benchmark baseline before you sign off.

Encrypt and scope Secrets

Kubernetes stores Secrets unencrypted in etcd by default, and CloudNativePG keeps superuser and application credentials, backup keys and object storage access in them. Confirm that encryption at rest is enabled for etcd, that list and watch on Secrets is limited by least-privilege RBAC to the operator and the namespaces that need it, and decide whether an external store fed through the Secrets Store CSI Driver is the better fit for your organization.

Secrets good practices

Apply Pod Security Standards to database pods

PostgreSQL pods need to write to their data volumes, but they rarely need privileged mode, host networking or host path mounts. Choose the Pod Security Standards level for the namespace that holds the cluster, then check the operator's pod settings, security context and volume mounts against it. Confirm that any exception the database needs is documented and limited to that namespace.

Pod Security Standards

Choose client authentication methods

In pg_hba.conf, prefer SCRAM over MD5, since PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM. For workloads that need stronger identity, evaluate client certificates, LDAP, or OAuth 2.0 (new in PostgreSQL 18). Confirm which method each application and administrator uses, and remove any host rule that allows a weaker method from the network ranges your pods can reach.

PostgreSQL authentication methods

Restrict traffic with network policies

Kubernetes network policies control which pods can open connections to the database service. Allow only the application namespaces that need PostgreSQL, the operator's control traffic and the replication and backup paths between cluster instances. Test the policy with a pod outside the allowed set, and confirm that your CNI plugin enforces network policies before you rely on them.

Map findings to CIS Kubernetes controls

Use the CIS Kubernetes Benchmark as the checklist for control plane, worker node and policy settings that affect the database. Map each finding to the control ID and title in the benchmark, record the result and the owner, and confirm the controls that apply to your distribution. The benchmark text itself stays with CIS, so the mapping should reference IDs and titles rather than copied wording.

CIS Kubernetes Benchmark

How to test failover, restores and upgrades before production

How long does it take a CloudNativePG cluster to fail over after the primary pod is deleted?

The honest answer is that it depends on your settings and environment, so measure it rather than trust a number from a document. Run a test where you delete the primary pod while a steady write load runs, then record how long writes stall, which replica is promoted, and how long until the old primary rejoins as a standby. Repeat the test several times at normal load and at peak load, because promotion time shifts with replication lag and node scheduling. Compare the observed numbers with the recovery time target your business has agreed. Keep the timestamps, the write-load logs and the cluster status output as evidence, and confirm the failover behavior and its settings against the CloudNativePG documentation for the version you run.

What should a node drain test prove before maintenance on Kubernetes nodes?

A node drain test shows whether PostgreSQL stays available and data stays safe when a worker node is cordoned and drained for maintenance. Cordon and drain a node that hosts a primary or a replica, then check that the operator moves instances without losing committed transactions and that PodDisruptionBudgets block drains that would drop the cluster below quorum. Confirm that storage volumes reattach correctly on the new node and that the replicas catch up before the next drain starts. Verify the outcome with a write-and-read check after each step. Record the drain commands, the events and the final replication state so the test can be repeated for each node pool you maintain.

How do you rehearse a restore of a CloudNativePG cluster to a new cluster from object storage?

A restore rehearsal creates a new cluster from the backups in your object storage, not from the live cluster, and then checks the data. Start from a recent base backup, replay archived WAL to a chosen target time, and compare row counts, checksums on critical tables and a set of business queries against known values from the source. Time each step, since the measured restore duration is what you compare with your recovery time objective. Run the rehearsal in an isolated namespace with its own credentials so the test cannot touch production storage. Ask your team to confirm the backup and recovery settings for your CloudNativePG release, because the exact configuration keys change between versions.

How can you detect a gap in the WAL archive before you need a restore?

You detect a WAL archive gap by checking that archived WAL segments form an unbroken sequence and that archiving is succeeding, then alerting when either fails. Point-in-time recovery depends on every WAL file between the base backup and the target time being present, so a missing segment means you can only restore to an earlier point. Test this on purpose: pause archiving or remove a segment in a non-production bucket, then confirm your monitoring raises an alert and that the backup status reports the problem. Watch the archive status and failed archive counts in PostgreSQL and the operator, and keep the alert output as evidence that the control works.

How do you rehearse a Kubernetes minor version upgrade under the version skew policy?

A Kubernetes minor version upgrade rehearsal follows the version skew policy in order: kube-apiserver first, one minor version at a time, then the controller manager, scheduler and kubelets within the allowed skew. Rehearse this in a non-production cluster with the same distribution, add-ons and CloudNativePG operator version you run in production. Before the upgrade, check the CloudNativePG compatibility notes for the target Kubernetes version and confirm that the operator, its CRDs and your storage driver support it. During the rehearsal, keep a PostgreSQL write load running, drain nodes one by one, and confirm clusters stay healthy. Record each version step and any API deprecation warnings so the production plan reflects what actually happened.

How do you rehearse PostgreSQL minor and major upgrades inside CloudNativePG?

Rehearse a minor upgrade by moving the image to a newer PostgreSQL minor release in a copy of the cluster, since minor releases do not change the storage format but still restart the server. Rehearse a major upgrade separately, using either pg_upgrade on a copy of the data or logical replication to a cluster on the new major version, which keeps downtime to a few seconds when the cutover is well prepared. Measure the downtime of each approach, check extensions and their versions on the new major, and compare query plans and key queries before and after. Validate application connections through the pooler and the connection strings your teams use. Keep the rehearsal logs, row count reports and the rollback steps you tested, because those are the records a reviewer will ask for.

What evidence should we keep from these tests for auditors without claiming a certification?

Keep dated, repeatable records that show each test was planned, run, measured and fixed where needed. For each test, store the written test plan with its objective and pass criteria, the exact commands or manifests used, the cluster and operator versions, and the raw output with timestamps. Add the measured results, such as failover time, restore duration and the data verification report, along with any defects and their retests. Store the evidence in a location with access control and retention set by your policy. Be clear with your auditors that these records support your own controls and that DeployOpen prepares systems and evidence for assessments, while independent auditors and certification bodies issue any audit report or attestation.

Common CloudNativePG failures and how to fix them

This table lists recurring failure modes in CloudNativePG clusters on Kubernetes, with the likely general cause and the first fix to try for each. Start with the operator logs and PostgreSQL logs for the affected cluster before changing any configuration, because most rows below show up there first.

FailureLikely causeHow to fix it
Scheduled or on-demand backups failObject storage credentials are missing, expired or scoped too narrowly, or the bucket policy denies the write or list calls the backup tool makesCheck the backup resource status and operator logs, confirm the secret the cluster references, then test the same credentials against the bucket from outside the cluster before changing the policy
WAL archive falls behindArchiving cannot keep up with WAL generation, the bucket is unreachable from the primary, or a prior archive error has blocked the queueCheck the archiver status in PostgreSQL logs and the WAL archive metrics, fix the network or permission cause first, then confirm the backlog drains before treating the cluster as recoverable
Replicas do not rejoin after node lossThe replacement pod cannot attach to its volume, the volume sits in a different zone from the scheduler's choice, or the standby cannot reach the primary for base backup or streamingInspect pod events and persistent volume claims, confirm the storage class supports the zone layout, and check that the standby can resolve and reach the primary service
Replication lag grows under loadSlow storage on the standby or primary, I/O contention from other workloads on the same nodes, or synchronous settings that wait on a slow replicaCompare storage latency on each node, review the replication lag metrics, and confirm that the storage class and node pools match the sizing used for the cluster
Kubernetes upgrade stallsThe node or control plane version falls outside the supported version skew for the cluster, so the upgrade sequence is out of orderUpgrade the kube-apiserver one minor version at a time first, then the other control plane components and kubelets, and check the operator's supported Kubernetes versions before each step
Secrets exposed through broad RBACRoles grant list or watch on Secrets across namespaces, so any principal with those rights can read database and storage credentialsAudit which subjects can list or watch Secrets, narrow roles to named Secrets where possible, and confirm that Secrets are encrypted at rest in etcd or sourced from an external store
PgBouncer pooling misbehavesPool size or pool mode does not match the application's session behavior, or client connection limits are set lower than the number of application podsReview the pooler resource settings and PgBouncer logs, match the pool mode to how the application uses transactions and session state, and confirm the total connection budget across all pools
PITR restores to the wrong timelineThe recovery target omits the timeline or points to a time on a branch created by an earlier failover, so recovery replays a different history than intendedIdentify the timeline from the backup catalog and the WAL history, set the recovery target and timeline explicitly, and restore into a separate cluster to verify the data before promoting it

What CloudNativePG work costs, takes and needs from your team

What drives the cost of a CloudNativePG implementation?

The main drivers are the number of clusters, the number of backup and restore targets, how mature your Kubernetes platform already is, and how much compliance evidence you need. Each cluster adds topology, failover, pooling and backup configuration to design and verify. Each backup target adds storage access, retention rules and a restore test. A team that already runs stateful workloads with GitOps and storage classes starts further ahead than one that is building its first cluster. Ask any partner to price the scope by these items, and confirm your own counts before requesting a quote.

Which parts of CloudNativePG work are one-time and which recur?

The initial design, build, backup configuration, restore testing and handover are one-time work. Recurring work includes operator upgrades, Kubernetes upgrades, and PostgreSQL minor updates. PostgreSQL releases minor versions at least once every three months, and minor releases never change the storage format, so they require replacing executables and restarting. Backup restore tests also recur, because a backup that has not been restored is unproven. Ask a partner to list each recurring task, its owner and how often it happens in your environment.

Can our internal platform team run CloudNativePG without a partner?

Yes, if the team already operates Kubernetes in production, understands PostgreSQL replication and recovery, and can staff on-call for database failover. The hard parts are not the first deployment but the ongoing work: testing point-in-time recovery, running Kubernetes and operator upgrades in order, and keeping the runbooks current. Check whether you have at least two people who can perform a restore without guidance and whether someone owns each recurring task. If not, a partner can build the platform and hand over runbooks, or you can keep a retainer for upgrades and testing.

What should we ask a partner to include in a CloudNativePG quote?

Ask for a written scope that names each cluster, each backup target, the object storage and retention settings, the failover and pooling design, and the restore tests you will receive. Request the Kubernetes and operator versions the work assumes, the upgrade path, and what your team must provide, such as cluster access, storage classes, DNS, certificates and an object storage bucket. Ask who performs restore tests, what evidence you receive, and which items are excluded. Confirm how changes to scope are priced and approved.

How do fixed-scope engagements and retainers differ for CloudNativePG?

A fixed-scope engagement agrees scope, deliverables and timelines in writing before work starts, and it ends when those deliverables are handed over. A retainer covers continuing work after that, such as operator and Kubernetes upgrades, PostgreSQL minor updates, backup restore testing and periodic review. Most organizations start with a fixed scope to build and document the platform, then decide whether recurring work stays in-house or moves to a retainer. Compare both against the recurring task list in your quote.

What compliance evidence should a CloudNativePG deployment prepare?

Prepare the evidence your assessors will ask for: the cluster topology, access controls for Kubernetes and database roles, how secrets are stored, encryption settings, backup schedules, restore test records, and change records for upgrades. Kubernetes stores Secrets unencrypted in etcd by default, so confirm that encryption at rest is configured and that list and watch access is restricted through least-privilege RBAC. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors and certification bodies perform those assessments.

When is a VM-based PostgreSQL cluster still the simpler choice?

A VM-based cluster is often simpler when your team has no Kubernetes operations experience, when you run only a few databases, or when your storage and network arrangements are hard to present to Kubernetes. Running stateful databases on Kubernetes adds a second system to upgrade, monitor and secure, including the control plane, etcd backups and operator lifecycle. Kubernetes releases about three times per year, and each minor version is supported for a limited period, so the upgrade load is continuous. If your platform team cannot absorb that load, a well-run VM cluster with tested failover and backups may be the better fit.

How DeployOpen scopes and delivers CloudNativePG work

DeployOpen delivers CloudNativePG work as a fixed-scope engagement, with the scope, deliverables and timeline agreed in writing before any cluster is touched. For this topic, the written scope should name the Kubernetes clusters and distribution, the namespaces and storage classes, the PostgreSQL major version and the operator release to be installed, the object storage target for WAL and base backups, the connection pooling design (including whether PgBouncer is deployed as a pooler resource), the identity model for database access and the handover format. Ask for each of these to appear as a named deliverable. A quote follows from that written scope, so the more precisely the boundaries are drawn, such as whether application migration or Kubernetes platform hardening is included, the more comparable the quotes you receive will be.

Delivery is tested inside your own infrastructure, in your cloud accounts, data centers or air-gapped network. The testing that matters most for this topic is restore testing: DeployOpen builds the cluster, takes backups to your object store, and then restores into a separate namespace, replays WAL to a chosen target time and verifies the result against known data. Failover is exercised by stopping the primary pod and confirming that the operator promotes a replica and that clients reconnect through the rw service. Rolling updates and a planned major upgrade are rehearsed on a non-production copy first. The evidence collected from these runs, including configuration exports, backup and restore logs and test records, can feed the control evidence your compliance or audit team asks for. DeployOpen prepares that evidence, but independent auditors and certification bodies issue any audit report or certification.

Some clients keep the platform running after handover. Optional retainers can cover operator and PostgreSQL upgrades, periodic restore drills, and continuous testing of backups and failover against your current environment. Confirm in the quote which of these recur, how often restore tests run, who holds the object storage credentials after handover, and how upgrade windows are agreed. Ask for the cost of each recurring item separately from the one-time build, so you can compare a partner with running the same tests with your own team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.