Posted On 14.06.2026

CNPG – Cloud Native Postgresql – Pilot

0 comments
confdroid.com >> blog >> CNPG – Cloud Native Postgresql – Pilot

Moving from Traditional Postgres to CNPG (Cloud Native Postgres)

Rising hosting costs and the desire to stay current with modern technologies prompted a significant shift in my lab cloud setup. The main goal was to reduce expenses while exploring newer tools. A key part of this plan involved moving as much workload as possible from traditional virtual machines to my existing, well-running Kubernetes cluster, which already hosts around 18 applications with plenty of capacity to spare.

Immediate Priorities

Two quick wins stood out:

  • Retire the dedicated database server
  • Move the Puppet-managed Nagios server onto an existing web server

Looking further ahead, I plan to migrate web services to Kubernetes, replace Nagios with Zabbix (which also runs nicely in Kubernetes), switch from Jenkins to GitLab CI, and give Prometheus another try in the cluster.

Thanks to the growing ecosystem of Kubernetes operators, managing complex services has become much smoother. The end result should be roughly half the number of servers—and significantly lower costs.

First Step: Moving to CNPG

Last year, I experimented with a standard Postgres container, but the results were disappointing. Performance lagged behind my VM-based setup, and I was limited to a single instance. In contrast, the VM environment delivered solid performance and allowed near-complete management through Puppet.

The new objectives for the CNPG migration were clear:

  • Run Postgres natively in Kubernetes
  • Manage everything through CI/CD and GitOps
  • Deploy a 3-node cluster
  • Enable straightforward database migrations
  • Implement reliable backups
  • Improve internal transport security via the Kubernetes network (even though everything was already TLS-secured in a private network)
  • Optionally expose database services to external applications

This migration took several days and required careful attention to several key areas:

Advertisements
  • Installation procedures
  • Networking requirements
  • Storage configuration
  • Backup strategies
  • Application connectivity
  • Data migration approaches

This blog series will explore each of these topics in dedicated posts. I know many others are tackling similar projects at work or in their own environments, so I hope these guides prove helpful.
Stay tuned for the first deep dive into the CNPG installation and setup process!


Did you find this post helpful? You can support me.

"Buy Me A Coffee"

Hetzner Referral

Substack

ConfDroid Feedback Portal

Related posts

Author Profile

12ww1160DevOps engineer & architect

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × 3 =

Related Post

Publishing Pipeline – inline Mermaid code

Enhancing Blog Posts with Mermaid Diagrams: Why They’re a Game-Changer (and How to Make Them…

Kubernetes – Argo-CD – Custom Installation

Installing Argo CD the GitOps Way: A More Stable and Maintainable Approach I recently deployed…

ConfDroid Puppet Modules – Selinux

Introducing confdroid_selinux: Declarative SELinux Management for Your Rocky 9 Servers Security-Enhanced Linux (SELinux) is one…