diff --git a/deploy/k8s/deployment.yaml b/deploy/k8s/deployment.yaml index 1a1c659..76097dd 100644 --- a/deploy/k8s/deployment.yaml +++ b/deploy/k8s/deployment.yaml @@ -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 diff --git a/deploy/k8s/service.yaml b/deploy/k8s/service.yaml index 31234a9..d0af222 100644 --- a/deploy/k8s/service.yaml +++ b/deploy/k8s/service.yaml @@ -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