Hello, I am trying to deploy a "bare metal" cluste...
# general
b
Hello, I am trying to deploy a "bare metal" cluster from Rancher in VMware as a POC on Oracle Linux 8 and have gotten to where the
cattle-cluster-agent
pod tries to start, but can not get past the following error. Any help would be approbated.
Copy code
│ INFO: Environment: CATTLE_ADDRESS=192.168.44.65 CATTLE_CA_CHECKSUM=f184280d010533f239f1f720f1badbcadc22d223a4a1db9cc80b8149d4adb259 CATTLE_CLUSTER=true CATTLE_CLUSTER_AGENT_PORT=<tcp://192.168.54.162:80> CATTLE_CLUSTER_AGENT_PORT_443_TCP=<tcp://192.168.54.162:443> CATTLE_ │
│ INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local nameserver 192.168.54.10 options ndots:5                                                                                                                                     │
│ ERROR: <https://rancherhost.test.io/ping> is not accessible (Could not resolve host: <http://rancherhost.test.io|rancherhost.test.io>)
I can login to the host and it will resolve the hostname of our rancher host.
I also see that the
rke2-coredns-rke2-coredns
is trying to reach out to 8.8.8.8 for DNS. How can I configure the cluster to look internally for DNS?
c
RKE2 will fall back to 8.8.8.8 if the dns server in the node’s resolv.conf points does not point at a valid upstream. For example, if you’re using systemd-resolved and resolv.conf points at 127.0.0.53 or something.
You should ensure that resolv.conf on your node points at a valid upstream, and then restart rke2.
If you search the RKE2 logs, there should be a warning about the fact that it is falling back to 8.8.8.8