Skip to content

KOTS cli does not work when kubernetes API server has a "https://host/path/to/api" format #5237

@SSvilen

Description

@SSvilen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions