segmentio / kubectl-curl

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

BUG: invalid character "{" in host name #13

Open adamdecaf opened 2 years ago

adamdecaf commented 2 years ago

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
macdabby commented 2 years ago

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