Nais Postgres reference ΒΆ
Experimental feature
This feature is an alpha feature, and is subject to API change, instability or removal. See the main Postgres page for more information.
This document describes all possible configuration values in the Postgres spec, commonly known as the postgres.yaml file.
extensions ΒΆ
Extensions to enable in the Postgres database.
Type: array
Required: false
Example
spec:
extensions:
- name: postgisextensions[].name ΒΆ
Name of the Postgres extension to enable.
Type: string
Required: true
Example
spec:
extensions:
- name: postgishighAvailability ΒΆ
HighAvailability adds a third instance and enables synchronous replication.
A cluster always runs a primary and a standby, so failover is available either way. What this adds is the guarantee that an acknowledged commit survives losing the primary, at the cost of write latency.
Type: boolean
Required: false
Example
spec:
highAvailability: truemajorVersion ΒΆ
MajorVersion of Postgres to use.
Type: enum
Required: true
Allowed values: 16, 17, 18
Example
spec:
majorVersion: "18"resources ΒΆ
Resources configures compute and disk for the Postgres cluster.
Type: object
Required: false
Example
spec:
resources:
cpu: 100m
diskSize: 10Gi
memory: 512Miresources.cpu ΒΆ
Cpu is the CPU resources for the Postgres cluster.
Type: object
Required: false
Example
spec:
resources:
cpu: 100mresources.diskSize ΒΆ
DiskSize is the disk size for the Postgres cluster.
Type: object
Required: false
Example
spec:
resources:
diskSize: 10Giresources.memory ΒΆ
Memory is the memory resources for the Postgres cluster.
Type: object
Required: false
Example
spec:
resources:
memory: 512Mi