Skip to content

Commit

Permalink
Merge pull request #252 from DocShow-AI/kube_config
Browse files Browse the repository at this point in the history
add azure secrets to kubernetes
  • Loading branch information
liberty-rising authored Jan 29, 2024
2 parents 3cdf560 + 6cdcecf commit 5198e3a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions k8s/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 20 additions & 0 deletions k8s/migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5198e3a

Please sign in to comment.