kubectl-curl icon indicating copy to clipboard operation
kubectl-curl copied to clipboard

BUG: invalid character "{" in host name

Open adamdecaf opened this issue 2 years ago • 1 comments

I installed kubectl-curl from the README and ran into an error.

Install:

$ go install github.com/segmentio/kubectl-curl@latest 
go: downloading github.com/segmentio/kubectl-curl v0.1.5

Error:

$ kubectl curl http://{pod}/metrics
* ERROR: malformed URL: parse "http://{pod}/metrics": invalid character "{" in host name

adamdecaf avatar May 16 '22 13:05 adamdecaf

I believe that {pod} is meant to be a placeholder where you put your pod name. it's not parsed and completed for you.

macdabby avatar Jul 20 '22 17:07 macdabby