If I am starting a container in Kubernetes and I want to run it as a cronjob, is there a way that I can tell that the containers is ready to be ran? I have a collection of short-lived containers instead of background services. I'd like something that'd test it, prior to run, similar to how readiness probes work for services.

1 Answer 1


The "readiness probe" is for determining whether the pod can receive traffic from the cluster. Cronjobs aren't intended to receive traffic from the cluster, so a readiness probe is pointless.

I'm having trouble correlating your subject line with the content of your question.

It is pointless to check if a container is "ready to run" for a cronjob. The container is not created until the cronjob instance is run according to the schedule.

  • 1
    That's kinda what I figured, the problem is the cronjob may have problems that prevent it from being ready to run. It's not necessarily pointless, to me at least, just definitely not how Kubernetes was designed.
    – Peter Turner
    Commented Dec 7, 2023 at 2:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.