Kubernetes Authentication Kubernetes Authentication Code that is not running inside a kubernetes cluster requires a kubeconfig file to provide the necessary information for authentication. python3 api config.load_incluster_config()