armada/armada/k8s.py

13 lines
251 B
Python

from logutil import LOG
from kubernetes import client, config
class K8s(object):
def __init__(self):
'''
Initialize connection to Kubernetes
'''
config.load_kube_config()
self.client = client.CoreV1Api()