From fa5e31cf7c936d18b3f0fe04cf3b27a380575e23 Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Thu, 11 Nov 2021 21:54:03 +0100 Subject: [PATCH] Add link to example for in-cluster config --- k8s-job-manager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/k8s-job-manager.py b/k8s-job-manager.py index 28b40b2..a532a94 100644 --- a/k8s-job-manager.py +++ b/k8s-job-manager.py @@ -20,8 +20,11 @@ def main(): random.seed() random.shuffle(jobs) - # TODO: change to work inside the cluster + # TODO: change to work inside the cluster like shown in + # https://github.com/kubernetes-client/python/blob/master/examples/in_cluster_config.py#L55 + # kubernetes.config.load_kube_config(context='giantswarm-5jka7') + v1client = kubernetes.client.CoreV1Api() k8sclient = kubernetes.client.ApiClient()