In GCP console, on the top right toolbar, click the Activate Cloud Shell button.
Cloud Shell icon
Click Continue. cloudshell_continue.png
For convenience, place the zone that Qwiklabs assigned to you into an environment variable called MY_ZONE. At the Cloud Shell prompt, type this partial command:
export MY_ZONE=
followed by the zone that Qwiklabs assigned to you. Your complete command will look similar to this:
export MY_ZONE=us-central1-a
Start a Kubernetes cluster managed by Kubernetes Engine. Name the cluster webfrontend and configure it to run 2 nodes:
gcloud container clusters create webfrontend --zone $MY_ZONE --num-nodes 2
It takes several minutes to create a cluster as Kubernetes Engine provisions virtual machines for you.
After the cluster is created, check your installed version of Kubernetes using the kubectl version command:
kubectl version
The gcloud container clusters create command automatically authenticated kubectl for you.
View your running nodes in the GCP Console. On the Navigation menu (Navigation menu), click Compute Engine --VM Instances.
Your Kubernetes cluster is now ready for use.
Click Check my progress to verify the objective.