CNPG
Appears in
Section titled “Appears in”.Values.cnpg
Naming scheme
Section titled “Naming scheme”- Primary:
$FullName-cnpg-$ResourceName(release-name-chart-name-cnpg-main) - Non-Primary:
$FullName-$RBACName-cnpg-$ResourceName(release-name-chart-name-RBACName-cnpg-main)
Define a CNPG cluster
| Key | cnpg |
| Type | map |
| Required | ❌ |
Helm tpl | ❌ |
| Default | {cnpg: {main: {enabled: false, ...}}} |
Example
cnpg: main: enabled: true ...Define the cluster name.
| Key | cnpg.$name |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
cnpg: cnpg-name: {}enabled
Section titled “enabled”Enables or Disables the cluster
| Key | cnpg.$name.enabled |
| Type | bool |
| Required | ✅ |
Helm tpl | ✅ |
| Default | false |
Example
cnpg: cnpg-name: enabled: trueprimary
Section titled “primary”Sets the cluster as primary
| Key | cnpg.$name.primary |
| Type | bool |
| Required | ❌ |
Helm tpl | ❌ |
| Default | false |
Example
cnpg: cnpg-name: primary: truehibernate
Section titled “hibernate”Puts the cluster in hibernation mode
| Key | cnpg.$name.hibernate |
| Type | bool |
| Required | ❌ |
Helm tpl | ❌ |
| Default | false |
Example
cnpg: cnpg-name: hibernate: truelabels
Section titled “labels”Additional labels for all CNPG objects
| Key | cnpg.$name.labels |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
cnpg: cnpg-name: labels: key: valueannotations
Section titled “annotations”Additional annotations for all CNPG objects
| Key | cnpg.$name.annotations |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
cnpg: cnpg-name: annotations: key: valueType of the CNPG database. Available types:
postgrespostgistimescaledbvectorsvectorchord
| Key | cnpg.$name.type |
| Type | enum |
| Required | ❌ |
Helm tpl | ❌ |
| Default | postgres |
Example
cnpg: cnpg-name: type: postgrespgVersion
Section titled “pgVersion”Version of Postgresql to use. Available types:
1516
| Key | cnpg.$name.pgVersion |
| Type | enum |
| Required | ✅ |
Helm tpl | ❌ |
| Default | nil |
Example
cnpg: cnpg-name: pgVersion: 16Cluster mode of operation. Available modes:
standalone(default mode, creates new or updates an existing CNPG cluster)recovery(same as standalone but creates a cluster from a backup, object store or via pg_basebackup)
| Key | cnpg.$name.mode |
| Type | enum |
| Required | ❌ |
Helm tpl | ❌ |
| Default | standalone |
Example
cnpg: cnpg-name: mode: standalonedatabase
Section titled “database”Define the database name
| Key | cnpg.$name.database |
| Type | string |
| Required | ✅ |
Helm tpl | ❌ |
| Default | "" |
Example
cnpg: cnpg-name: database: appDefine the database user
| Key | cnpg.$name.user |
| Type | string |
| Required | ✅ |
Helm tpl | ❌ |
| Default | "" |
Example
cnpg: cnpg-name: user: apppassword
Section titled “password”Define the database password
| Key | cnpg.$name.password |
| Type | string |
| Required | ✅ |
Helm tpl | ❌ |
| Default | "" |
Example
cnpg: cnpg-name: password: supersecretcluster
Section titled “cluster”Database cluster configuration
See more details in CNPG Cluster
| Key | cnpg.$name.cluster |
| Type | string |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
cnpg: cnpg-name: cluster: {}monitoring
Section titled “monitoring”TODO
recovery
Section titled “recovery”TODO
backups
Section titled “backups”TODO
pooler
Section titled “pooler”TODO
Full Examples
Section titled “Full Examples”cnpg: main: enabled: true primary: true hibernate: false type: postgres pgVersion: 16 mode: standalone database: "app" user: "app" password: "PLACEHOLDERPASSWORD" cluster: {} monitoring: {} recovery: {} backups: {} pooler: {}
my-cluster-1: enabled: true primary: false hibernate: false labels: label1: label1 label2: label2 annotations: annotation1: annotation1 annotation2: annotation2 type: postgres pgVersion: 16 mode: standalone database: "my-app" user: "my-user" password: "supersecret" cluster: {} monitoring: {} recovery: {} backups: {} pooler: {}