jamiehannaford / what-happens-when-k8s

🤔 What happens when I type kubectl run?
4.87k stars 514 forks source link

Fix kubectl syntax example #47

Closed welkson closed 2 years ago

welkson commented 2 years ago

fix typo on example:

kubectl run nginx --image=nginx --replicas=3

error: unknown flag: --replicas

Correct syntax:

kubectl create deployment nginx --image=nginx --replicas=3

kubectl version:

kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.3", GitCommit:"816c97ab8cff8a1c72eccca1026f7820e93e0d25", GitTreeState:"clean", BuildDate:"2022-01-25T21:25:17Z", GoVersion:"go1.17.6", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.6+k3s1", GitCommit:"3228d9cb9a4727d48f60de4f1ab472f7c50df904", GitTreeState:"clean", BuildDate:"2022-01-25T01:14:20Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/arm64"}