chore(backstage): Added database and secrets for backstage

This commit is contained in:
Daniël Groothuis
2025-10-28 21:45:36 +01:00
parent 8603742901
commit d16efcde3c
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
---
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: backstage
spec:
refreshInterval: 1h
secretStoreRef:
name: platform
kind: ClusterSecretStore
target:
name: backstage-db-connector
data:
- secretKey: POSTGRES_HOST
remoteRef:
key: backstage/connector
property: POSTGRES_HOST
- secretKey: POSTGRES_PORT
remoteRef:
key: backstage/connector
property: POSTGRES_PORT
- secretKey: POSTGRES_USER
remoteRef:
key: backstage/connector
property: POSTGRES_USER
- secretKey: POSTGRES_PASSWORD
remoteRef:
key: backstage/connector
property: POSTGRES_PASSWORD

View File

@@ -0,0 +1,26 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: backstage
namespace: backstage
spec:
replicas: 1
selector:
matchLabels:
app: backstage
template:
metadata:
labels:
app: backstage
spec:
containers:
- name: backstage
image: git.dgse.cloud/dgse/backstage:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 7007
envFrom:
- secretRef:
name: backstage-db-connector

View File

@@ -5,5 +5,7 @@ metadata:
name: backstage name: backstage
resources: resources:
- db-connector.yaml
- secret.yaml - secret.yaml
- db-cluster.yaml - db-cluster.yaml
- deployment.yaml