Hello, I am learning how to work with a Kubernetes Cluster and I want to see some graphical staff with Rancher. The Kubernetes Cluster is running, some pods are running too and I exposed some of the for a couple of tests.
Now I want to integrate Rancher into Kubernetes Cluster. I installed a new VM with Rancher (https://get.rancher.io) and I reseted the admin password. Now I want to add a “other” cluster and I got a kube control command to apply. Because the unofficial CA from my Rancher I want to install it with the second command via curl.
Now my Problem:
First the pod is running and after 10 seconds there is an error. After more seconds the cattle cluster agent has the status “CrashLoopBackOff”.
In my Opinion the Logs are not so transparent:
kubectl logs -n cattle-system cattle-cluster-agent-74f6dbff4f-wmnbx
INFO: Environment: CATTLE_ADDRESS=ipaddress CATTLE_CA_CHECKSUM=fea8d55c0125ebb332d6de250be762a7dc400bafe34efb308393b19d199f65b3 CATTLE_CLUSTER=true CATTLE_CLUSTER_REGISTRY= CATTLE_FEATURES= CATTLE_INTERNAL_ADDRESS= CATTLE_IS_RKE=false CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=cattle-cluster-agent-74f6dbff4f-wmnbx CATTLE_SERVER=rancherhostname8443
INFO: Using resolv.conf: nameserver ipaddress search cattle-system.svc.cluster.local svc.cluster.local cluster.local example.com options ndots:5
INFO: rancherhostname8443 /ping is accessible
INFO: rancherhostname resolves to rancherip
INFO: Value from rancherhostname:8443/v3/settings/cacerts is an x509 certificate
time=“2021-11-25T22:45:20Z” level=info msg=“Listening on /tmp/log.sock”
time=“2021-11-25T22:45:20Z” level=info msg=“Rancher agent version v2.5.11 is starting”
time=“2021-11-25T22:45:21Z” level=info msg=“Connecting to wss:// rancherhostname8443 /v3/connect/register with token notvisible”
time=“2021-11-25T22:45:21Z” level=info msg=“Connecting to proxy” url=“wss:// rancherhostname8443 /v3/connect/register”
time=“2021-11-25T22:45:21Z” level=info msg=“Starting user controllers”
time=“2021-11-25T22:45:21Z” level=fatal msg=“the server could not find the requested resource”
In my Rancher Web Gui is the status at “Waiting for API to be available”.
I hope somebody can help me with my Problem. Please contact me if you need more information.
thankful regards