Skip to content

CNPG

  • .Values.cnpg
  • 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

Keycnpg
Typemap
Required
Helm tpl
Default{cnpg: {main: {enabled: false, ...}}}

Example

cnpg:
main:
enabled: true
...

Define the cluster name.

Keycnpg.$name
Typemap
Required
Helm tpl
Default{}

Example

cnpg:
cnpg-name: {}

Enables or Disables the cluster

Keycnpg.$name.enabled
Typebool
Required
Helm tpl
Defaultfalse

Example

cnpg:
cnpg-name:
enabled: true

Sets the cluster as primary

Keycnpg.$name.primary
Typebool
Required
Helm tpl
Defaultfalse

Example

cnpg:
cnpg-name:
primary: true

Puts the cluster in hibernation mode

Keycnpg.$name.hibernate
Typebool
Required
Helm tpl
Defaultfalse

Example

cnpg:
cnpg-name:
hibernate: true

Additional labels for all CNPG objects

Keycnpg.$name.labels
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

cnpg:
cnpg-name:
labels:
key: value

Additional annotations for all CNPG objects

Keycnpg.$name.annotations
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

cnpg:
cnpg-name:
annotations:
key: value

Type of the CNPG database. Available types:

  • postgres
  • postgis
  • timescaledb
  • vectors
  • vectorchord
Keycnpg.$name.type
Typeenum
Required
Helm tpl
Defaultpostgres

Example

cnpg:
cnpg-name:
type: postgres

Version of Postgresql to use. Available types:

  • 15
  • 16
Keycnpg.$name.pgVersion
Typeenum
Required
Helm tpl
Defaultnil

Example

cnpg:
cnpg-name:
pgVersion: 16

Cluster 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)
Keycnpg.$name.mode
Typeenum
Required
Helm tpl
Defaultstandalone

Example

cnpg:
cnpg-name:
mode: standalone

Define the database name

Keycnpg.$name.database
Typestring
Required
Helm tpl
Default""

Example

cnpg:
cnpg-name:
database: app

Define the database user

Keycnpg.$name.user
Typestring
Required
Helm tpl
Default""

Example

cnpg:
cnpg-name:
user: app

Define the database password

Keycnpg.$name.password
Typestring
Required
Helm tpl
Default""

Example

cnpg:
cnpg-name:
password: supersecret

Database cluster configuration

See more details in CNPG Cluster

Keycnpg.$name.cluster
Typestring
Required
Helm tpl
Default{}

Example

cnpg:
cnpg-name:
cluster: {}


TODO


TODO


TODO


TODO


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: {}