CloudNativePG Recipe 10 - Simulating Production PostgreSQL on Kubernetes with Kind
This article provides a step-by-step guide to deploying PostgreSQL in
Kubernetes using the kind
tool (Kubernetes IN Docker) on a local machine,
simulating a production-like environment. It explains how to create multi-node
clusters and use node labels, specifically proposing the
node-role.kubernetes.io/postgres
label to designate PostgreSQL nodes. The
article also demonstrates how to schedule PostgreSQL instances on these
designated nodes, emphasizing the importance of workload isolation in
Kubernetes environments. Thanks to Kubernetes’ portability, these
recommendations apply to any cloud deployment—whether private, public,
self-managed, or fully managed.