Add link to example for in-cluster config

This commit is contained in:
Marian Steinbach 2021-11-11 21:54:03 +01:00
parent 356f0bbca9
commit fa5e31cf7c
1 changed files with 4 additions and 1 deletions

View File

@ -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()