Course outlines for learning terraform.
| expected time | requirements |
|---|---|
| 60 minutes | a computer |
Goal: Learn how to create a K8s cluster on GCP using Terraform.
A Kubernetes cluster consists of many components. Creating one “manually” is time consuming and error prone.
Using Terraform to deploy a k8s cluster is quite simple.
Use google_container_cluster to setup a K8s cluster. The documentation is a great starting point.
| beginner | intermediate |
| Have a look at the sample repository, clone it, and follow the steps in the README.md. | You’ll manually write Terraform code. Uses these resources. |
1. google_compute_network |
|
2. google_compute_subnetwork |
|
3. google_container_cluster |
|
4. google_container_node_pool |
node_count?gke_num_nodes is set to 2.vm_size would be good?machine_type?gke_num_nodes?