CloudNativePG Operator deployment
The CloudNativePG operator lives in k8s/infrastructure/database/cloudnative-pg/. Argo CD pulls in the Helm chart with Kustomize's helmCharts integration, so the operator stays fully GitOps managed.
Deployment settings
- Namespace:
cnpg-system, created throughnamespace.yaml - Chart:
cloudnative-pgversion0.26.0fromhttps://cloudnative-pg.github.io/charts - Replica count: set to
2controllers for availability - Barman support: the
kustomization.yamlreferences the Barman cloud plugin manifest so WAL archiving works out of the box - In-place updates: the
ENABLE_INSTANCE_MANAGER_INPLACE_UPDATESenvironment variable is enabled for smoother rolling upgrades
Monitoring
Prometheus rules in rules.yaml raise warnings for long transactions, replication lag, archiving failures, deadlocks, and other health issues. The Helm values also turn on the Grafana dashboard and PodMonitor to expose metrics automatically.