less than 1 minute read

kubernetes.config.config_exception.ConfigException: Invalid kube-config file. Expected object with name cluster-kjhsdfkjh in /home/charlieb/.kube/config/contexts list

Problem is that there are multiple contexts defined in the kube config file, but the current-context key is not set.

One solution is to set the key to an arbitrary context.