Skip to main content

I followed the docs and get Forbidden, CRDs missing, or no resources found. What is wrong?

Syself support For release

The error the server doesn't have a resource type "clusters" means kubectl points at one of your own clusters instead of the management cluster. The Cluster API resource types (CRDs) that describe your clusters, such as Cluster and Machine, exist only on the management cluster. Switch back with export KUBECONFIG=<path>/management-cluster-kubeconfig.yaml and check with kubectl config current-context.

The other two messages:

  • No resources found in org-<company-name> namespace is not an error. You have not created a cluster yet. To create one, start with the Cluster Configurator.
  • Forbidden means the login worked, but your user has no role, has the read-only role, or the command ran outside org-<company-name>. Go through the causes in Why do we get Forbidden on the management cluster?

You work with two kinds of kubeconfig. One is for the management cluster, where you create and change clusters. The other is for a cluster you created, where you deploy your apps. If you are not sure which one a command needs, read Management and workload clusters. To check your setup, compare your management cluster kubeconfig with the template in Access the management cluster.

Still stuck?

Prepare your case, then email us.