You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 months ago | |
---|---|---|
terraform | 9 months ago | |
.gitignore | 9 months ago | |
README.md | 9 months ago | |
install-kind-machine.sh | 2 months ago | |
kind.yaml | 2 months ago |
README.md
Set up a kind machine for testing terraform etc.
My favourite distro is Fedora, so all code is made and tested for Fedora.
Initial setup
- Get yourself a virtual machine with Fedora
- Local vm
- DigitalOcean droplet
- etc.
- 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 init
- Then
terraform plan
- Then
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.