Openshift yaml : Error: found character that cannot start any token

Sathish Kumar
May 13, 2021

Yesterday, it was a worst day as I had spent my complete day for silly issue with my openshift.yaml file.

PROBLEM:

During the deployment of my app in openshift, I used to get the error ‘found character that cannot start any token’

I just added one additional environment variable like others it has set before.

Looking at the openshift.yaml file, it looks better and didn't find any issues. But I keeps on getting the above error. I frustrated :) and found the root cause finally.

SOLUTION:

Remove all Tabs in openshift.yaml file. Use spaces for formatting.

Enjoy debugging :)

--

--