From b378cfd75b93e2e3911679fd392882425c154491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sun, 13 Feb 2022 10:25:04 +0200 Subject: [PATCH] Load Kubernetes incluster config instead --- camtiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camtiler.py b/camtiler.py index 605bf7c..a7eecb2 100755 --- a/camtiler.py +++ b/camtiler.py @@ -19,7 +19,7 @@ from sanic_prometheus import monitor targets = [(j,j) for j in sys.argv[1:]] if not targets: # If no targets are specified, fall back to Kube API - config.load_kube_config() + config.load_incluster_config() v1 = client.CoreV1Api() for i in v1.list_namespaced_service("camtiler", label_selector="component=camdetect").items: app.ctx.frames[i.metadata.name] = None