This message was deleted.
# general
a
This message was deleted.
a
You can import existing clusters, rancher will generate a kubectl command for you to run on the downstream cluster.
h
@agreeable-oil-87482 clusters that are not: GKE, EKS or AKS ? If so, how to do so?
a
Import > Generic
h
Thanks a lot @agreeable-oil-87482 found the commands, though im getting a
Waiting
state,
Waiting for API to be available
agent is running for 20 mins. now
a
Can you grab the logs from the agent?
h
Copy code
➜  aws-kubespray git:(feature/V2.20-jenkins) ✗ kl cattle-cluster-agent-6df659fdd9-r66nt
INFO: Environment: CATTLE_ADDRESS=10.233.125.6 CATTLE_CA_CHECKSUM=efe245eb85339d5b4e41099cf06e106c042b561f999f46582a14ecd30764347c CATTLE_CLUSTER=true CATTLE_CLUSTER_AGENT_PORT=<tcp://10.233.44.247:80> CATTLE_CLUSTER_AGENT_PORT_443_TCP=<tcp://10.233.44.247:443> CATTLE_CLUSTER_AGENT_PORT_443_TCP_ADDR=10.233.44.247 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PORT=443 CATTLE_CLUSTER_AGENT_PORT_443_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_PORT_80_TCP=<tcp://10.233.44.247:80> CATTLE_CLUSTER_AGENT_PORT_80_TCP_ADDR=10.233.44.247 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PORT=80 CATTLE_CLUSTER_AGENT_PORT_80_TCP_PROTO=tcp CATTLE_CLUSTER_AGENT_SERVICE_HOST=10.233.44.247 CATTLE_CLUSTER_AGENT_SERVICE_PORT=80 CATTLE_CLUSTER_AGENT_SERVICE_PORT_HTTP=80 CATTLE_CLUSTER_AGENT_SERVICE_PORT_HTTPS_INTERNAL=443 CATTLE_CLUSTER_REGISTRY= CATTLE_INGRESS_IP_DOMAIN=<http://sslip.io|sslip.io> CATTLE_INSTALL_UUID=47458027-d42e-4a65-99d9-026cc3e2bc07 CATTLE_INTERNAL_ADDRESS= CATTLE_IS_RKE=false CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=cattle-cluster-agent-6df659fdd9-r66nt CATTLE_SERVER=<https://final.rancher.com> CATTLE_SERVER_VERSION=v2.7.1
INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local eu-central-1.compute.internal nameserver 169.254.25.10 options ndots:5
INFO: <https://final.rancher.com/ping> is accessible
INFO: <http://final.rancher.com|final.rancher.com> resolves to 35.157.244.86
INFO: Value from <https://final.rancher.com/v3/settings/cacerts> is an x509 certificate
time="2023-03-07T12:54:00Z" level=info msg="Listening on /tmp/log.sock"
time="2023-03-07T12:54:00Z" level=info msg="Rancher agent version v2.7.1 is starting"
time="2023-03-07T12:54:00Z" level=info msg="Connecting to <wss://final.rancher.com/v3/connect/register> with token starting with 9hpw5dqzd6d28nb6dzs7v8q4stv"
time="2023-03-07T12:54:00Z" level=info msg="Connecting to proxy" url="<wss://final.rancher.com/v3/connect/register>"
from rancher host pod got:
│ 2023/03/07 12:54:29 [INFO] error in remotedialer server [400]: websocket: close 1006 (abnormal closure): unexpected EOF                                                                 │
a
Do you have a firewall/proxy between this cluster and Rancher?
h
opened all. though the DNS of rancher host is through ingress controller
a
On one of the nodes from the cluster you're trying to import can you curl the rancher url?
h
Yes
a
Could be that something is dropping websocket connections
Is the above the extent of the cluser agent logs?
h
yes, thats all the logs from the imported cluster agent, stuck on connecting
a
What version of k8s is running on the downstream cluster?
h
V1.23.6, using kubespray
OK, Good news: it worked, but the issue was still un-clear
113 Views