astefanutti / kubebox

⎈❏ Terminal and Web console for Kubernetes
http://astefanutti.github.io/kubebox
MIT License
2.15k stars 142 forks source link

Fix remote execution into container #27

Closed gheinrich closed 5 years ago

gheinrich commented 5 years ago

Use HTTP POST instead of HTTP GET when hitting the /api/v1/namespaces/${namespace}/pods/${pod}/exec endpoint.

This aligns with kubectl version v1.12.2 behaviour.

Fixes #26

gheinrich commented 5 years ago

@astefanutti you might want to verify this on your end. In particular, being a k8s noob I'm unsure whether this relates to the specific configuration of my k8s cluster. In the API docs I saw support for both POST and GET on the exec endpoint (?).

astefanutti commented 5 years ago

@gheinrich Thanks. It seems POST is the preferred way, though I'll do some testing on my k8s setups.