This post explains how to set up a local Kubernetes cluster using Kind, Terraform, and Kftray. It keeps all services inside the cluster, avoiding the need for ingress controllers or exposing services. The Terraform code used in this setup is available on GitHub. The necessary tools include Docker, Terraform, and Kftray. The project structure includes a Terraform configuration that automates cluster creation, Helm chart deployment, and service annotations. Local variables and service configurations are defined in locals.tf. The Helm configuration deploys services using Helm. Outputs are defined in outputs.tf. To apply the Terraform configuration, run "make apply". After setting up the cluster, install Kftray and import port-forward configurations. Access services locally through the specified ports. For custom Kftray settings, edit locals.tf. To clean up, run "make destroy". This setup is useful for local development and secure environments.
dev.to
dev.to