oc command errors in MicroShift

Not all OpenShift CLI (oc) commands are relevant for MicroShift deployments. When you use oc to make a request call against an unsupported API, the oc binary usually generates an error message about a resource that cannot be found.

  • For example, when you run the following new-project command:

    $ oc new-project test

    The following error message can be generated:

    Error from server (NotFound): the server could not find the requested resource (get projectrequests.project.openshift.io)
  • When you run the get projects command, another error can be generated as follows:

    $ oc get projects

    The following error message can be generated:

    error: the server doesn't have a resource type "projects"