From e49403c3e1b7a9a5fdedfa5b3bb0939827dce8e0 Mon Sep 17 00:00:00 2001 From: Jakub Chmielak Date: Fri, 29 Mar 2024 00:57:06 +0100 Subject: [PATCH 1/9] add --- helm/install/templates/manager.yaml | 2 +- help.md | 14 +++++++ kustomize/cn-accounts/kustomization.yaml | 7 ++++ kustomize/cn-accounts/postgres.yaml | 50 ++++++++++++++++++++++++ kustomize/cn-lms/kustomization.yaml | 7 ++++ kustomize/cn-lms/postgres.yaml | 32 +++++++++++++++ 6 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 help.md create mode 100644 kustomize/cn-accounts/kustomization.yaml create mode 100644 kustomize/cn-accounts/postgres.yaml create mode 100644 kustomize/cn-lms/kustomization.yaml create mode 100644 kustomize/cn-lms/postgres.yaml diff --git a/helm/install/templates/manager.yaml b/helm/install/templates/manager.yaml index a7820173..8dec0805 100644 --- a/helm/install/templates/manager.yaml +++ b/helm/install/templates/manager.yaml @@ -39,7 +39,7 @@ spec: {{- include "install.relatedImages" . | indent 8 }} {{- if .Values.disable_check_for_upgrades }} - name: CHECK_FOR_UPGRADES - value: "false" + value: "true" {{- end }} {{- if .Values.resources.controller }} resources: diff --git a/help.md b/help.md new file mode 100644 index 00000000..5592263d --- /dev/null +++ b/help.md @@ -0,0 +1,14 @@ +kubectl apply -k kustomize/install/namespace + + +kubectl apply --server-side -k kustomize/install/default + + +kubectl apply -k kustomize/postgres + + + + + +kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com/cluster=cn-lms + diff --git a/kustomize/cn-accounts/kustomization.yaml b/kustomize/cn-accounts/kustomization.yaml new file mode 100644 index 00000000..e3b72752 --- /dev/null +++ b/kustomize/cn-accounts/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: postgres-operator + +resources: +- postgres.yaml diff --git a/kustomize/cn-accounts/postgres.yaml b/kustomize/cn-accounts/postgres.yaml new file mode 100644 index 00000000..f02fb4c4 --- /dev/null +++ b/kustomize/cn-accounts/postgres.yaml @@ -0,0 +1,50 @@ +apiVersion: postgres-operator.crunchydata.com/v1beta1 +kind: PostgresCluster +metadata: + name: cn-accounts +spec: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.2-3.4-0 + postgresVersion: 16 + instances: + - name: instance1 + dataVolumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 10Gi + users: + - name: accounts + databases: + - accounts + options: 'SUPERUSER' + service: + metadata: + annotations: + my-annotation: value1 + labels: + my-label: value2 + type: NodePort + nodePort: 32000 + monitoring: + pgmonitor: + exporter: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.5.1-0 + backups: + pgbackrest: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.49-0 + repos: + - name: repo1 + schedules: + full: "0 1 * * 0" + differential: "0 1 * * 1-6" + volume: + volumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 20Gi + proxy: + pgBouncer: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.21-3 \ No newline at end of file diff --git a/kustomize/cn-lms/kustomization.yaml b/kustomize/cn-lms/kustomization.yaml new file mode 100644 index 00000000..e3b72752 --- /dev/null +++ b/kustomize/cn-lms/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: postgres-operator + +resources: +- postgres.yaml diff --git a/kustomize/cn-lms/postgres.yaml b/kustomize/cn-lms/postgres.yaml new file mode 100644 index 00000000..d07c6312 --- /dev/null +++ b/kustomize/cn-lms/postgres.yaml @@ -0,0 +1,32 @@ +apiVersion: postgres-operator.crunchydata.com/v1beta1 +kind: PostgresCluster +metadata: + name: cn-lms +spec: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.2-3.4-0 + postgresVersion: 16 + postGISVersion: "3.4" + instances: + - name: instance1 + dataVolumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 10Gi + monitoring: + pgmonitor: + exporter: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.5.1-0 + backups: + pgbackrest: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.49-0 + repos: + - name: repo1 + volume: + volumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 20Gi From bec36aca322b7d703fe41c8687f7f7c952133afd Mon Sep 17 00:00:00 2001 From: Jakub Chmielak Date: Fri, 29 Mar 2024 15:00:11 +0100 Subject: [PATCH 2/9] add --- kustomize/cn-accounts/postgres.yaml | 2 +- kustomize/cn-lms/postgres.yaml | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/kustomize/cn-accounts/postgres.yaml b/kustomize/cn-accounts/postgres.yaml index f02fb4c4..3bf25e4c 100644 --- a/kustomize/cn-accounts/postgres.yaml +++ b/kustomize/cn-accounts/postgres.yaml @@ -25,7 +25,7 @@ spec: labels: my-label: value2 type: NodePort - nodePort: 32000 + nodePort: 32002 monitoring: pgmonitor: exporter: diff --git a/kustomize/cn-lms/postgres.yaml b/kustomize/cn-lms/postgres.yaml index d07c6312..59c3ffb1 100644 --- a/kustomize/cn-lms/postgres.yaml +++ b/kustomize/cn-lms/postgres.yaml @@ -14,6 +14,19 @@ spec: resources: requests: storage: 10Gi + users: + - name: cn-lms + databases: + - cn-lms + options: 'SUPERUSER' + service: + metadata: + annotations: + my-annotation: value1 + labels: + my-label: value2 + type: NodePort + nodePort: 32001 monitoring: pgmonitor: exporter: From 541111f000176838d4114c713ca5c484ac08797e Mon Sep 17 00:00:00 2001 From: blizni79 Date: Fri, 3 May 2024 12:02:11 +0200 Subject: [PATCH 3/9] add --- help.md | 8 ++------ kustomize/cn-accounts/ingress.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 kustomize/cn-accounts/ingress.yaml diff --git a/help.md b/help.md index 5592263d..e6779796 100644 --- a/help.md +++ b/help.md @@ -3,12 +3,8 @@ kubectl apply -k kustomize/install/namespace kubectl apply --server-side -k kustomize/install/default - -kubectl apply -k kustomize/postgres - - - - +kubectl apply -k kustomize/cn-accounts +kubectl apply -k kustomize/cn-lms kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com/cluster=cn-lms diff --git a/kustomize/cn-accounts/ingress.yaml b/kustomize/cn-accounts/ingress.yaml new file mode 100644 index 00000000..e5115497 --- /dev/null +++ b/kustomize/cn-accounts/ingress.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: nginx-ingress-tcp-microk8s-conf + namespace: ingress +data: + 6379: "default/redis:6379" \ No newline at end of file From e9be68ab7b1b37af400f3727e0986ceb292dc0d8 Mon Sep 17 00:00:00 2001 From: blizni79 Date: Wed, 15 May 2024 22:59:09 +0200 Subject: [PATCH 4/9] fix --- kustomize/cn-lms/postgres.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kustomize/cn-lms/postgres.yaml b/kustomize/cn-lms/postgres.yaml index 59c3ffb1..1df4d4c0 100644 --- a/kustomize/cn-lms/postgres.yaml +++ b/kustomize/cn-lms/postgres.yaml @@ -36,6 +36,9 @@ spec: image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.49-0 repos: - name: repo1 + schedules: + full: "0 1 * * 0" + differential: "0 1 * * 1-6" volume: volumeClaimSpec: accessModes: @@ -43,3 +46,6 @@ spec: resources: requests: storage: 20Gi + proxy: + pgBouncer: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.21-3 From 0f900c2aa102de88b01720989005ea6774cbc3e0 Mon Sep 17 00:00:00 2001 From: Jakub Chmielak Date: Sat, 25 May 2024 09:04:51 +0200 Subject: [PATCH 5/9] add --- help.md | 1 + kustomize/cn-lms-prod/kustomization.yaml | 7 ++++ kustomize/cn-lms-prod/postgres.yaml | 45 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 kustomize/cn-lms-prod/kustomization.yaml create mode 100644 kustomize/cn-lms-prod/postgres.yaml diff --git a/help.md b/help.md index e6779796..a0e5c645 100644 --- a/help.md +++ b/help.md @@ -5,6 +5,7 @@ kubectl apply --server-side -k kustomize/install/default kubectl apply -k kustomize/cn-accounts kubectl apply -k kustomize/cn-lms +kubectl apply -k kustomize/cn-lms-prod kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com/cluster=cn-lms diff --git a/kustomize/cn-lms-prod/kustomization.yaml b/kustomize/cn-lms-prod/kustomization.yaml new file mode 100644 index 00000000..e3b72752 --- /dev/null +++ b/kustomize/cn-lms-prod/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: postgres-operator + +resources: +- postgres.yaml diff --git a/kustomize/cn-lms-prod/postgres.yaml b/kustomize/cn-lms-prod/postgres.yaml new file mode 100644 index 00000000..f6078d38 --- /dev/null +++ b/kustomize/cn-lms-prod/postgres.yaml @@ -0,0 +1,45 @@ +apiVersion: postgres-operator.crunchydata.com/v1beta1 +kind: PostgresCluster +metadata: + name: cn-lms-prod +spec: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.2-3.4-0 + postgresVersion: 16 + postGISVersion: "3.4" + instances: + - name: instance1 + dataVolumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 10Gi + users: + - name: cn-lms-prod + databases: + - cn-lms-prod + options: 'SUPERUSER' + service: + metadata: + annotations: + my-annotation: value1 + labels: + my-label: value2 + type: NodePort + nodePort: 31001 + monitoring: + pgmonitor: + exporter: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.5.1-0 + backups: + pgbackrest: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.49-0 + repos: + - name: repo1 + volume: + volumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 20Gi From 8733f5806043a6b07b683c185f61040f83d6fc39 Mon Sep 17 00:00:00 2001 From: blizni79 Date: Sat, 29 Jun 2024 12:48:49 +0200 Subject: [PATCH 6/9] add new --- help.md | 2 + kustomize/cn-accounts/postgres.yaml | 6 +-- kustomize/cn-lms-prod/postgres.yaml | 6 +-- kustomize/cn-mattermost/kustomization.yaml | 7 ++++ kustomize/cn-mattermost/postgres.yaml | 44 ++++++++++++++++++++++ 5 files changed, 59 insertions(+), 6 deletions(-) create mode 100644 kustomize/cn-mattermost/kustomization.yaml create mode 100644 kustomize/cn-mattermost/postgres.yaml diff --git a/help.md b/help.md index a0e5c645..3e9d0444 100644 --- a/help.md +++ b/help.md @@ -6,6 +6,8 @@ kubectl apply --server-side -k kustomize/install/default kubectl apply -k kustomize/cn-accounts kubectl apply -k kustomize/cn-lms kubectl apply -k kustomize/cn-lms-prod +kubectl apply -k kustomize/cn-mattermost + kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com/cluster=cn-lms diff --git a/kustomize/cn-accounts/postgres.yaml b/kustomize/cn-accounts/postgres.yaml index 3bf25e4c..dc8fa7f7 100644 --- a/kustomize/cn-accounts/postgres.yaml +++ b/kustomize/cn-accounts/postgres.yaml @@ -29,10 +29,10 @@ spec: monitoring: pgmonitor: exporter: - image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.5.1-0 + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.6.0-0 backups: pgbackrest: - image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.49-0 + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1 repos: - name: repo1 schedules: @@ -47,4 +47,4 @@ spec: storage: 20Gi proxy: pgBouncer: - image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.21-3 \ No newline at end of file + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.22-3 \ No newline at end of file diff --git a/kustomize/cn-lms-prod/postgres.yaml b/kustomize/cn-lms-prod/postgres.yaml index f6078d38..ad8c8b95 100644 --- a/kustomize/cn-lms-prod/postgres.yaml +++ b/kustomize/cn-lms-prod/postgres.yaml @@ -3,7 +3,7 @@ kind: PostgresCluster metadata: name: cn-lms-prod spec: - image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.2-3.4-0 + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-16.3-3.4-0 postgresVersion: 16 postGISVersion: "3.4" instances: @@ -30,10 +30,10 @@ spec: monitoring: pgmonitor: exporter: - image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.5.1-0 + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.6.0-0 backups: pgbackrest: - image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.49-0 + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-0 repos: - name: repo1 volume: diff --git a/kustomize/cn-mattermost/kustomization.yaml b/kustomize/cn-mattermost/kustomization.yaml new file mode 100644 index 00000000..e3b72752 --- /dev/null +++ b/kustomize/cn-mattermost/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: postgres-operator + +resources: +- postgres.yaml diff --git a/kustomize/cn-mattermost/postgres.yaml b/kustomize/cn-mattermost/postgres.yaml new file mode 100644 index 00000000..81f87406 --- /dev/null +++ b/kustomize/cn-mattermost/postgres.yaml @@ -0,0 +1,44 @@ +apiVersion: postgres-operator.crunchydata.com/v1beta1 +kind: PostgresCluster +metadata: + name: cn-mattermost +spec: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1 + postgresVersion: 16 + instances: + - name: instance1 + dataVolumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 10Gi + users: + - name: cn-mattermost + databases: + - cn-mattermost + options: 'SUPERUSER' + service: + metadata: + annotations: + my-annotation: mattermost + labels: + my-label: mattermost + type: NodePort + nodePort: 31002 + monitoring: + pgmonitor: + exporter: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.6.0-0 + backups: + pgbackrest: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1 + repos: + - name: repo1 + volume: + volumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 20Gi From 33fe203bb399ba10d714464f369b6358618e2254 Mon Sep 17 00:00:00 2001 From: blizni79 Date: Mon, 15 Jul 2024 20:54:16 +0200 Subject: [PATCH 7/9] add --- kustomize/cn-lms/postgres.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kustomize/cn-lms/postgres.yaml b/kustomize/cn-lms/postgres.yaml index 1df4d4c0..52185a19 100644 --- a/kustomize/cn-lms/postgres.yaml +++ b/kustomize/cn-lms/postgres.yaml @@ -27,6 +27,12 @@ spec: my-label: value2 type: NodePort nodePort: 32001 + patroni: + dynamicConfiguration: + postgresql: + parameters: + pg_hba: + - "hostnossl all all all md5" monitoring: pgmonitor: exporter: From 01862b3051b520c1bd17ea1bf7b7c228f2b9099c Mon Sep 17 00:00:00 2001 From: Jakub Chmielak Date: Tue, 31 Dec 2024 13:40:10 +0100 Subject: [PATCH 8/9] Update --- kustomize/cn-mattermost/postgres.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kustomize/cn-mattermost/postgres.yaml b/kustomize/cn-mattermost/postgres.yaml index 81f87406..858e4394 100644 --- a/kustomize/cn-mattermost/postgres.yaml +++ b/kustomize/cn-mattermost/postgres.yaml @@ -42,3 +42,10 @@ spec: resources: requests: storage: 20Gi + patroni: + dynamicConfiguration: + postgresql: + pg_hba: + - host cn-mattermost cn-mattermost 10.1.77.105/32 md5 + - local all all peer + - host all all 0.0.0.0/0 md5 \ No newline at end of file From bc1234766feef1bde32ba34bdd96654a6d897bd0 Mon Sep 17 00:00:00 2001 From: BACKUP Date: Fri, 18 Apr 2025 13:30:12 +0200 Subject: [PATCH 9/9] add --- help.md | 1 + kustomize/cn-accounts/postgres.yaml | 2 +- .../{postgres.yaml => cn-postgres.yaml} | 16 ++++-- kustomize/cn-mattermost/kustomization.yaml | 2 +- kustomize/mm-mattermost/kustomization.yaml | 7 +++ kustomize/mm-mattermost/mm-postgres.yaml | 54 +++++++++++++++++++ 6 files changed, 75 insertions(+), 7 deletions(-) rename kustomize/cn-mattermost/{postgres.yaml => cn-postgres.yaml} (75%) create mode 100644 kustomize/mm-mattermost/kustomization.yaml create mode 100644 kustomize/mm-mattermost/mm-postgres.yaml diff --git a/help.md b/help.md index 3e9d0444..f0faf035 100644 --- a/help.md +++ b/help.md @@ -8,6 +8,7 @@ kubectl apply -k kustomize/cn-lms kubectl apply -k kustomize/cn-lms-prod kubectl apply -k kustomize/cn-mattermost +kubectl apply -k kustomize/mm-mattermost kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com/cluster=cn-lms diff --git a/kustomize/cn-accounts/postgres.yaml b/kustomize/cn-accounts/postgres.yaml index dc8fa7f7..a151d087 100644 --- a/kustomize/cn-accounts/postgres.yaml +++ b/kustomize/cn-accounts/postgres.yaml @@ -47,4 +47,4 @@ spec: storage: 20Gi proxy: pgBouncer: - image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.22-3 \ No newline at end of file + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.21-3 \ No newline at end of file diff --git a/kustomize/cn-mattermost/postgres.yaml b/kustomize/cn-mattermost/cn-postgres.yaml similarity index 75% rename from kustomize/cn-mattermost/postgres.yaml rename to kustomize/cn-mattermost/cn-postgres.yaml index 858e4394..0c62798b 100644 --- a/kustomize/cn-mattermost/postgres.yaml +++ b/kustomize/cn-mattermost/cn-postgres.yaml @@ -3,7 +3,7 @@ kind: PostgresCluster metadata: name: cn-mattermost spec: - image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1 + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.6-2 postgresVersion: 16 instances: - name: instance1 @@ -25,16 +25,19 @@ spec: labels: my-label: mattermost type: NodePort - nodePort: 31002 + nodePort: 31003 monitoring: pgmonitor: exporter: - image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.6.0-0 + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.16.0-0 backups: pgbackrest: - image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1 + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.54.1-0 repos: - name: repo1 + schedules: + full: "0 1 * * 0" + differential: "0 1 * * 1-6" volume: volumeClaimSpec: accessModes: @@ -42,10 +45,13 @@ spec: resources: requests: storage: 20Gi + # proxy: + # pgBouncer: + # image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.21-3 patroni: dynamicConfiguration: postgresql: pg_hba: - - host cn-mattermost cn-mattermost 10.1.77.105/32 md5 + - host cn-mattermost cn-mattermost 10.1.77.41/32 md5 - local all all peer - host all all 0.0.0.0/0 md5 \ No newline at end of file diff --git a/kustomize/cn-mattermost/kustomization.yaml b/kustomize/cn-mattermost/kustomization.yaml index e3b72752..3fbc2cd1 100644 --- a/kustomize/cn-mattermost/kustomization.yaml +++ b/kustomize/cn-mattermost/kustomization.yaml @@ -4,4 +4,4 @@ kind: Kustomization namespace: postgres-operator resources: -- postgres.yaml +- cn-postgres.yaml diff --git a/kustomize/mm-mattermost/kustomization.yaml b/kustomize/mm-mattermost/kustomization.yaml new file mode 100644 index 00000000..8f27c8d3 --- /dev/null +++ b/kustomize/mm-mattermost/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: postgres-operator + +resources: +- mm-postgres.yaml \ No newline at end of file diff --git a/kustomize/mm-mattermost/mm-postgres.yaml b/kustomize/mm-mattermost/mm-postgres.yaml new file mode 100644 index 00000000..a12953d5 --- /dev/null +++ b/kustomize/mm-mattermost/mm-postgres.yaml @@ -0,0 +1,54 @@ +apiVersion: postgres-operator.crunchydata.com/v1beta1 +kind: PostgresCluster +metadata: + name: mm-mattermost +spec: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.6-2 + postgresVersion: 16 + instances: + - name: instance1 + dataVolumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 10Gi + users: + - name: mm-mattermost + databases: + - mm-mattermost + options: 'SUPERUSER' + service: + metadata: + annotations: + my-annotation: mm-mattermost + labels: + my-label: mm-mattermost + type: NodePort + nodePort: 31002 + monitoring: + pgmonitor: + exporter: + image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-0.16.0-0 + backups: + pgbackrest: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.54.1-0 + repos: + - name: repo1 + volume: + volumeClaimSpec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: 20Gi + proxy: + pgBouncer: + image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.21-3 + patroni: + dynamicConfiguration: + postgresql: + pg_hba: + - host mm-mattermost m-mattermost 10.1.77.8/32 md5 + - local all all peer + - host all all 0.0.0.0/0 md5 \ No newline at end of file