Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
image: iivashchuk/jsprocamp-chat-service
env:
- name: PORT
value: "3001"
value: "3001" # Nest expects port
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use 8000

ports:
- name: web
containerPort: 3001
Expand Down
3 changes: 2 additions & 1 deletion deployment/03-chat-app.yaml → deployment/02-chat-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ spec:
name: web
port: 80
selector:
app: client-app
app: client-app
type: LoadBalancer
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ spec:
name: web
port: 3000
selector:
app: user-service
app: user-service
type: LoadBalancer
10 changes: 5 additions & 5 deletions deployment/deploy-local.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
microk8s helm install my-mongo bitnami/mongodb
microk8s helm install my-redis --set cluster.slaveCount=0 bitnami/redis
microk8s kubectl apply -f 01-user-service.yaml
microk8s kubectl apply -f 02-chat-service.yaml
microk8s kubectl apply -f 03-chat-app.yaml
kubectl apply -f 01-chat-service.yaml
kubectl apply -f 02-chat-app.yaml
helm install my-mongo bitnami/mongodb
helm install my-redis --set cluster.slaveCount=0 bitnami/redis
kubectl apply -f 03-user-service.yaml
10 changes: 5 additions & 5 deletions deployment/shutdown-local.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
microk8s helm delete my-mongo
microk8s helm delete my-redis
microk8s kubectl delete -f 01-user-service.yaml
microk8s kubectl delete -f 02-chat-service.yaml
microk8s kubectl delete -f 03-chat-app.yaml
helm delete my-mongo
helm delete my-redis
kubectl delete -f 01-chat-service.yaml
kubectl delete -f 02-chat-app.yaml
kubectl delete -f 03-user-service.yaml