<p>I have a Spring batch 2.1.x application deployed on Azure Kubernetes. Base image is Ubuntu 18.04. I see that the process is getting killed at times.</p>
<p><strong>Process flow:</strong></p>
<ol>
<li>kubectl command line command to start the bash script</li>
<li>bash script to start the spring batch</li>
<li>spring batch application to print / generate the CSV file</li>
</ol>
<p><a href="https://i.stack.imgur.com/O6UJT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O6UJT.png" alt="enter image description here" /></a></p>

One Developer
<p>It's perfectly normal in a Kubernetes environment that pods are shutdown sometimes and that replacement pods are scheduled on another worker node. This happens all the time due to node maintenance or to balance the workload. You can read more about this in the <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/" rel="nofollow noreferrer">documentation about pod-lifecycle</a>.</p>
