Technical requirements
For this chapter, we will spin up a cloud-based Kubernetes cluster, Google Kubernetes Engine (GKE), for the exercises. That is because you will not be able to spin up load balancers and persistent volumes within your local system, and therefore we cannot use KinD and minikube in this chapter. Currently, Google Cloud Platform provides a free $300 trial for 90 days, so you can go ahead and sign up for one at https://console.cloud.google.com/.
Spinning up Google Kubernetes Engine
Once you've signed up and logged into your console, you can open the Google Cloud Shell CLI to run the commands.
You need to enable the Kubernetes Engine API first using the following command:
$ gcloud services enable container.googleapis.com
To create a three-node GKE cluster, run the following command:
$ gcloud container clusters create cluster-1 --zone \ us-central1-a Creating cluster cluster-1 in us-central1-a... Cluster is being health-checked (master is healthy...