What is the difference between the below three declarations in a Pod YAML file:
- containers:
- name: busybox
image: busybox
args:
-sleep
-"1000"
containers:
- name: busybox
image: busybox
command: ["/bin/sh", "-c", "sleep 1000"]
- name: busybox
containers:
- name: busybox
image: busybox
args:
-/bin/sh
--c
-sleep 1000
Also, would 1, 2 and 3 above produce same result?
I edited further. This is really getting confusing. It appears that below two will produce the same result. If so, not sure what is the purpose of each:
command:
- sleep
- "5000"
args:
- sleep
- "5000"