title: Spring boot scheduler running cron job for each pod
body: <p><strong>Current Setup</strong></p>
  <p>We have kubernetes cluster setup with 3 kubernetes pods which run spring boot application. We run a job every 12 hrs using spring boot scheduler to get some data and cache it.(there is queue setup but I will not go on those details as my query is for the setup before we get to queue)</p>
  <p><strong>Problem</strong></p>
  <p>Because we have 3 pods and scheduler is at application level , we make 3 calls for data set and each pod gets the response and pod which processes at caches it first becomes the master and other 2 pods replicate the data from that instance.</p>
  <p>I see this as a problem because we will increase number of jobs for get more datasets , so this will multiply the number of calls made.</p>
  <p>I am not from Devops side and have limited azure knowledge hence I need some help from community</p>
  <p><strong>Need</strong></p>
  <p>What are the options available to improve this? I want to separate out Cron schedule to run only once and not for each pod
  1 - Can I keep cronjob at cluster level , i have read about it here <a href="https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/" rel="noreferrer">https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/</a>
  Will this solve a problem?</p>
  <p>2 - I googled and found other option is to run a Cronjob which will schedule a job to completion, will that help and not sure what it really means.</p>
  <p>Thanks in Advance to taking out time to read it.</p>