Not able to execute run command with valid arguments in Game Of Pods

Hi,

While working on Pento in Game of pods while trying to run the following command:

kubectl run gop-fileserver --image kodekloude/gop-fileserver --dry-run=client -o yaml

  1. It failed and mention that it should be --image=imagevalue and also it was not taking --dry-run with client value. Same is working on myt local machine(MAC) with minikube. Can you please explain me this strange behaviour
  2. after executing the kubectl run gop-fileserver --image=kodekloude/gop-fileserver --dry-run -o yaml, it created a deployment instead of Pod. Then I had to manually change the generated yaml file. Still not able to understand that.

Please help with above 2 points.

Thanks,

Hi

it’s due that in game of pods, the kubernetes cluster is in version 1.14.
So, you have to use kubectl commands with syntax accordingly to this version.
for documentation, use option --help with kubectl

for the image, it’s kodekloud/fileserver not kodekloude/gop-fileserver