In this section, you can find some examples of configuration files to set up your PostgreSQL Cluster.
These are here for demonstration and experimentation purposes, and can be executed on a personal Kubernetes cluster with Minikube or Kind as described in the "Quickstart".
a basic example of a cluster.
a basic cluster that uses the default storage class and custom parameters for
Customized storage class
a basic cluster that uses a specified storage class of
Customized storage class and backups
: Prerequisites: bucket storage should be available. The sample config is for AWS,
please change to suit your setup
cluster-storage-class-with-backup.yaml a cluster
with backups configured
Cluster with PVC (Persistent Volume Claim) configured
a basic cluster that with an explicit persistent volume claim template.
a cluster that sets most of the available options.
Replica cluster via streaming (pg_basebackup)
applied and Healthy
cluster-example-replica-streaming.yaml: a replica cluster following
cluster-example with streaming replication.
Simple cluster with backup configured
: Prerequisites: The configuration assumes
minio is running and working.
backup.barmanObjectStore with your
minio parameters or your cloud solution
a basic cluster with backups configured.
Replica cluster via Backup from an object store
cluster-storage-class-with-backup.yaml applied and Healthy.
And a backup
applied and Completed.
a replica cluster following a cluster with backup configured.
Replica cluster via Volume Snapshot
cluster-example-with-volume-snapshot.yaml applied and Healthy.
And a volume snapshot
applied and Completed.
a replica cluster following a cluster with volume snapshot configured.
Bootstrap cluster with SQL files
a cluster example that will execute a set of queries defined in a Secret and a ConfigMap right after the database is created.
Sample cluster with customized
a basic cluster that enables user
app to authenticate using certificates.
Sample cluster with Secret and Configmap mounted using projected volume template
a basic cluster with existing Secret and Configmap mounted into Postgres pod using projected volume mount.
Cluster with declarative role management
declares a role with the
managed stanza, includes password management with
Cluster with TDE enabled
an EPAS 15 cluster with TDE. Note that you will need access credentials
to download the image used.
For a list of available options, please refer to the "API Reference" page.