Cron Job not able to start pod with configmap settings

Posted on

I am trying to run a cron job that starts up a container that has required envirnment variables loaded through configuration mapping.
The Pod comes up using ocp_deploy.yml with no errors. ocp-deploy.yml has the configuration mapping included.
When trying to run it as a cron job, it does not start up because it can not find the configuration map. It looks to me like it is not loading the configuration mapping and I do not see a way to set it in the cron job. Is there a way to pass configuration mapping to a cron job? Any other hacks for getting around it?

Responses