Terraform configuration to provision a local Kind (Kubernetes in Docker) cluster for personal development and testing workflows.
This setup optionally enables Ingress and LoadBalancer support using cloud-provider-kind, which runs as a Docker container alongside the Kind cluster.
Note
Starting from cloud-provider-kind v0.9.0, Ingress is supported natively. No third-party ingress controllers (such as NGINX) are required by default.
- Local Kubernetes cluster using Kind
- Optional Ingress + LoadBalancer support via cloud-provider-kind
- cloud-provider-kind runs as a Docker container
- Fully controlled using Terraform variables
- Ideal for local development and testing
- By default, the Kind cluster is created without Ingress or LoadBalancer support.
- When the
enable_ingress_lbvariable is set totrue:cloud-provider-kindis automatically deployed- Kubernetes
Serviceresources of typeLoadBalancerare supported - Ingress works out-of-the-box without installing a third-party controller
# Create cluster with ingress & load balancer disabled
terraform apply
# Create cluster with ingress & load balancer enabled
terraform apply -var="enable_ingress_lb=true"👉 Test Ingress for example workloads and verification steps.
- Docker
- Terraform
- Kind
- kubectl