PostgreSQL Cluster¶ Simple Cluster¶ SnippetExample cnpg-cluster.yamlapiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: <NAME>-db namespace: <NAMESPACE> spec: instances: 2 storage: size: 5Gi storageClass: longhorn cnpg-cluster.yamlapiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: starships-db namespace: starfleet spec: instances: 2 storage: size: 5Gi storageClass: longhorn Reference¶ CloudNativePG: API Reference - Cluster