From 6cdcecff61ae0670d60bd2a5b14cef34623f8ef4 Mon Sep 17 00:00:00 2001 From: liberty-rising Date: Mon, 29 Jan 2024 21:03:09 +0100 Subject: [PATCH] add azure secrets to kubernetes --- k8s/backend-deployment.yaml | 20 ++++++++++++++++++++ k8s/migration-job.yaml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/k8s/backend-deployment.yaml b/k8s/backend-deployment.yaml index cff4413..278a610 100644 --- a/k8s/backend-deployment.yaml +++ b/k8s/backend-deployment.yaml @@ -18,6 +18,26 @@ spec: - configMapRef: name: backend-config env: + - name: AZURE_CLIENT_ID + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_CLIENT_ID + - name: AZURE_TENANT_ID + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_TENANT_ID + - name: AZURE_APP_VALUE + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_APP_VALUE + - name: AZURE_APP_SECRET + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_APP_SECRET - name: DATABASE_URL valueFrom: secretKeyRef: diff --git a/k8s/migration-job.yaml b/k8s/migration-job.yaml index a03a2a0..3bc1514 100644 --- a/k8s/migration-job.yaml +++ b/k8s/migration-job.yaml @@ -13,6 +13,26 @@ spec: - configMapRef: name: backend-config env: + - name: AZURE_CLIENT_ID + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_CLIENT_ID + - name: AZURE_TENANT_ID + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_TENANT_ID + - name: AZURE_APP_VALUE + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_APP_VALUE + - name: AZURE_APP_SECRET + valueFrom: + secretKeyRef: + name: azure-secrets + key: AZURE_APP_SECRET - name: DATABASE_URL valueFrom: secretKeyRef: