You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: 10.0.0.1
Setting maxsize of HTTPConnectionPool (or equivalent object) to something higher would help with this, and with connection re-use help performance too (I am hoping!). I can't seem to find a way to set this though!
kubernetes.config.configuration is not auto generated anymore, you can edit it. Please also remove the message that it said it is auto-generated. Thanks for your contribution.
kubernetes.config.configuration is not auto generated anymore, you can edit it. Please also remove the message that it said it is auto-generated. Thanks for your contribution.
@mbohlool@yuvipanda how can you edit this? I have this setting because I'm threading grabbing pod information and ran into the connection pool issue above:
you need to pass your client_config to client.CoreV1Api() call otherwise it will use the default one which is localhost. it should be something like client.CoreV1Api(config=client_config)
Activity
yuvipanda commentedon Jul 9, 2017
Ideally, it'll be a param to kubernetes.config.configuration that can be tuned.
yuvipanda commentedon Jul 9, 2017
However, the kubernetes.config.configuration object says it is autogenerated - but am unable to find where it is autogenerated from?
mbohlool commentedon Jul 9, 2017
kubernetes.config.configuration is not auto generated anymore, you can edit it. Please also remove the message that it said it is auto-generated. Thanks for your contribution.
yuvipanda commentedon Jul 9, 2017
Thanks @mbohlool! kubernetes-client/python-base#18 should do the trick I think.
s1113950 commentedon Sep 28, 2018
@mbohlool @yuvipanda how can you edit this? I have this setting because I'm threading grabbing pod information and ran into the connection pool issue above:
if I then call
pods = v1.list_namespaced_pod(namespace)I get an error where it hitslocalhostrather than using my kubeconfig.I checked out the code here: https://github.com/kubernetes-client/python-base/blob/master/config/kube_config.py#L522 and thought that if I just pass in the
client_configurationwith the changed pool size it'd use that, but I'm overwriting something I don't mean to.mbohlool commentedon Sep 28, 2018
you need to pass your
client_configtoclient.CoreV1Api()call otherwise it will use the default one which is localhost. it should be something likeclient.CoreV1Api(config=client_config)s1113950 commentedon Oct 1, 2018
Thanks for the help!