This is more question for developers ... Is there any diff between : containers: . . .

Laslo Pastor:
this is more question for developers …
Is there any diff between :
containers:

  • args:
    • echo
    • Hello World

and
containers:

  • args:
    • echo “Hello World”

and what is correct ?

Mohamed Ayman:
Please refer to this:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/

Raja K:
@Laslo Pastor since you didnt specify a command field, it will pass the “echo” “Hello World” stitched together to the entrypoint defined in the image. Did you see any difference in terms of execution between the two?

If you supply only args for a Container, the default Entrypoint defined in the Docker image is run with the args that you supplied.

Also one thing to note here is the yaml structure of representing arrays. Detailed here,
https://stackoverflow.com/a/33136212