From aa8f2ccaf881eb3a116301313d5e4659111ebca2 Mon Sep 17 00:00:00 2001 From: Luke Repko Date: Thu, 8 Aug 2024 18:19:01 -0500 Subject: [PATCH] feat: add aio overlay for postgres --- .../postgres-cluster/aio/kustomization.yaml | 2 ++ .../aio/postgres-cluster.yaml | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 base-kustomize/postgres-cluster/aio/kustomization.yaml create mode 100644 base-kustomize/postgres-cluster/aio/postgres-cluster.yaml diff --git a/base-kustomize/postgres-cluster/aio/kustomization.yaml b/base-kustomize/postgres-cluster/aio/kustomization.yaml new file mode 100644 index 00000000..88679255 --- /dev/null +++ b/base-kustomize/postgres-cluster/aio/kustomization.yaml @@ -0,0 +1,2 @@ +resources: + - postgres-cluster.yaml diff --git a/base-kustomize/postgres-cluster/aio/postgres-cluster.yaml b/base-kustomize/postgres-cluster/aio/postgres-cluster.yaml new file mode 100644 index 00000000..be5d0b41 --- /dev/null +++ b/base-kustomize/postgres-cluster/aio/postgres-cluster.yaml @@ -0,0 +1,25 @@ +apiVersion: "acid.zalan.do/v1" +kind: postgresql +metadata: + name: postgres-cluster + namespace: openstack +spec: + dockerImage: ghcr.io/zalando/spilo-16:3.2-p3 + teamId: "acid" + numberOfInstances: 1 + postgresql: + version: "16" + parameters: + shared_buffers: "32MB" + max_connections: "256" + log_statement: "all" + volume: + size: 20Gi + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: node-role.kubernetes.io/worker + operator: In + values: + - worker