Set up a kind machine for testing terraform etc.
My favourite distro is Fedora, so all code is made and tested for Fedora.
- Get yourself a virtual machine with Fedora
- Local vm
- DigitalOcean droplet
- You should probably have 2 vCPU and 8Gb RAM
- Clone repo
- Run ./install-kind-machine.sh to install tools
Create a cluster
This command will give you a 1 control node and 3 worker node cluster
kind create cluster --config=./kind.yaml
Delete a cluster
kind delete cluster --name onethree
This cluster do not survive a reboot of the host (that is how kind works).
Get started with terraform
In folder terraform is some starting code to get you started to connect cluster from host.
- Change to folder terraform
- Run command
terraform apply -auto-approve
You now have a cluster with an Loadbalancer ip 172.18.255.200 that is available from host. Next step is probably to set up an ingress like traefik, nginx etc.