chore(backstage): Added database and secrets for backstage
This commit is contained in:
29
manifests/artemis/backstage/db-connector.yaml
Normal file
29
manifests/artemis/backstage/db-connector.yaml
Normal 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
|
||||
26
manifests/artemis/backstage/deployment.yaml
Normal file
26
manifests/artemis/backstage/deployment.yaml
Normal 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
|
||||
@@ -5,5 +5,7 @@ metadata:
|
||||
name: backstage
|
||||
|
||||
resources:
|
||||
- db-connector.yaml
|
||||
- secret.yaml
|
||||
- db-cluster.yaml
|
||||
- deployment.yaml
|
||||
|
||||
Reference in New Issue
Block a user