-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
API for remote command execution #204
Comments
I was also looking for this. It seems to me that this support has been added only very recently https://github.com/kubernetes/client-go/tree/master/tools/remotecommand |
Do you know how to use remotecommand? I tried to cannibalize this implementation |
Hi, @TimBozeman Do you know how to use remotecommand now? |
@wefine , here are some example using client-go 5.x (master) port-forward: |
That's pretty much what I'm doing. Another example |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
the command will timeout if there is no response to stdout or stderr |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
👍 I think we need an API to simplify access to this functionality, I wish to contribute. Someone can point me where I can start? 😄 |
Add .ci-operator.yaml
In shell, you can use:
kubectl port-forward
to send requests to a pod's endpointkubectl exec
to execute commands in a podHowever, these are not obvious, easy to achieve in client API.
It would be great to provide easy to use API for such functionality.
The text was updated successfully, but these errors were encountered: