From 35bb468d68fb531c9e3ce04de6e5a220486bd3aa Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Tue, 28 May 2024 15:11:06 +0200 Subject: [PATCH] Set default LF classic mongo creds for dev environments --- backend/LexBoxApi/appsettings.Development.json | 3 +++ deployment/local-dev/kustomization.yaml | 1 + deployment/local-dev/lf-classic-secrets.yaml | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 deployment/local-dev/lf-classic-secrets.yaml diff --git a/backend/LexBoxApi/appsettings.Development.json b/backend/LexBoxApi/appsettings.Development.json index 154f63fdb..ec867ac9d 100644 --- a/backend/LexBoxApi/appsettings.Development.json +++ b/backend/LexBoxApi/appsettings.Development.json @@ -11,6 +11,9 @@ }, "LfClassicConfig": { "ConnectionString": "mongodb://localhost:27017", + "AuthSource": "admin", + "Username": "admin", + "Password": "pass" }, "ForwardedHeadersOptions": { "KnownNetworks": [ diff --git a/deployment/local-dev/kustomization.yaml b/deployment/local-dev/kustomization.yaml index 80a787681..259f675b8 100644 --- a/deployment/local-dev/kustomization.yaml +++ b/deployment/local-dev/kustomization.yaml @@ -7,6 +7,7 @@ resources: #- secrets.yaml - ingress-deployment.yaml - db-secrets.yaml +- lf-classic-secrets.yaml components: - ../init-repos diff --git a/deployment/local-dev/lf-classic-secrets.yaml b/deployment/local-dev/lf-classic-secrets.yaml new file mode 100644 index 000000000..b2f628a9e --- /dev/null +++ b/deployment/local-dev/lf-classic-secrets.yaml @@ -0,0 +1,11 @@ +# https://kubernetes.io/docs/concepts/configuration/secret + +apiVersion: v1 +kind: Secret +metadata: + name: lf-mongo-auth + namespace: languagedepot +stringData: + MONGODB_AUTHSOURCE: 'admin' + MONGODB_USER: 'admin' + MONGODB_PASS: 'pass'