Hi. Need some help :slightly_smiling_face: Is ther...
# vsphere
v
Hi. Need some help 🙂 Is there any way on how to configure Rancher and vsphere to use static IPs for cluster creation? Rancher 2.12 vsphere 8.0.
b
Sort of. I did it by creating custom clusters and making up the servers separately, then running the registration curl on them. Not as integrated, but it works without DHCP.
v
I tried creating node by node and configuring static ip via cloud_config. But somehow ubuntu or rancher 20.04 didn't execute network part ;/
b
Obvious first question is whether the firewalls are open between the two. As mentioned, I set up the servers separately with IP addresses on vSphere, but they are on different networks to the Rancher cluster, so ports 80/443/6443 are opened up for them to communicate, after which the curl command for registration can be run on the new server to give it a role or three in the cluster. The cluster is set up with no reference to any servers at all, hence needing the registration command to run curl.
k
This can help you deploying virtual machines with static IP from Rancher and vsphere I guess. https://www.virtualthoughts.co.uk/2020/03/29/rancher-vsphere-network-protocol-profiles-and-static-ip-addresses-for-k8s-nodes/