Kubectl versions

[Solved] Kubernetes create deployment failed with error

Kubernetes create deployment failed with error as shown below

~ ᐅ kubectl create deployment myserver --image=asia.gcr.io/who-dev/backendserver
Error from server (NotFound): the server could not find the requested resource

I have recently upgraded my minikube version and forgot to update my kubectl version as well. So, it looked like this before update.

~ ᐅ kubectl version --short
Client Version: v1.8.11
Server Version: v1.18.3

We can see that client version is behind server. After upgrade it looked like this.

~ ᐅ kubectl version --short
Client Version: v1.18.3
Server Version: v1.18.3

Both version match. After this try to recreate kubernetes deployment.

~ ᐅ kubectl create deployment myserver --image=asia.gcr.io/who-dev/backendserver
deployment.apps/myserver create

Leave a Reply

Your email address will not be published. Required fields are marked *