From d64d1cecd6c846b3bc51147c0f2a03f114a220de Mon Sep 17 00:00:00 2001 From: nick-gorse Date: Tue, 2 Jun 2026 17:48:21 +0100 Subject: [PATCH] postgres --- .../overlays/production/kustomization.yaml | 1 + .../toolhive-registry-postgres.yaml | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 manifest/overlays/production/toolhive-registry-postgres.yaml diff --git a/manifest/overlays/production/kustomization.yaml b/manifest/overlays/production/kustomization.yaml index 9b62234..b6ac283 100644 --- a/manifest/overlays/production/kustomization.yaml +++ b/manifest/overlays/production/kustomization.yaml @@ -24,3 +24,4 @@ resources: - ops-safe-vmcp.yaml - ops-safe-vmcp-ingress.yaml - k8s-registry.yaml + - toolhive-registry-postgres.yaml diff --git a/manifest/overlays/production/toolhive-registry-postgres.yaml b/manifest/overlays/production/toolhive-registry-postgres.yaml new file mode 100644 index 0000000..77f8981 --- /dev/null +++ b/manifest/overlays/production/toolhive-registry-postgres.yaml @@ -0,0 +1,27 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: toolhive-registry-postgres + namespace: toolhive-system +spec: + instances: 2 + storage: + storageClass: local-postgres + size: 8Gi + affinity: + enablePodAntiAffinity: true + podAntiAffinityType: required + topologyKey: topology.kubernetes.io/zone + plugins: + - name: barman-cloud.cloudnative-pg.io + isWALArchiver: true + parameters: + barmanObjectName: minio-store + bootstrap: + initdb: + database: toolhive-registry + owner: toolhive-registry + postgresql: + parameters: + max_connections: "200" + shared_buffers: "256MB"