Google Container Engine (GKE)
Overall, there are some GCP components that have been introduced in previous sections. Now you can start to set up Kubernetes on GCP VM instances using those components. You can even use kops that was also introduced in Chapter 9, Kubernetes on AWS too.
However, GCP has a managed Kubernetes service called GKE. Underneath, it uses some GCP components such as VPC, VM instances, PD, firewall rules, and LoadBalancers.
Of course, as usual, you can use the kubectl
command to control your Kubernetes cluster on GKE, which is included Cloud SDK. If you don't install the kubectl
command on your machine yet, type the following command to install kubectl
via Cloud SDK:
//install kubectl command
$ gcloud components install kubectl
Setting up your first Kubernetes cluster on GKE
You can set up a Kubernetes cluster on GKE using the gcloud
command. It needs to specify several parameters to determine some configurations. One of the important parameters is network. You have to specify...