Skip to content

Commit

Permalink
feat: reorder environment variables in k8s django config (#350)
Browse files Browse the repository at this point in the history
Rearranged the order in which the environment variables are loaded in
the Kubernetes configuration file for Django.
Environment variables will now be loaded from 'app-config' ConfigMap
first, followed by the 'secrets-config'.
This allows the local secrets config to override the app-config and not
the other way around.
  • Loading branch information
gfranxman authored Sep 4, 2024
1 parent f239012 commit f2cb234
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions {{cookiecutter.project_slug}}/k8s/base/django.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ spec:
- name: http-server
containerPort: 8000
envFrom:
- secretRef:
name: secrets-config
- configMapRef:
name: app-config
- secretRef:
name: secrets-config
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -76,7 +76,7 @@ spec:
image: backend:latest
command: ["python", "manage.py", "migrate"]
envFrom:
- secretRef:
name: secrets-config
- configMapRef:
name: app-config
- secretRef:
name: secrets-config

0 comments on commit f2cb234

Please # to comment.