-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Unable to exec in a pod using kubernetes-cli in Python even after using stream api #842
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
Comments
Is there any chance to get RC of the command executed in POD? |
I have the same issue also |
@avisrivastava254084 The official documentation is auto-generated from the spec and in many places are not helpful at all (ref: #601). In your code I see that you try to pass output from the api_instance.connect_post_namespaced_pod_exec to the
(I removed brackets only). You can also check this example: https://github.com/kubernetes-client/python/blob/master/examples/exec.py @phracek I'am afraid getting the RC is currently not supported by this library. Could you create a separate issue for this. |
Issues go stale after 90d 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. |
@avisrivastava254084 Did you find the solution? |
@EricCat |
Please refer to this example for running exec https://github.com/kubernetes-client/python/blob/master/examples/pod_exec.py Getting the RC is fixed in #956 /close |
I'm getting the same error while following the examples.
|
I am following the official documentation and to my surprise, the request just won't work.
I tried reading multiple questions and answers but in vain. I had set
stream
api to use but the error did not go away.My code is:
I want the command to run but instead, I am facing an error:
My SSL client is updated, I am using Python3.7 from the
brew
on a MacOS.Also used on Ubuntu, same error.
The text was updated successfully, but these errors were encountered: