We use Rancher for managing our kubernetes environment.
Which means that the API Servers in the kubeconfig have the following format:
https://rancher.company.com/k8s/clusters/some-clusterid
KOTS fails to create a port forwaring to the kotsadm pod, because it drops the APIPath - in this example "k8s/clusters/some-clusterid".
I believe that the APIPath should also be extracted here and then used during the creating of the URL for the httpdialer: link
I clearly see in the Ingress and Rancher logs the APIPath being dropped. So Rancher does not know which cluster that request is for.
The result is:
Error: failed to port forward: failed to forward ports: error upgrading connection: pods "kotsadm-56475db7cb-g4lsb" not found