I am facing issue when trying to import k8s cluster in Rancher.
here are the logs of when trying to run the commands:
curl --insecure -sfL https://172.31.91.168/v3/import/zlxz57dj7nhpdzx4cw7lvfdnj9zt7n2tpk4df5v7frq2tfjf52j49j_c-m-jgw4wzm5.yaml | kubectl apply -f -
kubectl apply -f https://172.31.91.168/v3/import/zlxz57dj7nhpdzx4cw7lvfdnj9zt7n2tpk4df5v7frq2tfjf52j49j_c-m-jgw4wzm5.yaml
Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority
Unable to identify the issue. As rancher is running on separate e2 instance under Docker and K8s cluster is running separate machine and worker node as well.
For reference sharing the snap shot:
I check out almost the number of given answer here related to SSL but not able to find and relevant answer.