Having an issue --> cattle-cluster-agent in state CrashLoopBackOff

new install, looking at the logs from the cattle-cluster-agent and notice that the CATTLE_SERVER=https:// <-- points to the node DNS name and not the rancher URL

getting this error --> “ERROR: https://nodeDNSname/ping is not accessible (The requested URL returned error: 404)”

I installed the rancher using helm --> helm version
version.BuildInfo{Version:“v3.0.2”, GitCommit:“19e47ee3283ae98139d98460de796c1be1e3975f”, GitTreeState:“clean”, GoVersion:“go1.13.5”}

Trying to find out why the cattle-cluster-agent has picked up the node DNS name instead of the rancher url for cattle_server variable

Thanks

Further to my post:

Helm version = “v3.0.2”
Docker = Server: Docker Engine - Community
Engine:
Version: 19.03.11

Helm install rancherUI is the DNS name of our F5, helm command line -->

helm install rancher rancher-stable/rancher --namespace cattle-system --set hostname=rancherUI --set tls=external --set replicas=1

looking at the cattle-cluster-agent logs

DNSofNode = DNS of node rancher is setup on*

kubectl logs pod/cattle-cluster-agent-658487df4c-zxzp5 -n cattle-system

INFO: Environment: CATTLE_ADDRESS=10.42.1.17 CATTLE_CA_CHECKSUM= CATTLE_CLUSTER=true CATTLE_FEATURES=dashboard=true CATTLE_INTERNAL_ADDRESS= CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=cattle-cluster-agent-658487df4c-zxzp5 CATTLE_SERVER=https://DNSofNode

INFO: Using resolv.conf: nameserver 10.43.0.10 search cattle-system.svc.cluster.local svc.cluster.local cluster.local uwindsor.ca options ndots:5

ERROR: https://DNSofNode/ping is not accessible (The requested URL returned error: 404)

So, trying to find out why CATTLE_SERVER = DNSofNode and not rancherUI

Thanks

is your coredns pod running? the cattle-agent isn’t able to resolve DNS

Yes it the coredns was running. All names resolved properly. Just couldn’t figure out why the cattle_server=nodeDNSname and not the rancherUI url.

Luckily, we’re just trying to figure the rancher system out and all this is on test servers.

I re-created a new rancher cluster / new servers and the cattle_server=rancherUIurl now.