Create 3 masters and 2 worker nodes

Hello, I’m a student who’s just starting out with Kubernetes. I only tried creating 2 pods using minikube, one for an app and one for a database and wrote YAML files too, but that’s the extent to my current knowledge.

I’m required to do a task where I have to create 3 master nodes and 2 working nodes, with a load balancer (metal lb), and get the docker images from a local registry. Also, I’m not allowed to use cloud services to create the nodes. It’s also preferable to integrate the cluster with Terraform.

I don’t really know how to approach the problem due to my lack of experience, would really appreciate any help on how to start.