-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubernetes exec fails when called with Python client #15463
Labels
Comments
Have the same problem which is blocking development. Keeping an eye on the PR linked! |
tigrato
added a commit
that referenced
this issue
Sep 9, 2022
This PR extends the Kubernetes Service to support the WebSocket protocol in Kubernetes Exec calls. The Websocket protocol is required so that Kubernetes clients like C#, Python, and Javascript can call the `exec` and `attach` methods. File `remotecommand_websocket.go` was vendored from [kubernetes repo](https://github.com/kubernetes/kubernetes/blob/d5fdf3135e7c99e5f81e67986ae930f6a2ffb047/pkg/kubelet/cri/streaming/remotecommand/websocket.go). Fixes #15463 Future work: - Extend support for `port-forward` - Extend support for `cp`
tigrato
added a commit
that referenced
this issue
Sep 11, 2022
This PR extends the Kubernetes Service to support the WebSocket protocol in Kubernetes Exec calls. The Websocket protocol is required so that Kubernetes clients like C#, Python, and Javascript can call the `exec` and `attach` methods. File `remotecommand_websocket.go` was vendored from [kubernetes repo](https://github.com/kubernetes/kubernetes/blob/d5fdf3135e7c99e5f81e67986ae930f6a2ffb047/pkg/kubelet/cri/streaming/remotecommand/websocket.go). Fixes #15463 Future work: - Extend support for `port-forward` - Extend support for `cp`
tigrato
added a commit
that referenced
this issue
Sep 11, 2022
This PR extends the Kubernetes Service to support the WebSocket protocol in Kubernetes Exec calls. The Websocket protocol is required so that Kubernetes clients like C#, Python, and Javascript can call the `exec` and `attach` methods. File `remotecommand_websocket.go` was vendored from [kubernetes repo](https://github.com/kubernetes/kubernetes/blob/d5fdf3135e7c99e5f81e67986ae930f6a2ffb047/pkg/kubelet/cri/streaming/remotecommand/websocket.go). Fixes #15463 Future work: - Extend support for `port-forward` - Extend support for `cp`
capnspacehook
pushed a commit
that referenced
this issue
Sep 12, 2022
This PR extends the Kubernetes Service to support the WebSocket protocol in Kubernetes Exec calls. The Websocket protocol is required so that Kubernetes clients like C#, Python, and Javascript can call the `exec` and `attach` methods. File `remotecommand_websocket.go` was vendored from [kubernetes repo](https://github.com/kubernetes/kubernetes/blob/d5fdf3135e7c99e5f81e67986ae930f6a2ffb047/pkg/kubelet/cri/streaming/remotecommand/websocket.go). Fixes #15463 Future work: - Extend support for `port-forward` - Extend support for `cp`
tigrato
added a commit
that referenced
this issue
Sep 13, 2022
This PR extends the Kubernetes Service to support the WebSocket protocol in Kubernetes Exec calls. The Websocket protocol is required so that Kubernetes clients like C#, Python, and Javascript can call the `exec` and `attach` methods. File `remotecommand_websocket.go` was vendored from [kubernetes repo](https://github.com/kubernetes/kubernetes/blob/d5fdf3135e7c99e5f81e67986ae930f6a2ffb047/pkg/kubelet/cri/streaming/remotecommand/websocket.go). Fixes #15463
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exec into a pod using python kubernetes client fails.
This happens because Teleport expects a SPDY client while Python kubernetes client uses Websockets.
run pod_exec.py
The text was updated successfully, but these errors were encountered: