0

My GCP kubernetes cluster version is: Master version 1.15.7-gke.2

When I run in the cloud shell kubectl rollout restart

I am getting the error: unknown command "restart"

What might be the reason?

update
kubectl version resulted: v1.15.7-gke.2
kubectl version --client resulted: v1.15.7

fatnj@cloudshell:~ (pop)$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.7", GitCommit:"6c143d35bb11d74970e7bc0b6c45b6bfdffc0bd4", GitTreeState:"clean", BuildDate:"2019-12-11T12:42:56Z", GoVersion:"go1.12.12", Compiler:"gc", Platform:"linux/amd64"}
fatnj@cloudshell:~ (pop)$ kubectl rollout restart
error: required resource not specified

Thanks

fatNjazzy
  • 69
  • 3
  • 11

1 Answers1

2

kubectl rollout restart doesn't work beacuse you client version is v1.13.11. restart command was added in 1.15 as states in changelog for v1.15:

Create a new kubectl rollout restart command that does a rolling restart of a deployment.

You can find kubernetes client binaries for you server version here.

Download it, unpack and use.

And always try to make sure your server and client versions match.

Matt
  • 528
  • 3
  • 7