-
Notifications
You must be signed in to change notification settings - Fork 3.3k
v1.list_pod_for_all_namespaces(watch=False) takes too long #1231
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
I think the main difference is the encoding. The python client uses json and kubectl uses protobuf. Ref #166 |
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. |
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. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened (please include outputs or screenshots):
In our cluster, there are about 900 pods in total。use v1.list_pod_for_all_namespaces(watch=False),takes about three seconds,use api_instance.list_deployment_for_all_namespaces,takes about one seconds。in cluser,use kubectl get pods --all-namespaces,takes about one seconds
What you expected to happen:
Can the list pod interface be optimized ???
How to reproduce it (as minimally and precisely as possible):
in your cluser,try it
Anything else we need to know?:
no more
Environment:
kubectl version
):v1.10.5
ubuntu18.04
python --version
)3.6
pip list | grep kubernetes
)kubernetes 11.0.0
The text was updated successfully, but these errors were encountered: