Skip to content

"kubectl exec" does not work through "kubectl proxy" #32026

Closed
@bronger

Description

I use kubectl v1.3.5 and v1.2.0 in the k8s cluster. If I proxy to the cluster with

$ kubectl proxy --port=8888

I get the following error when trying to execute a command in a container:

$ kubectl --server=http://localhost:8888 exec -ti test-pod bash
error: unable to upgrade connection: <h3>Unauthorized</h3>

Other commands like get pods work fine. The server is contacted by the poxy with https://kubmaster.****.de:443 and a bearer token.

Metadata

Labels

area/kubectlpriority/backlogHigher priority than priority/awaiting-more-evidence.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.sig/cliCategorizes an issue or PR as relevant to SIG CLI.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions