Skip to content

Commit

Permalink
define env on deployment, not service
Browse files Browse the repository at this point in the history
  • Loading branch information
parrotmac committed Jul 29, 2023
1 parent 5da67fc commit bfbc6fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions deploy/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ spec:
name: gary
ports:
- containerPort: 8000
env:
- name: ALLOWED_HOSTS
value: *
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: db-credentials
key: url
8 changes: 0 additions & 8 deletions deploy/k8s/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,5 @@ spec:
ports:
- port: 8000
targetPort: 8000
env:
- name: ALLOWED_HOSTS
value: *
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: db-credentials
key: url
selector:
app: gary

0 comments on commit bfbc6fc

Please sign in to comment.