chore(backstage): Added database and secrets for backstage

This commit is contained in:
Daniël Groothuis
2025-10-29 08:39:07 +01:00
parent 3562ec6e05
commit ad65e98c58

View File

@@ -2,22 +2,21 @@ apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: backstage-postgres
namespace: backstage
spec:
imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.5-v0.3.0@sha256:be3f025d79aa1b747817f478e07e71be43236e14d00d8a9eb3914146245035ba
instances: 1
managed:
roles:
- name: backstage
superuser: true
login: true
imageName: ghcr.io/cloudnative-pg/postgresql:16
enableSuperuser: true
storage:
size: 2Gi
storageClass: local-path
bootstrap:
initdb:
database: backstage
owner: backstage
secret:
name: backstage-postgres-user
storage:
size: 2Gi
storageClass: local-path
# Ensure the 'backstage' role can login and is a superuser
postInitSQL:
- ALTER ROLE backstage WITH SUPERUSER LOGIN;