<p>Pods in the Kubernetes cluster are still running after the job is done.
My assumption is that there might be a chance that Kubernetes re-schedule the pods to the other nodes and job was done on those nodes that is why it is showing Job done but how Spring will monitor re-schedule pods that is why it will again re-deploy the pods for the completion of the job.</p>
<p>So my question is, Do spring monitor the pods after re-scheduling the pods to other nodes</p>
<p>Or</p>
<p>If my assumption is pointless can you please suggest a possible solution?</p>

rebel_roar
<p>Re-Scheduling Pods is at a higher level of abstraction where Spring runs. Spring does not (and should not) monitor or (re)schedule pods. Make sure your Spring application context is correctly closed after your batch job is done.</p>
