When you have limited access (eg: only a specific namespace (~ openshift project) on a kubernetes cluster you may not be able to run kubectl cluster-info.

➜ ~ kubectl cluster-info To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. Error from server (Forbidden): services is forbidden: User "timvw" cannot list resource "services" in API group "" in the namespace "kube-system"

As soon as you run the command in your namespace it will work:

➜ ~ kubectl cluster-info -n spark Kubernetes master is running at https://api.customer.example:443 To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

Originally published at https://timvw.be on January 5, 2021.

--

--