This repository serves as a reference for deploying local Kubernetes clusters using Terraform and Kind (Kubernetes IN Docker).
-
Initialize Terraform:
terraform init
-
Plan the deployment:
terraform plan
-
Apply the configuration:
terraform apply
-
Configure kubectl: The kubeconfig will be generated automatically in the root directory. You can use it with:
export KUBECONFIG=${PWD}/kubeconfig kubectl get nodes
main.tf: Main Terraform configuration.versions.tf: Provider versions and constraints.variables.tf: Input variables.outputs.tf: Output values.