Kubernetes > Create a cluster on Google cloud platform
Launch the Google Cloud Platform Dashboard,
On the navigation panel, click on Kubernetes Engine
Then, click on Create Cluster
Leave everything default, and click on create, this will create a 3 node cluster
You can see the cluster being created, click on connect
Click on Run in Cloud Shell
Press Enter on the Cloud Shell
Welcome to Cloud Shell! Type "help" to get started.
Your Cloud Platform project in this session is set to cobalt-vector-220612.
Use “gcloud config set project [PROJECT_ID]” to change to a different project.
networkandcode@cloudshell:~ (cobalt-vector-220612)$ gcloud container clusters get-credentials standard-cluster-1 --zone us-central1-a --project cobalt-vector-220612
Fetching cluster endpoint and auth data.
kubeconfig entry generated for standard-cluster-1.
networkandcode@cloudshell:~ (cobalt-vector-220612)$
if you want to see the cloud shell on a separate window, click on the open in a new window icon
Let's verify the kubectl version and the number of nodes (we know it should be 3). Note that kubectl is the cli tool to interact with the kubernetes cluster
networkandcode@cloudshell:~ (cobalt-vector-220612)$ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.7", GitCommit:"0c38c362511b20a098d7cd855f1314dad92c2780", GitTreeState:"clean", BuildDate:"2018-08-20T10:09:03Z", GoVersion:"go1.9.3", Compiler
:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.6-gke.2", GitCommit:"04ad69a117f331df6272a343b5d8f9e2aee5ab0c", GitTreeState:"clean", BuildDate:"2019-01-04T16:19:46Z", GoVersion:"go1.10.3b4"
, Compiler:"gc", Platform:"linux/amd64"}
networkandcode@cloudshell:~ (cobalt-vector-220612)$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
gke-standard-cluster-1-default-pool-86972d60-0bwm Ready <none> 11m v1.11.6-gke.2
gke-standard-cluster-1-default-pool-86972d60-bf44 Ready <none> 11m v1.11.6-gke.2
gke-standard-cluster-1-default-pool-86972d60-gncq Ready <none> 11m v1.11.6-gke.2
networkandcode@cloudshell:~ (cobalt-vector-220612)$
--end-of-post--