From 4858faa63cc0218dd5c16830cff7f10812e4321f Mon Sep 17 00:00:00 2001 From: Ian Ibbotson Date: Sat, 17 Sep 2022 15:03:31 +0100 Subject: [PATCH 1/3] Add postgres13 --- kustomize/postgres13/kustomization.yaml | 4 ++++ kustomize/postgres13/postgres.yaml | 27 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 kustomize/postgres13/kustomization.yaml create mode 100644 kustomize/postgres13/postgres.yaml diff --git a/kustomize/postgres13/kustomization.yaml b/kustomize/postgres13/kustomization.yaml new file mode 100644 index 00000000..249b4106 --- /dev/null +++ b/kustomize/postgres13/kustomization.yaml @@ -0,0 +1,4 @@ +namespace: postgres-operator + +resources: +- postgres.yaml diff --git a/kustomize/postgres13/postgres.yaml b/kustomize/postgres13/postgres.yaml new file mode 100644 index 00000000..554af079 --- /dev/null +++ b/kustomize/postgres13/postgres.yaml @@ -0,0 +1,27 @@ +apiVersion: postgres-operator.crunchydata.com/v1beta1 +kind: PostgresCluster +metadata: + name: hippo +spec: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-13.8-1 + postgresVersion: 13 + instances: + - name: instance1 + dataVolumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 1Gi + backups: + pgbackrest: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.40-1 + repos: + - name: repo1 + volume: + volumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 1Gi From 04206b8a7a918f153f8113970a9e2e968f250e56 Mon Sep 17 00:00:00 2001 From: Ian Ibbotson Date: Sat, 17 Sep 2022 15:05:30 +0100 Subject: [PATCH 2/3] updated --- kustomize/postgres13/postgres.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kustomize/postgres13/postgres.yaml b/kustomize/postgres13/postgres.yaml index 554af079..8687138c 100644 --- a/kustomize/postgres13/postgres.yaml +++ b/kustomize/postgres13/postgres.yaml @@ -1,7 +1,8 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1 kind: PostgresCluster metadata: - name: hippo + name: pg + namespace: shared spec: image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-13.8-1 postgresVersion: 13 From 8b8114b5a59fb36bacb632487ff80fc101ab8a2e Mon Sep 17 00:00:00 2001 From: Ian Ibbotson Date: Sat, 17 Sep 2022 15:09:38 +0100 Subject: [PATCH 3/3] Pg13 creates in shared namespace --- kustomize/postgres13/kustomization.yaml | 2 +- kustomize/postgres13/postgres.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kustomize/postgres13/kustomization.yaml b/kustomize/postgres13/kustomization.yaml index 249b4106..0c6e933e 100644 --- a/kustomize/postgres13/kustomization.yaml +++ b/kustomize/postgres13/kustomization.yaml @@ -1,4 +1,4 @@ -namespace: postgres-operator +namespace: shared resources: - postgres.yaml diff --git a/kustomize/postgres13/postgres.yaml b/kustomize/postgres13/postgres.yaml index 8687138c..3bb9412f 100644 --- a/kustomize/postgres13/postgres.yaml +++ b/kustomize/postgres13/postgres.yaml @@ -2,7 +2,6 @@ apiVersion: postgres-operator.crunchydata.com/v1beta1 kind: PostgresCluster metadata: name: pg - namespace: shared spec: image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-13.8-1 postgresVersion: 13