|
|
@ -1,4 +1,17 @@
|
|
|
|
apiVersion: stackgres.io/v1
|
|
|
|
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
|
|
|
|
kind: SGCluster
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
namespace: discordbot-2b
|
|
|
|
namespace: discordbot-2b
|
|
|
@ -7,7 +20,10 @@ spec:
|
|
|
|
postgres:
|
|
|
|
postgres:
|
|
|
|
version: '16'
|
|
|
|
version: '16'
|
|
|
|
instances: 2
|
|
|
|
instances: 2
|
|
|
|
sgInstanceProfile: 'size-small'
|
|
|
|
|
|
|
|
pods:
|
|
|
|
pods:
|
|
|
|
persistentVolume:
|
|
|
|
persistentVolume:
|
|
|
|
size: '10Gi'
|
|
|
|
size: '2Gi'
|
|
|
|
|
|
|
|
storageClass: ebs-ssd
|
|
|
|
|
|
|
|
managedSql:
|
|
|
|
|
|
|
|
scripts:
|
|
|
|
|
|
|
|
- sgScript: cluster-scripts
|
|
|
|