https://rancher.com/ logo
#rke2
Title
c

cool-monkey-71774

01/27/2023, 7:33 AM
Hi Everyone, I am trying to setup my RKE2 cluster using ansible, but I have two issues that I can't solve. First, the server url to get the CA certs is the IPv6 of the first master that join, and in some cases, the other nodes can't resolve the url and I get the error "no route to host" when starting rke2 server
FATA[0006] starting kubernetes: preparing server: failed to get CA certs: Get "<https://xxxx>:xxxx:xxxx:xxxx:xxxx:xxxx:9345/cacerts": dial tcp [xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:9345: connect: no route to host
I manage to get it to work by editing the /etc/rancher/rke2/config.yaml.d/50-rancher.yaml file and changing the IPv6 to IPv4. But I got another issue for the worker nodes even after updating the url, the node gets a 401 unauthorized response, when I try to add other master nodes it works fine
FATA[0000] starting kubernetes: preparing server: <https://xxx.xxx.xxx.xxx:9345/v1-rke2/server-bootstrap>: 401 Unauthorized
Thanks for your time
1
s

sparse-fireman-14239

01/27/2023, 7:38 AM
c

cool-monkey-71774

01/27/2023, 7:38 AM
No I am not I am using a custom built ansible as I provision using rancher
I guess I will try and connect the cluster after
Working just fine with this role ... I guess I will be using it !
s

sparse-fireman-14239

01/27/2023, 8:17 AM
Yeah it seems they have and still are putting a lot of work into it
273 Views