Unable to join k8s (kubeadm) to Rancher

Hello guys, can you help me. I try to join k8s cluster (kube)adm to rancher (rke2) but no success.

error:
time=“2024-10-08T22:31:48Z” level=fatal msg=“Get "https://test-ranc.ten.da": tls: failed to verify certificate: x509: certificate is valid for ingress.local, not test-ranc.ten.da”

You have 2 options:

  • use a valid certificate on your rancher ingress
  • generate the join command with the ‘insecure’ box checked