https://rancher.com/ logo
b

brash-journalist-8547

01/26/2023, 8:25 AM
Hi, I am busy deploying RKE2 via rancher into a harvester cluster. I want to deploy 3 nodes. We do not have/use DHCP. In Vmware you can use Network Protocol profile and pass the IP info the the VMs. This works, has harvester got a similar solution? I want them to assign static IPs in the deployment per VM. Any advice please?
s

sticky-summer-13450

01/26/2023, 8:44 AM
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

brash-journalist-8547

01/26/2023, 10:02 AM
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

sticky-summer-13450

01/26/2023, 9:34 PM
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

brash-journalist-8547

01/31/2023, 9:16 AM
I ended creating a DHCP server. Its just easier and better over time.
s

sticky-summer-13450

01/31/2023, 1:42 PM
I would never run servers which were not configured with static IP addresses and hostnames nailed into DNS.
b

brash-journalist-8547

02/01/2023, 9:35 AM
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

quaint-alarm-7893

02/17/2023, 8:42 PM
@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

brash-journalist-8547

02/20/2023, 10:44 AM
Hi @quaint-alarm-7893 Thanks ! I will have a look at it. Keep well
13 Views