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