CloudNativePG: PostgreSQL on Kubernetes cover

Technology · Ebook

CloudNativePG: PostgreSQL on Kubernetes

by Shriira Press

4.8(264)188 pagesPublished 2026

A practical, in-depth guide to CloudNativePG, the open-source Kubernetes operator for PostgreSQL. Learn how CloudNativePG runs production databases on Kubernetes: the database-on-Kubernetes problem (why stateful databases are hard), the operator model and the Cluster resource, the architecture (primary, replicas, streaming replication), high availability and automatic failover (avoiding split-brain and data loss), storage/backup/point-in-time recovery, replication/scaling/connection pooling with PgBouncer, day-2 operations (rolling updates, config, monitoring, scaling), security and best practices (TLS, RBAC, defense in depth), and CloudNativePG in practice.

Contents

  1. 1Preface
  2. 2Chapter 1 — What CloudNativePG Is
  3. 3Chapter 2 — The Database-on-Kubernetes Problem
  4. 4Chapter 3 — The Operator Model and the Cluster Resource
  5. 5Chapter 4 — Architecture: Primary, Replicas, and the Operator
  6. 6Chapter 5 — High Availability and Failover
  7. 7Chapter 6 — Storage, Backup, and Recovery
  8. 8Chapter 7 — Replication, Scaling, and Connection Pooling
  9. 9Chapter 8 — Day-2 Operations
  10. 10Chapter 9 — Security and Best Practices
  11. 11Chapter 10 — CloudNativePG in Practice