We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07a62b1 commit 1d5dbadCopy full SHA for 1d5dbad
1 file changed
dashboard/api.py
@@ -5,7 +5,10 @@
5
6
from kubernetes import client, config
7
8
-config.load_kube_config()
+try:
9
+ config.load_kube_config()
10
+except:
11
+ config.load_incluster_config()
12
kube = client.CoreV1Api()
13
14
parent_app = None
0 commit comments