Using the Kubernetes provider to provision Kubernetes resources
The Kubernetes provider for Terraform is a plugin that allows Terraform to manage resources on a Kubernetes cluster. This includes creating, updating, and deleting resources such as deployments, services, and pods.
When using the Kubernetes Terraform provider, your infrastructure description is written in HCL instead of YAML. This is the language used by Terraform to describe infrastructure and service configurations.
The Kubernetes Terraform provider
As we discussed in the previous section, because Kubernetes has a REST API that acts as a uniform control plane for all management operations, it’s possible to create a Terraform provider that we can use to automate it in the same fashion that we do with the AWS, Azure, and GCP cloud platforms.
Just as with other cloud platforms, we need to authenticate against the control plane. One big difference with Kubernetes is that the management control plane is...