segmentio / kubectl-curl

Kubectl plugin to run curl commands against kubernetes pods
MIT License
180 stars 16 forks source link

using with go-teleport fails on first char missing #12

Open chaporgin opened 2 years ago

chaporgin commented 2 years ago

Hi! We use go-teleport installed at say tele.host.com. Using kubectl curl I get this:

m ~/D/  kubectl curl -vvv --debug "http://{podname}:3000/healthz"
* 2022/05/15 21:46:39 kubectl get -n default pod/{podname}
* 2022/05/15 21:46:41 forwarding local port 14187 to port 3000 of
* 2022/05/15 21:46:41 waiting for port fowarding to be established
* 2022/05/15 21:46:41 error upgrading connection: error sending request: Post "https://ele.host.com:3026/api/v1/namespaces/default/pods/zenith-console-7c64d658bd-mqvdv/portforward": dial tcp: lookup ele.host.com: no such host
^C* 2022/05/15 21:47:00 shutting down port forwarder
* 2022/05/15 21:47:00 waiting for port forwarder to stop

and it hangs forever. There is obviously no ele.host.com. Cause it's tele.host.com. Can't say for sure, this is not a go-teleport bug, sorry.