If you don
‘t already have a Google Account (Gmail or Google Apps), you must create one. Then, sign-in to Google Cloud Platform console ( cloud.google.com) and create a new project.
Finally, after Google Cloud SDK installs, run the following command to install kubectl: gcloud components install kubectl
Choose a Google Cloud Project zone to run your service. We will be using us-central1. This is configured on the command line via:
gcloud config set compute/zone us-central1
First create a cluster
gcloud container clusters create clusterName
In gcloud shell run the following command to deploy application using given configurations.
bash ./kubernetes/deploy.sh create
This will create the deployment according to yaml files defined.
The Kubernetes master creates the load balancer and related Compute Engine forwarding rules, target pools, and firewall rules to make the service fully accessible from outside of Google Cloud Platform.
Wait for a few minutes for all the containers to be created.
To track the progress using the Web GUI run
After that goto http://localhost:8001/ui
If you want to delete the deployment from the cluster enter this command:
bash ./kubernetes/deploy.sh delete
To delete cluster enter:
gcloud container clusters delete clusterName