Today, I am doing a lab named “Create Cronjobs in Kubernetes” and got an error… and I tried a lot to debug that error but can’t figure out where i am wrong
and after running the command kubectl create -f /tmp/cron.yml… i am getting the error
“error: error parsing /tmp/cron.yml: error converting YAML to JSON: yaml: line 3: mapping values are not allowed in this context”
Please check the script and tell me if i had done some mistake.
Thank you in Advance
i am getting the error
“error: error parsing /tmp/cron.yml: error converting YAML to JSON: yaml: line 3: mapping values are not allowed in this context”
Does that not give you enough clue already?
When asking for help please use proper Markdown (you know what is Markdown right?) to paste code so formatting is preserve. If you paste as text and formatting is lost, I have no idea if your code is incorrect in the first place or pasting as text cause your formatting to be lost. You need to help us so we can then help you.