https://rancher.com/ logo
Title
e

eager-refrigerator-66976

06/20/2022, 2:33 PM
hey guys! I am trying to provision rke2 via rancher with custom CNI which is
aws-eni-cni
and having interesting issue, the bootstrap controlplane node starts-up fine but other nodes are failing as they get wrong
"server": "<https://IP:9345>",
that
IP
isn’t the node IP and I have no idea how it was discovered… I did check I have no pods running with such IP on bootstrap node… however that IP is one of the EC2 instance secondary IP addresses… any idea how can I fix this? 🙏
how does
server: <https://IP:9345>
gets added to the
/etc/rancher/rke2/config.yaml.d/50-rancher.yaml
?
c

curved-caravan-26314

06/20/2022, 4:20 PM
I'm new to RKE2 (not new on RKE). The way I understand your nodes to take the right action is to create the yaml file you need before installing the agent or second and third server if you're going for HA. If you're using ubuntu then id suggest looking at your /etc/resolv.conf and doing something like this for your nodes...
mkdir -p /etc/rancher/rke2/
nano /etc/rancher/rke2/config.yaml
server: https://<server>:9345
token: <token from server node>
as for CNI, you may want to look here.
<https://docs.rke2.io/install/network_options/#install-a-cni-plugin>
I hope this helps some
e

eager-refrigerator-66976

06/21/2022, 8:41 AM
@curved-caravan-26314 ty for the reply, I am installing RKE2 via rancher so it does all of it for me rancher system agent does all the provisioning
but for some reason it picks up wrong IP address for the bootstrap node