From bde09ca15185a999d9e62c90ba74109a64e4ff42 Mon Sep 17 00:00:00 2001 From: liberty-rising Date: Sun, 21 Jan 2024 18:41:40 +0100 Subject: [PATCH] change config map and migration job --- k8s/backend-deployment.yaml | 5 +++++ k8s/migration-job.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/k8s/backend-deployment.yaml b/k8s/backend-deployment.yaml index 07254c8..cff4413 100644 --- a/k8s/backend-deployment.yaml +++ b/k8s/backend-deployment.yaml @@ -18,6 +18,11 @@ spec: - configMapRef: name: backend-config env: + - name: DATABASE_URL + valueFrom: + secretKeyRef: + name: db-credentials + key: DATABASE_URL - name: DATABASE_POOL_URL valueFrom: secretKeyRef: diff --git a/k8s/migration-job.yaml b/k8s/migration-job.yaml index 3652cb5..b72cc20 100644 --- a/k8s/migration-job.yaml +++ b/k8s/migration-job.yaml @@ -18,4 +18,34 @@ spec: secretKeyRef: name: db-credentials key: DATABASE_URL + - name: DATABASE_POOL_URL + valueFrom: + secretKeyRef: + name: db-credentials + key: DATABASE_POOL_URL + - name: OPENAI_API_KEY + valueFrom: + secretKeyRef: + name: openai-secret + key: OPENAI_API_KEY + - name: JWT_SECRET_KEY + valueFrom: + secretKeyRef: + name: jwt-secret + key: JWT_SECRET_KEY + - name: SENDGRID_API_KEY + valueFrom: + secretKeyRef: + name: sendgrid-api-key + key: SENDGRID_API_KEY + - name: SPACES_ACCESS_KEY + valueFrom: + secretKeyRef: + name: spaces-access-key + key: SPACES_ACCESS_KEY + - name: SPACES_SECRET_ACCESS_KEY + valueFrom: + secretKeyRef: + name: spaces-secret-access-key + key: SPACES_SECRET_ACCESS_KEY restartPolicy: OnFailure \ No newline at end of file