Level 1 task 1 deploy pods in a kubernetes cluster problem

Hello,

I have this simple-pod.yaml file

apiVersion: v1
kind: Pod
metadata: 
 name: pod-ngnix
 app: nginx_app
spec:
  containers:
    - name: nginx-container
    image: nginx:latest

but when I run kubectl apply -f simple-pod.yaml then I see this error :

error: error parsing simple-pod.yaml: error converting YAML to JSON: yaml: line 8: did not find expected '-' indicator

what did I do wrong here ?

I can see it immediately - indentation problem.

Yours:

spec:
  containers:
    - name: nginx-container
    image: nginx:latest

Correct

spec:
  containers:
    - name: nginx-container
      image: nginx:latest

Thanks a lot
First challenge of the kubernetes challenges solved.

@rwobben - Also have a read of this document.