Building kubernetes cluster to deploy nginx resource using Terraform https://developer.hashicorp.com/terraform/tutorials/kubernetes/kubernetes-provider
-
kubernetes
-
Terraform
-
-
Ubuntu 22.04
First, I had to install kubectl following the install doc
Once that was installed, I then installed kind to build the cluster.
https://kind.sigs.k8s.io/docs/user/quick-start
once both were installed I created the cluster and pulled the cluster info to add to terraform.tfvars.
with the variables set, I deployed the cluster using terraform and validated the deployment using kubectl
With the cluster validated, I verified Nginx was deployed using the localhost ip.