This message was deleted.
# harvester
a
This message was deleted.
s
Can you use cloud-config enabled images to build the VMs from, and use Harvester's cloud-config Network Data options in the creation of the VMs to set the network config? It's what I do in Harvester, but I haven't been deploying RKE2 VMs so I don't know if cloud-config enabled images are available.
b
I am sure it will work, but then I specify single VM ip to pass. My concern is how do I do it when I am deploying say 3 nodes, the config applies to all but yet pass different Ips to assign static
s
Oh, right. So in that instance you could use Terraform to create the Harvester VM instances. And in doing that you would script the creation of the IP addresses to be unique for each on the VMs Terraform created.
b
I ended creating a DHCP server. Its just easier and better over time.
s
I would never run servers which were not configured with static IP addresses and hostnames nailed into DNS.
b
Ill play with the above suggestions, but for now it serves my needs
Thank you
Terraform will definitely be the next step and we will use our IPAM to allocate the addresses for assignment with Terraform. I just needed the cluster up for testing purposes, this is a POC still. DHCP was limited to the 3 IPs required to get these nodes up, they can only ever get what they have now.
👍 1
😃 1
q
@brash-journalist-8547 i'm messing with deploying rke2 via rancher into harvester as well, just ran across this while trying to see if anyone else is experiencing the same issue i am (harvester is not creating the vms with rke2, but does with rke1). but i just figured it'd be worth mentioning, you could do a cloud config with the network data, and use multiple pools to assign unique ip's to each node. i use this cloud image for ubuntu: https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img personally. i just checked the cloud config data is unique for each pool. also i think you can use some sort of regex pattern for the IP, but i havent messed w/ that personally yet.
b
Hi @quaint-alarm-7893 Thanks ! I will have a look at it. Keep well