From 73cc883d5e554106e578be10c585fdc62eb32373 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Mon, 19 Oct 2026 03:03:09 -0400 Subject: [PATCH] sirius-growth: add CNPG Cluster 'portal' (1 instance, 5Gi local-path on siriussec) Database only. Bootstraps database/owner 'portal' from the sirius-growth-portal-db basic-auth Secret. No API or route changes. --- apps/base/sirius-growth/cluster.yaml | 26 ++++++++++++++++++++++ apps/base/sirius-growth/kustomization.yaml | 1 + 2 files changed, 27 insertions(+) create mode 100644 apps/base/sirius-growth/cluster.yaml diff --git a/apps/base/sirius-growth/cluster.yaml b/apps/base/sirius-growth/cluster.yaml new file mode 100644 index 0000000..5ae3d4e --- /dev/null +++ b/apps/base/sirius-growth/cluster.yaml @@ -0,0 +1,26 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: portal + namespace: sirius-growth +spec: + instances: 1 + imageName: ghcr.io/cloudnative-pg/postgresql:16 + storage: + size: 5Gi + storageClass: local-path + affinity: + nodeSelector: + kubernetes.io/hostname: siriussec + bootstrap: + initdb: + database: portal + owner: portal + secret: + name: sirius-growth-portal-db + resources: + requests: + cpu: 100m + memory: 256Mi + limits: + memory: 1Gi diff --git a/apps/base/sirius-growth/kustomization.yaml b/apps/base/sirius-growth/kustomization.yaml index ceb5d30..694895c 100644 --- a/apps/base/sirius-growth/kustomization.yaml +++ b/apps/base/sirius-growth/kustomization.yaml @@ -8,3 +8,4 @@ resources: - service-api.yaml - httproute.yaml - deployer.yaml + - cluster.yaml