Lab7 (Spring Boot/K8S): Spring Batch on Kubernetes — Jobs and CronJobs

Eric Anicet
9 min readJul 15, 2024

Welcome back to our k8s series. In this story, we’ll learn how Kubernetes Jobs and CronJobs work in practice.

· Understanding Jobs in Kubernetes
Kubernetes Job Types
Defining a Job resource
· CronJob in Kubernetes
What are Kubernetes CronJobs
Writing a CronJob spec
How to Create CronJob in Kubernetes
· Spring Batch on Kubernetes
Let’s Code
Testing
· Conclusion
· References

This series of stories shows how to use Kubernetes in the Spring ecosystem. We work with a Spring Boot API and Minikube to have a lightweight and fast development environment similar to production.

--

--