Determine what resource was not found from “Error from server (NotFound): the server could not find the requested resource”

前端 未结 4 2132
温柔的废话
温柔的废话 2021-02-20 10:34

I\'m running kubectl create -f notRelevantToThisQuestion.yml

The response I get is:

Error from server (NotFound): the server could no

4条回答
  •  甜味超标
    2021-02-20 11:18

    To solve this downgrade the client or upgrade the server. In my case I've upgraded server (new minikube) but forget to upgrade client (kubectl) and end up with those versions.

    $ kubectl version --short
    Client Version: v1.9.0
    Server Version: v1.14.1
    

    When I'd upgraded client version (in this case to 1.14.2) then everything started to work again.

    Instructions how to install (in your case upgrade) client are here https://kubernetes.io/docs/tasks/tools/install-kubectl

提交回复
热议问题