Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Terraform configuration to initialize a local Kind cluster for my personal development and testing workflows.

License

Notifications You must be signed in to change notification settings

nmdra/kind-cluster-terraform

Repository files navigation

kind-cluster-terraform

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.

Features

  • 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

How It Works

  • By default, the Kind cluster is created without Ingress or LoadBalancer support.
  • When the enable_ingress_lb variable is set to true:
    • cloud-provider-kind is automatically deployed
    • Kubernetes Service resources of type LoadBalancer are supported
    • Ingress works out-of-the-box without installing a third-party controller

Usage

# 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.

Requirements

  • Docker
  • Terraform
  • Kind
  • kubectl

Resources & References

About

Terraform configuration to initialize a local Kind cluster for my personal development and testing workflows.

Topics

Resources

License

Stars

Watchers

Forks

Languages