homework 13.3: fix prod back and front deployments from 13.1

This commit is contained in:
2022-12-13 11:01:31 +07:00
parent 8f021f73cc
commit 7de8fc4fbb
2 changed files with 7 additions and 1 deletions

View File

@@ -25,7 +25,10 @@ spec:
name: netology-backend name: netology-backend
env: env:
- name: DATABASE_URL - name: DATABASE_URL
value: "postgres://pg_user:pg_passwd@postgres:5432/news" value: "postgresql://db_user:db_passwd@postgres:5432/news"
ports:
- name: web
containerPort: 9000
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
--- ---
apiVersion: v1 apiVersion: v1

View File

@@ -26,6 +26,9 @@ spec:
env: env:
- name: BASE_URL - name: BASE_URL
value: "http://prod-backend:9000" value: "http://prod-backend:9000"
ports:
- name: web
containerPort: 80
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30
--- ---
apiVersion: v1 apiVersion: v1