Have you thought about Rancher + Harvester? This way, you have everything in a declarative way, and you can use Terraform to deploy Kubernetes clusters together with their VMs
k
kind-air-74358
10/03/2022, 6:13 AM
Yes we did, but unfortunately we currently don’t have access to the physical layer / virtualisation layer
It’s quite common to use both TF and Ansible as they solve two different things, they complement each other very well.
k
kind-air-74358
10/04/2022, 6:11 AM
Yes, we are running on ‘baremetal’. So I use TF to deploy all the required VM’s, and use now some ssh_resource to deploy install scripts, which in turn installs RKE2. But that’s in my opinion not the way to use TF and install software. So I was Googling a bit around and came across those three possible setups, but didn’t really find a ‘best-practice’