|
1 | | -# Configuration Samples |
2 | | - |
3 | | -In this section, you can find some examples of configuration files to set up your PostgreSQL `Cluster`. |
4 | | - |
5 | | -* [`cluster-example.yaml`](samples/cluster-example.yaml): |
6 | | - a basic example of `Cluster` that uses the default storage class. For demonstration and experimentation purposes |
7 | | - on a personal Kubernetes cluster with Minikube or Kind as described in the ["Quickstart"](quickstart.md). |
8 | | -* [`cluster-example-custom.yaml`](samples/cluster-example-custom.yaml): |
9 | | - a basic example of `Cluster` that uses the default storage class and custom parameters for `postgresql.conf` and |
10 | | - `pg_hba.conf` files |
11 | | -* [`cluster-storage-class.yaml`](samples/cluster-storage-class.yaml): |
12 | | - a basic example of `Cluster` that uses a specified storage class. |
13 | | -* [`cluster-pvc-template.yaml`](samples/cluster-pvc-template.yaml): |
14 | | - a basic example of `Cluster` that uses a persistent volume claim template. |
15 | | -* [`cluster-example-full.yaml`](samples/cluster-example-full.yaml): |
16 | | - an example of `Cluster` that sets most of the available options. |
17 | | -* [`cluster-example-replica-streaming.yaml`](samples/cluster-example-replica-streaming.yaml): |
18 | | - a replica cluster following `cluster-example`, usable in a different namespace. |
19 | | -* [`cluster-example-replica-from-backup.yaml`](samples/cluster-example-replica-from-backup.yaml): |
20 | | - a replica cluster following a cluster with backup configured. Usable in |
21 | | - a different namespace. |
| 1 | +# Examples |
| 2 | + |
| 3 | +In this section, you can find some examples of configuration files to set up |
| 4 | +your PostgreSQL Cluster. |
| 5 | + |
| 6 | +!!! Important |
| 7 | + These are here for demonstration and experimentation |
| 8 | + purposes, and can be executed on a personal Kubernetes cluster with Minikube |
| 9 | + or Kind as described in the ["Quickstart"](quickstart.md). |
| 10 | + |
| 11 | +Basic cluster |
| 12 | +: [`cluster-example.yaml`](samples/cluster-example.yaml) |
| 13 | + a basic example of a cluster. |
| 14 | + |
| 15 | +Custom cluster |
| 16 | +: [`cluster-example-custom.yaml`](samples/cluster-example-custom.yaml) |
| 17 | + a basic cluster that uses the default storage class and custom parameters for |
| 18 | + the `postgresql.conf` and `pg_hba.conf` files. |
| 19 | + |
| 20 | +Customized storage class |
| 21 | +: [`cluster-storage-class.yaml`](samples/cluster-storage-class.yaml): |
| 22 | + a basic cluster that uses a specified storage class of `standard`. |
| 23 | + |
| 24 | +Customized storage class and backups |
| 25 | +: **Prerequisites**: bucket storage should be available. The sample config is for AWS, |
| 26 | + please change to suit your setup |
| 27 | +: [`cluster-storage-class-with-backup.yaml`](samples/cluster-storage-class-with-backup.yaml) a cluster |
| 28 | + with backups configured |
| 29 | + |
| 30 | +Backup |
| 31 | +: **Prerequisites**: [`cluster-storage-class-with-backup.yaml`](samples/cluster-storage-class-with-backup.yaml) |
| 32 | + applied and Healthy |
| 33 | +: [`backup-example.yaml`](samples/backup-example.yaml): |
| 34 | + an example of a backup that runs against the previous sample |
| 35 | + |
| 36 | +Cluster with PVC (Persistent Volume Claim) configured |
| 37 | +: [`cluster-pvc-template.yaml`](samples/cluster-pvc-template.yaml): |
| 38 | + a basic cluster that with an explicit persistent volume claim template. |
| 39 | + |
| 40 | +Full example |
| 41 | +: [`cluster-example-full.yaml`](samples/cluster-example-full.yaml): |
| 42 | + a cluster that sets most of the available options. |
| 43 | + |
| 44 | +Replica cluster via streaming |
| 45 | +: **Prerequisites**: [`cluster-example.yaml`](samples/cluster-example.yaml) |
| 46 | + applied and Healthy |
| 47 | +: [`cluster-example-replica-streaming.yaml`](samples/cluster-example-replica-streaming.yaml): a replica cluster following `cluster-example` with streaming replication. |
| 48 | + |
| 49 | +Simple cluster with backup configured |
| 50 | +: **Prerequisites**: The configuration assumes `minio` is running and working. |
| 51 | + Please update `backup.barmanObjectStore` with your `minio` parameters or your cloud solution |
| 52 | +: [`cluster-example-with-backup.yaml`](samples/cluster-example-with-backup.yaml) |
| 53 | + a basic cluster with backups configured. |
| 54 | + |
| 55 | +Replica cluster via backup |
| 56 | +: **Prerequisites**: |
| 57 | + [`cluster-storage-class-with-backup.yaml`](samples/cluster-storage-class-with-backup.yaml) applied and Healthy. |
| 58 | + And a backup |
| 59 | + [`cluster-example-trigger-backup.yaml`](samples/cluster-example-trigger-backup.yaml) |
| 60 | + applied and Completed. |
| 61 | +: [`cluster-example-replica-from-backup-simple.yaml`](samples/cluster-example-replica-from-backup-simple.yaml): |
| 62 | + a replica cluster following a cluster with backup configured. |
22 | 63 |
|
23 | 64 | For a list of available options, please refer to the ["API Reference" page](api_reference.md). |
0 commit comments