OpenShift 3.11 Running command in Deployment Config

226 Views Asked by At

I am attempting to run a command to create a symbolic link when the deployment is run. I have thus added the command: and args: blocks to the YAML. An error is shown about indentation underneath the args block.

minishift/OpenShift 3.11 GUI showing error

Hovering over the error shows the following:

enter image description here

How can I correct the YAML?

1

There are 1 best solutions below

1
On

Thanks for the information Will.

Removing the >- and moving the image address did correct the blue lines. This didn't resolve the issue however following on from your advice I realised the issue was a rookie YAML programming mistake. I was using spaces rather than tabs for indentation. Correcting this and using your suggestion resulted in this

enter image description here