From ba1443def5fa2029961d2326b93875e76a914d63 Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Tue, 31 Jan 2017 17:35:26 +0100 Subject: [PATCH] increase read timeout to 15s --- kube_ops_view/kubernetes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube_ops_view/kubernetes.py b/kube_ops_view/kubernetes.py index 72c9032..c80a81e 100644 --- a/kube_ops_view/kubernetes.py +++ b/kube_ops_view/kubernetes.py @@ -50,7 +50,7 @@ def map_container(cont: dict, pod: dict): def request(cluster, path, **kwargs): if 'timeout' not in kwargs: # sane default timeout - kwargs['timeout'] = 5 + kwargs['timeout'] = (5, 15) if cluster.cert_file and cluster.key_file: kwargs['cert'] = (cluster.cert_file, cluster.key_file) return session.get(urljoin(cluster.api_server_url, path), auth=cluster.auth, verify=cluster.ssl_ca_cert, **kwargs)