title: how to run cron jobs inside container in background, when i am having a nodejs application as endpoint in foreground?
body: <p>We are following a microservice based architecture, where I deploy my application inside a kubernetes cluster by helm package. I have a nodejs application which queries cron jobs from database and should add these jobs to crontab file inside the same container.</p>
  
  <p>So when I expose my container as a nodejs app in a port, I will  make a add job request and these jobs are formatted to cron job type, and these entries needed to be added to crontab and execute these jobs in background.</p>
  
  <p>Can this be achieved?</p>
  
  <p>If yes, on what base image should I build my node application?</p>
  
  <p>And what are the steps I should include to my docker file, to also verify my cron executed logs, run both node application and cron jobs?</p>