Creating the Control Plane
Learn how to create a primary cluster in Google cloud using Terraform definitions.
We'll cover the following
GKE cluster specifications
Now we have all the prerequisites. The provider is set to Google, and we have the backend (for the state) pointing to the bucket. We can turn our attention to the GKE cluster itself.
A Kubernetes cluster almost always consists of a control plane and one or more pools of worker nodes. In the case of GKE, those two are separate types of resources. We’ll start with the control plane and move toward worker nodes later.
We can use the google_container_cluster module to create a GKE control plane.
Viewing the control plane file
Let’s look at the contents of the k8s-control-plane.tf
file.
Get hands-on with 1400+ tech skills courses.