Modify pod yaml

Refer: https://www.udemy.com/course/certified-kubernetes-application-developer/learn/lecture/12308344#questions at 2:27 minute.
Create a pod with the ubuntu image to run a container to sleep for 5000 seconds. Modify the file ubuntu-sleeper-2.yaml.
Given Hint:
Set the command option to [‘sleep’, ‘5000’]. Answer file at: /var/answers/answer-ubuntu-sleeper-2.yaml

But
I tried master $ cat ubuntu-sleeper-2.yaml
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-sleeper-2
spec:
containers:

  • name: ubuntu
    image: ubuntu
    command: “sleep”
    args: “5000”

It didnt work
However this works

master $ cat /var/answers/answer-ubuntu-sleeper-2.yaml
apiVersion: v1
kind: Pod
metadata:
name: ubuntu-sleeper-2
spec:
containers:

  • name: ubuntu
    image: ubuntu
    command:
    • “sleep”
    • “5000”

what am I missing as per the lecture

@mmumshad: Can you please explain this?

if it’s a command shouldn’t it be [“sleep”,“5000”]

@mailtonskiran Issue is with your ubuntu-sleeper-2.yaml .
command and args keys expect array value where as in your pod_yaml you have passed single string value. Please pass values as array and it will work. For example

apiVersion: v1
kind: Pod
metadata:
 name: ubuntu-sleeper-2
spec:
 containers:
  - name: ubuntu
    image: ubuntu
    command:
     - “sleep”
    args:
     - “5000”