Kubernetes Deep Dive Room

Sign Up Free or Log In to participate!

Kunernetes Scheduling

I have some set of java code and built docker image and deployed on the k8’s cluster. Now i want to schedule this code to run on daily basis at 4 PM CST. What would be best ways to implement?

1 Answers

A kubernetes cron-job is the best way to implement it. You can read more here: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/ 

You can find the examples of how to set it for a particular time here: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#cron-schedule-syntax

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?