Cluster import fails and server cannot find requested resource

When you are importing a cluster to your hub cluster, the import can fail if the installed version of the Kubernetes CLI, kubectl, does not meet the minimum requirements.

Symptom

You encounter the following error when you attempt to import a cluster to your hub cluster.

  Error from server (NotFound): the server could not find the requested resource.

Cause

This error can occur when the kubectl version does not meet the minimum requirements. For example, if the version of kubectl on the imported cluster is not the required version.

Resolving the problem

Ensure that you have installed the latest kubectl versions on the cluster that you want to import to your hub cluster.

For more information about installing the latest version of kubectl, see Install and Set Up kubectl Opens in a new tab.