Anticycle
Anticycle

Reputation: 3

Kubernetes kubectl set image: unknown command

I want to use the command kubectl set image to upgrade my deployment as detailed in the kubernetes hello world walkthrough, but whenever I do I get the following error:

Error: unknown command "set" for "kubectl"

My kubernetes version (obtained by running kubectl version) is the following:

Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.5", GitCommit:"25eb53b54e08877d3789455964b3e97bdd3f3bce", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.5", GitCommit:"b0deb2eb8f4037421077f77cb163dbb4c0a2a9f5", GitTreeState:"clean"}

Any help would be really appreciated.

Upvotes: 0

Views: 1532

Answers (2)

Muhammad Ali
Muhammad Ali

Reputation: 119

Furthermore, you can use this answer to get familiarize with the syntax of the set image command:

https://stackoverflow.com/a/71849740/14486701

Upvotes: -1

Jordan Liggitt
Jordan Liggitt

Reputation: 18111

kubectl set was added in 1.3, and your client is 1.2.5

Upvotes: 4

Related Questions