https://rancher.com/ logo
Title
m

magnificent-rainbow-12629

04/03/2023, 3:53 PM
Hello, I am doing some tests and trying to install RKE2 cluster thru the Rancher 2.7.1 UI on AWS but I experience a strange problem. The image used for he initialisation of the nodes has
search domain.tld
in /etc/resolv.conf. This forces the hostname detection by the RKE to use
domain.tld
, as result the hostname is not resolvable with the internal ip addresses. In order to solve this problem I set API Server argument in the UI to use this:
kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
with the idea to force the RKE to use the IP addresses instead of the hostname, unfortunately it doesn't work. I have the feeling that it cannot get the IP addresses on the node and as a last solution it tries to use the hostname. Have you experienced similar issue and could you suggest some solutions?
I forgot to mention, the distro is Ubuntu 20.04