coreos / container-linux-update-operator

A Kubernetes operator to manage updates of Container Linux by CoreOS
Apache License 2.0
209 stars 49 forks source link

error: error parsing pod.yaml: error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context #189

Closed prathyushach25 closed 4 years ago

prathyushach25 commented 5 years ago

Hi, I am trying to create a pod on kubernetes. I don't know why for some reason I am getting this error ERROR:: error: error parsing pod.yaml: error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context as far as I have cross checked my yaml file I found it correct. Please suggest me for any changes to be made. Here is my yaml file pod.yaml apiVersion: v1 kind: pod metadata: name: pod-example spec: containers: -name: pod-example image: "ubuntu:14.04" command: ['sh', '-c', 'echo Hello Kubernetes! && sleep 3600'] restartpolicy: Never

Thanks in advance.

dghubble commented 5 years ago

What does this have to do with CLUO?

prathyushach25 commented 5 years ago

sorry, I did not understand. could please explain me further more @dghubble

dghubble commented 5 years ago

The question is not related to container-linux-update-operator. Please close.

Ravibabu547 commented 4 years ago

error: error parsing https://github.com/justmeandopensource/kubernetes/blob/master/dashboard/dashboard.yaml: error converting YAML to JSON: yaml: line 118: mapping values are not allowed in this context

Ravibabu547 commented 4 years ago

iam geting this error any one can help ..

lucab commented 4 years ago

Everybody randomly ending up here via search engine: the error is a generic YAML parsing issue; please double-check your YAML document with a linter, as it is likely just a syntax error.

Closing this ticket and locking it to prevent attracting other unrelated follow-ups.