kubectl-multiforward
kubectl-multiforward copied to clipboard
bug when working via teleport
Hello,
I have this problem, when I connect to the kubernetes cluster via teleport:
$ kubectl-multiforward prod
error upgrading connection: error sending request: Post "https://eleport.example.com:3026/api/v1/namespaces/example/pods/example-service/portforward": dial tcp: lookup eleport.example.com: no such host
It's related to this code where t
is removed from the beginning of the line:
hostIP = strings.TrimLeft(req.RestConfig.Host, "htps:/")
If I connect to the cluster via AWS, for example, then everything works correctly.
I installed plugin from the source code.