async def METHOD_NAME(self, cluster):
    """
    Load configuration for connecting to kubernetes. Depending on how this application is run we need to
    support two ways of configurations.
    :param cluster: Either 'in' if this app is run as a pod in a kubernets cluster, or 'local' (or something
    else) to connect to a local cluster on your machine.
    """
    self.apps_v1 = client.AppsV1Api()
    try:
        if cluster == 'in':
            config.load_incluster_config()
        else:
            await config.load_kube_config()
    except ConfigException as e:
        asyncio.get_event_loop().stop()
        logging.exception('Could not connect to cluster: %s', e)
        raise Exception('Could not connect co cluster', e)