boundless-dog-9864
06/06/2022, 4:36 PMagreeable-oil-87482
06/06/2022, 6:21 PMcluster_v2
resource is what you're after which references the machine config. The docs have examples for EC2 iirc but if you want to use vSphere here's an example I'm working on (for NSX-T)
https://github.com/David-VTUK/rke2-nsxt-terraform/blob/f6dfa18951ad85235734babad363a8b6375d1e80/modules/rancher/main.tf#L5-L43
As for not using DHCP you can either use custom scripting on a per machine pool basis or use something like vapp pools: https://www.virtualthoughts.co.uk/2020/03/29/rancher-vsphere-network-protocol-profiles-and-static-ip-addresses-for-k8s-nodes/ - I wrote this for RKE1 but the same applies to RKE2.boundless-dog-9864
06/06/2022, 6:24 PMagreeable-oil-87482
06/06/2022, 6:25 PMuser-data
on first boot on the target vmboundless-dog-9864
06/06/2022, 6:27 PMagreeable-oil-87482
06/06/2022, 6:27 PMboundless-dog-9864
06/06/2022, 6:28 PMagreeable-oil-87482
06/06/2022, 6:32 PMboundless-dog-9864
06/06/2022, 6:39 PM