From 00a7d1bc6007ff33b5ecfe20022a5d1d5dde4a59 Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 14 Dec 2023 09:35:29 +0100 Subject: [PATCH] apps(discordbot-2b): Add missing stackgres config --- apps/discordbot-2b/app/stackgres.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/discordbot-2b/app/stackgres.yaml b/apps/discordbot-2b/app/stackgres.yaml index be7ec49..2b68fc9 100644 --- a/apps/discordbot-2b/app/stackgres.yaml +++ b/apps/discordbot-2b/app/stackgres.yaml @@ -1,4 +1,17 @@ apiVersion: stackgres.io/v1 +kind: SGScript +metadata: + namespace: discordbot-2b + name: cluster-scripts +spec: + scripts: + - name: init + scriptFrom: + secretKeyRef: + name: 2b-secret + key: init.sql +--- +apiVersion: stackgres.io/v1 kind: SGCluster metadata: namespace: discordbot-2b @@ -7,7 +20,10 @@ spec: postgres: version: '16' instances: 2 - sgInstanceProfile: 'size-small' pods: persistentVolume: - size: '10Gi' + size: '2Gi' + storageClass: ebs-ssd + managedSql: + scripts: + - sgScript: cluster-scripts