Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 703 Bytes

application-setup.md

File metadata and controls

28 lines (16 loc) · 703 Bytes

Deploy application on Google Kubernetes Cluster

Created dev namespace

cd kuberapp/

kubectl apply -f dev-namespace.yml

Deploy all microservice components into dev namespace

kubectl apply -f mongo -n dev

kubectl apply -f ui -n dev

kubectl apply -f post -n dev

kubectl apply -f comment -n dev

Make sure website works as expected

Get external IP of any of the node in cluster/or use google cloud web console gui

kubectl get nodes -o wide

Find a port which is used for service ui

kubectl describe service ui -n dev | grep NodePort

Go to url http://external_ip:nodeport and enjoy

Perfect! We successfully deployed our app!