Azure Kubernetes : Spring Batch running on Ubuntu 18.04 is getting killed rarely

Viewed 89

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.

Process flow:

  1. kubectl command line command to start the bash script
  2. bash script to start the spring batch
  3. spring batch application to print / generate the CSV file

enter image description here

1 Answers

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 documentation about pod-lifecycle.

Related