Hello-world with Terraform, k3d and kpt | by Ben Fraser | Feb, 2021 | Medium medium.com
Short, high-level tutorial for setting up a Kubernetes cluster locally, using Terraform and k3d, then deploying a simple hello-world application. Clone the source repo and navigate to it: Input “yes” when prompted to accept the terraform apply Take note of the outputs k3d_cluster_ip and k3d_host_lb_port, as these will be used to access the cluster later on. Use the ip and port from the Terraform outputs (in this case 127.0.0.1 aka localhost, and port 8043): curl localhost:8043 Remove helloworld deployment with: kpt live destroy helloworld Remove k3d cluster (from terraform-k3d directory) with: terraform destroy
Report Story