coreos/container-linux-update-operator

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

prathyushach25 opened this issue · 6 comments

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.

What does this have to do with CLUO?

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

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

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

iam geting this error any one can help ..

lucab commented

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.