From 933b8fc22625334416601df7204bbf6289d816c6 Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Thu, 3 May 2018 09:30:35 +0200 Subject: [PATCH] #164 fix in-cluster config (#165) --- kube_ops_view/cluster_discovery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kube_ops_view/cluster_discovery.py b/kube_ops_view/cluster_discovery.py index 250c23b..d9ca66e 100644 --- a/kube_ops_view/cluster_discovery.py +++ b/kube_ops_view/cluster_discovery.py @@ -75,7 +75,8 @@ def __init__(self, api_server_urls: list): # => assume default kubectl proxy URL cluster = Cluster(generate_cluster_id(DEFAULT_CLUSTERS), DEFAULT_CLUSTERS) else: - config = kubernetes.client.configuration + # "load_incluster_config" set defaults in the config class + config = kubernetes.client.configuration.Configuration() cluster = Cluster( generate_cluster_id(config.host), config.host,