diff --git a/deployment/02-chat-service.yaml b/deployment/01-chat-service.yaml similarity index 93% rename from deployment/02-chat-service.yaml rename to deployment/01-chat-service.yaml index 36f252f..8984367 100644 --- a/deployment/02-chat-service.yaml +++ b/deployment/01-chat-service.yaml @@ -21,7 +21,7 @@ spec: image: iivashchuk/jsprocamp-chat-service env: - name: PORT - value: "3001" + value: "3001" # Nest expects port ports: - name: web containerPort: 3001 diff --git a/deployment/03-chat-app.yaml b/deployment/02-chat-app.yaml similarity index 94% rename from deployment/03-chat-app.yaml rename to deployment/02-chat-app.yaml index 538170c..27d9823 100644 --- a/deployment/03-chat-app.yaml +++ b/deployment/02-chat-app.yaml @@ -39,4 +39,5 @@ spec: name: web port: 80 selector: - app: client-app \ No newline at end of file + app: client-app + type: LoadBalancer \ No newline at end of file diff --git a/deployment/01-user-service.yaml b/deployment/03-user-service.yaml similarity index 96% rename from deployment/01-user-service.yaml rename to deployment/03-user-service.yaml index da09794..7c9236c 100644 --- a/deployment/01-user-service.yaml +++ b/deployment/03-user-service.yaml @@ -55,4 +55,5 @@ spec: name: web port: 3000 selector: - app: user-service \ No newline at end of file + app: user-service + type: LoadBalancer \ No newline at end of file diff --git a/deployment/deploy-local.sh b/deployment/deploy-local.sh index 40d78e2..6587163 100755 --- a/deployment/deploy-local.sh +++ b/deployment/deploy-local.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/deployment/shutdown-local.sh b/deployment/shutdown-local.sh index fdc61d5..f32fad0 100755 --- a/deployment/shutdown-local.sh +++ b/deployment/shutdown-local.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file