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.
This commit is contained in:
parent
03acdf2841
commit
73cc883d5e
2 changed files with 27 additions and 0 deletions
26
apps/base/sirius-growth/cluster.yaml
Normal file
26
apps/base/sirius-growth/cluster.yaml
Normal file
|
|
@ -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
|
||||||
|
|
@ -8,3 +8,4 @@ resources:
|
||||||
- service-api.yaml
|
- service-api.yaml
|
||||||
- httproute.yaml
|
- httproute.yaml
|
||||||
- deployer.yaml
|
- deployer.yaml
|
||||||
|
- cluster.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue