hi , can anyone help me with my query, I am trying to import an existing cluster , but cluster-agent fails with crashloopbackoff and looking at logs it says no host found https://rancher, whereas I can ping the https://rancher/ping and get a response , I am trying to import a cluster with version v1.24.2 on rancher v2.4.5, any help is appreciated, thanks !!
07/01/2022, 6:57 PM
https://rancher isn’t a FQDN, the search domain necessary to resolve that is unlikely to be set within the rancher agent pod. I would recommend using a FQDN (rancher.my.domain). Confirm that it will resolve using whatever DNS server your pods are using.
07/01/2022, 7:37 PM
Hi @creamy-pencil-82913 I tried adding FQDN as well, but it fails to connect , although port 443 is open for the connection and using curl https://rancher/ping gives a response as pong
07/01/2022, 8:47 PM
What do you mean adding fqdn? Did you re-run the registration command with a fqdn for the rancher server address? Short hostnames are highly unlikely to work properly.
07/01/2022, 9:04 PM
yeah I did run the registration command
but yeah I will provide you the screenshot of the error later