fix(k8s): add dev secrets and use emptyDir for postgres on storage-less cluster
This commit is contained in:
11
infra/k8s/overlays/dev/patches/postgres-patch.yaml
Normal file
11
infra/k8s/overlays/dev/patches/postgres-patch.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: workclub-postgres
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
volumes:
|
||||
- name: postgres-data
|
||||
emptyDir: {}
|
||||
volumeClaimTemplates: [] # This removes the VCT from the base
|
||||
10
infra/k8s/overlays/dev/secrets.yaml
Normal file
10
infra/k8s/overlays/dev/secrets.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: workclub-secrets
|
||||
type: Opaque
|
||||
stringData:
|
||||
database-connection-string: "Host=workclub-postgres;Database=workclub;Username=app;Password=devpassword"
|
||||
postgres-password: "devpassword"
|
||||
keycloak-db-password: "keycloakpass"
|
||||
keycloak-admin-password: "adminpassword"
|
||||
Reference in New Issue
Block a user