From a29c03187919a072df01f202589b66c39a4d4064 Mon Sep 17 00:00:00 2001 From: matthias Date: Mon, 15 Jul 2024 15:20:11 +0200 Subject: [PATCH 1/2] add public-beta-tutorial --- .../public-beta-pg17/kustomization.yaml | 10 ++++++++++ .../public-beta-pg17/postgres.yaml | 18 ++++++++++++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 cluster-tutorials/public-beta-pg17/kustomization.yaml diff --git a/cluster-tutorials/public-beta-pg17/kustomization.yaml b/cluster-tutorials/public-beta-pg17/kustomization.yaml new file mode 100644 index 0000000..d097741 --- /dev/null +++ b/cluster-tutorials/public-beta-pg17/kustomization.yaml @@ -0,0 +1,10 @@ +secretGenerator: +- name: cluster-1-pvc-configuration + files: + - pvc.configuration + +generatorOptions: + disableNameSuffixHash: true + +resources: +- postgres.yaml diff --git a/cluster-tutorials/public-beta-pg17/postgres.yaml b/cluster-tutorials/public-beta-pg17/postgres.yaml index 4d11d27..b2f7167 100644 --- a/cluster-tutorials/public-beta-pg17/postgres.yaml +++ b/cluster-tutorials/public-beta-pg17/postgres.yaml @@ -1,7 +1,7 @@ apiVersion: cpo.opensource.cybertec.at/v1 kind: postgresql metadata: - name: publicbeta-cluster-1 + name: cluster-1 spec: dockerImage: 'docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17beta2-1' numberOfInstances: 1 @@ -17,4 +17,18 @@ spec: teamId: acid volume: size: 5Gi - #storageClass: default-provisioner + backup: + pgbackrest: + configuration: + secret: cluster-1-pvc-configuration + global: + repo1-retention-full: '3' + repo1-retention-full-type: count + image: docker.io/cybertecpostgresql/cybertec-pg-container:pgbackrest-17beta2-1' + repos: + - name: repo1 + schedule: + full: 30 2 * * * + storage: pvc + volume: + size: 10Gi \ No newline at end of file From a1dc3f87c51c03dc781cef3dae58c16469b1a120 Mon Sep 17 00:00:00 2001 From: matthias Date: Mon, 15 Jul 2024 15:21:43 +0200 Subject: [PATCH 2/2] updated clustername --- cluster-tutorials/public-beta-pg17/postgres.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-tutorials/public-beta-pg17/postgres.yaml b/cluster-tutorials/public-beta-pg17/postgres.yaml index b2f7167..6b712b9 100644 --- a/cluster-tutorials/public-beta-pg17/postgres.yaml +++ b/cluster-tutorials/public-beta-pg17/postgres.yaml @@ -1,7 +1,7 @@ apiVersion: cpo.opensource.cybertec.at/v1 kind: postgresql metadata: - name: cluster-1 + name: beta-cluster-1 spec: dockerImage: 'docker.io/cybertecpostgresql/cybertec-pg-container:postgres-17beta2-1' numberOfInstances: 1