I am trying to install the Rancher Server on my local VDS and import my already installed k8s cluster. This is everything located in the one private network.
The Rancher Server installed on Centos with Docker and works perfect:
The command to run:
docker run -d --restart=unless-stopped -p 8080:80 -p 8443:443 -v /opt/rancher/runtime:/var/lib/rancher -v /opt/rancher/certs/cacerts/ca.pem:/etc/rancher/ssl/cacerts.pem -v /opt/rancher/certs/mngr.key:/etc/rancher/ssl/key.pem -v /opt/rancher/certs/mngr.crt:/etc/rancher/ssl/cert.pem --privileged rancher/rancher:stable
But I am faced with the one strange problem and cant find the solution.
When I use “self-signed or untrusted SSL Cert” link to connect the k8s cluster I am receiving errors:
From the server-side:
2022/06/08 20:28:56 [ERROR] Failed to handling tunnel request from remote address 172.20.17.201:60128: response 400: invalid input, caCert empty
From the cattle-cluster-agent:
INFO: Using resolv.conf: search cattle-system.svc.cluster.local svc.cluster.local cluster.local nameserver 10.96.0.10 options ndots:5 INFO: https://mngr.local:8443/ping is accessible INFO: mngr.local resolves to 172.20.17.151 INFO: Value from https://mngr.local:8443/v3/settings/cacerts is an x509 certificate
time="2022-06-08T20:29:16Z" level=info msg="Connecting to wss://mngr.local:8443/v3/connect/register with token starting with 2sqpdctn7tqmv9cv85pn5wx9qqw" time="2022-06-08T20:29:16Z" level=info msg="Connecting to proxy" url="wss://mngr.local:8443/v3/connect/register" time="2022-06-08T20:29:16Z" level=error msg="Failed to connect to proxy. Response status: 400 - 400 Bad Request. Response body: invalid input, caCert empty" error="websocket: bad handshake" time="2022-06-08T20:29:16Z" level=error msg="Remotedialer proxy error" error="websocket: bad handshake"
Can anybody say what I do wrong or where I missed settings?