Published October 21, 2026
How to Monitor Kubernetes CronJobs
A CronJob does not run your command. It creates a Job on a schedule, and that Job creates a Pod. When the Pod never starts, or the controller skips the schedule, the only record is a Job, a Pod, or an Event on the cluster. Nothing leaves the cluster unless you send it.
This guide is the failure modes that show up in real clusters, a ping that runs only after the command exits 0, and the kubectl commands that show which of those modes you hit. The short manifest is also on the Kubernetes docs page.
If the schedule is an Argo CronWorkflow rather than a batch/v1 CronJob, the workflow-controller creates a Workflow from workflowSpec. That page is monitoring Argo CronWorkflows.
Behavior below is from the Kubernetes CronJob documentation (stable since v1.21, time zones stable since v1.27).
Why a missed CronJob stays quiet
The schedule is a template, and it is approximate
.spec.schedule is five-field cron, plus the names @yearly, @monthly, @weekly, @daily, @hourly, and ? as another way to write *. Kubernetes can create two Jobs for one time, or none. The Job should be safe to run twice.
.spec.timeZone is an IANA name, for example Etc/UTC. If you omit it, the kube-controller-manager uses its own local zone. That is often UTC. It is not a promise. Putting CRON_TZ= or TZ= inside .spec.schedule is rejected. The API server will not save the CronJob.
The CronJob name should be a DNS label of at most 52 characters. The controller appends 11 characters, and a Job name cannot be longer than 63.
startingDeadlineSeconds drops the run
.spec.startingDeadlineSeconds is optional. It is how late, in whole seconds, a Job may still be created after its scheduled time. After that, this occurrence is skipped. Later ones are still scheduled. Kubernetes counts a skipped occurrence as a missed Job.
If the field is unset, there is no deadline. A controller that was down can still create the Job when it comes back, subject to the 100-miss rule below.
The controller looks about every 10 seconds. A deadline under 10 seconds may never fire, because the check itself is coarser than the deadline.
More than 100 missed schedules
For each CronJob, the controller counts how many schedules were missed from the last scheduled time until now. If that count is over 100, it does not start the Job and logs:
too many missed start times. Set or decrease .spec.startingDeadlineSeconds or check clock skew
Kubernetes documents this as catch-up scheduling. It does not mean the CronJob is deleted or permanently disabled. It means this catch-up does not start a Job.
The count includes schedules skipped because concurrencyPolicy: Forbid still had a Job running. If startingDeadlineSeconds is set, the controller only counts misses inside that window, which keeps the number small.
The documentation's example: a CronJob every minute from 08:30, with no deadline. The controller is down from 08:29 to 10:21. More than 100 minutes were missed, so the Job does not start. The same outage with startingDeadlineSeconds: 200 starts a Job at 10:22, because only the last 200 seconds are counted (three misses, not a hundred).
A clock skew between the controller and the apiserver produces the same log line. The message says to set or decrease startingDeadlineSeconds, or to check the clocks.
concurrencyPolicy
Allowis the default. Overlapping Jobs all run.Forbidskips the new run if the previous Job has not finished. When that Job does finish,startingDeadlineSecondsstill applies, so the skipped time may already be too late to start.Replacecancels the running Job and starts a new one.
Forbid is what you want for a backup that must not overlap. It is also how one stuck Job silences every later schedule. The skip is a missed schedule. It counts toward the 100. flock, a second replica that is not a CronJob, and the overlap ping are in prevent overlapping cron jobs.
suspend
.spec.suspend: true stops the controller from starting later Jobs. Jobs that already started keep running. The field defaults to false. People set it while debugging and leave it.
Schedules that pass while the CronJob is suspended count as missed. When you set suspend back to false and there is no starting deadline, Kubernetes schedules those missed Jobs immediately.
backoffLimit does not cover a Pending Pod
The Job's .spec.backoffLimit defaults to 6. With restartPolicy: Never, each failed Pod counts. With restartPolicy: OnFailure, the container is restarted in the same Pod. A CronJob Pod cannot use Always.
A Pod that stays Pending has not failed. Unschedulable Pods and ImagePullBackOff stay in that waiting state, so backoffLimit does not move, and the Job stays active. With Forbid, every later schedule is skipped for as long as that Job exists.
.spec.activeDeadlineSeconds on the Job (not on the CronJob) is the clock that ends this. Once the Job has been active that many seconds, the controller stops its Pods and marks the Job failed with reason DeadlineExceeded. That applies to a Job stuck Pending, not only to a Job that is running.
History is short
.spec.successfulJobsHistoryLimit defaults to 3. .spec.failedJobsHistoryLimit defaults to 1. Set either to 0 and Kubernetes keeps none. The failed Job you wanted to inspect may already be gone. While you are debugging, raise the failed limit.
Ping only after the command exits 0
CronNudge has no cluster probe. The container has to call https://cronnudge.com/ping/<check-id> after the work succeeds. GET, POST, and HEAD all count. The response is text/plain ok with Cache-Control: no-store. Put the URL in a Secret. The ping id is not the badge id. The badge stays off until you opt in. See the badge and the Kubernetes docs.
sh -c does not enable set -e. If you write the command and then curl on the next line, a failed command still pings success. set -eu stops the script on a failed command and on an unset variable, so the curl runs only when the command exits 0.
The image has to contain curl or wget. The busybox image in the Kubernetes CronJob docs has wget, not curl. A distroless image has neither.
curl 7.52.0 and newer accepts --retry-connrefused. --retry-all-errors needs curl 7.71.0 (June 2020) or newer. --max-time caps one transfer. --retry-max-time caps the whole retry window, so a dead network cannot hold the Job open.
apiVersion: batch/v1
kind: CronJob
metadata:
name: nightly-export
spec:
schedule: "17 3 * * *"
timeZone: "Etc/UTC"
concurrencyPolicy: Forbid
startingDeadlineSeconds: 600
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
jobTemplate:
spec:
backoffLimit: 2
activeDeadlineSeconds: 1800
template:
spec:
restartPolicy: Never
containers:
- name: export
image: registry.example.com/export:1.4.2
env:
- name: CRONNUDGE_URL
valueFrom:
secretKeyRef:
name: cronnudge
key: url
command: ["/bin/sh", "-c"]
args:
- |
set -eu
/usr/local/bin/export.sh
curl -fsS --retry 5 --retry-connrefused --retry-delay 2 \
--connect-timeout 5 --max-time 10 --retry-max-time 30 \
--output /dev/null "$CRONNUDGE_URL"
Create the Secret from a file you do not commit:
kubectl create secret generic cronnudge \
--from-literal=url='https://cronnudge.com/ping/YOUR_CHECK_ID'
BusyBox wget, for an image that has wget and not curl. -t 5 is five tries, -T 10 is a 10 second timeout:
set -eu
/usr/local/bin/export.sh
wget -q -O /dev/null -T 10 -t 5 "$CRONNUDGE_URL"
If curl or wget fails after the work succeeded, set -e marks the Job failed. CronNudge also sees no ping and alerts after grace. That is two signals for one problem, which is what you want while you are finding out the ping cannot leave the cluster. A NetworkPolicy that blocks egress to the internet will do that. The Job logs show the curl error. The CronJob events do not.
Optional start and fail pings
CronNudge accepts /start before the work and /fail when the command exits non-zero. /fail alerts immediately instead of waiting out the grace period. A Pod that never starts, because it is Pending or the schedule was skipped, never reaches either URL. The missing success ping is the backstop. One alert when the check is down, and one when it recovers. Run tracking and a max runtime are in assertions, runs, and agents.
set -eu
curl -fsS --retry 3 --retry-connrefused --retry-delay 2 --max-time 10 --output /dev/null "$CRONNUDGE_URL/start"
if /usr/local/bin/export.sh; then
curl -fsS --retry 3 --retry-connrefused --retry-delay 2 --max-time 10 --output /dev/null "$CRONNUDGE_URL"
else
curl -fsS --retry 3 --retry-connrefused --retry-delay 2 --max-time 10 --output /dev/null "$CRONNUDGE_URL/fail"
exit 1
fi
The if is required around the command once you have already turned set -e off for the failing branch. Do not ping the success URL from both branches.
Point the check at the same schedule
Use the same five-field expression and the same time zone as .spec.timeZone. If the CronJob has no timeZone, find the controller's zone before you copy the expression into CronNudge. @daily in Kubernetes is 0 0 * * *.
Default grace is 5 minutes. The form offers none, 1 minute, 5 minutes, 15 minutes, and 1 hour. The API accepts any whole number of seconds from 0 through 7 days. A daily export with startingDeadlineSeconds: 600 can start 10 minutes late and still be inside a 15 minute grace. An every-minute CronJob needs Pro. Free's shortest interval is 5 minutes.
Free is 10 checks, with email and one Slack or Discord channel. Pro is $12 a month for 100 checks, a 1 minute minimum, signed webhooks, and the API. There is no yearly price.
kubectl when it did not run
kubectl get cronjob nightly-export
kubectl describe cronjob nightly-export
kubectl get cronjob nightly-export -o jsonpath='suspend={.spec.suspend}{"\n"}last={.status.lastScheduleTime}{"\n"}ok={.status.lastSuccessfulTime}{"\n"}'
kubectl get jobs --sort-by=.status.startTime
kubectl get pods --selector=job-name=nightly-export-29501234
kubectl logs job/nightly-export-29501234
kubectl get events --field-selector involvedObject.name=nightly-export --sort-by=.lastTimestamp
describe is the one to read first. It prints suspend, the schedule, the active Jobs, and the recent events, including the too-many-missed-times message when the controller logged it.
lastScheduleTime moves when a Job object is created. It does not mean the container ran. lastSuccessfulTime moves when a Job succeeds. A Pending Pod updates neither success time. suspend true with an old lastSuccessfulTime is the CronJob you paused and forgot.
job-name is the label on the Pods of that Job, not on the CronJob. Replace nightly-export-29501234 with the Job name from kubectl get jobs. Events for the Job use the Job's name in involvedObject.name. Events for the CronJob use the CronJob's name.
If the Job exists and the Pod is Pending, kubectl describe pod shows the scheduler reason: insufficient cpu, a node selector, a taint, or an image pull. backoffLimit will still look unused. activeDeadlineSeconds is what ends that Job.
FAQ
Does Kubernetes alert when a CronJob fails? No. A failed Job stays in the cluster until the history limit deletes it. The default is one failed Job. You get an alert only if something sends one.
What does "too many missed start times" mean?
The controller counted more than 100 missed schedules since the last scheduled time and did not start a catch-up Job. It is not a permanent disable. Set or lower startingDeadlineSeconds, or fix clock skew, which is what the log line says. With a deadline set, only misses inside that window are counted.
Why does concurrencyPolicy Forbid stop later runs?
Forbid will not start a new Job while the previous one is still active. A Pod stuck Pending keeps the Job active, and it does not count toward backoffLimit. Later schedules are skipped until that Job finishes or activeDeadlineSeconds ends it.
What happens if I leave suspend set to true?
The controller does not start new Jobs. Jobs that already started keep going. Those skipped times count as missed. Turning suspend off with no startingDeadlineSeconds starts the missed Jobs immediately.
Does the ping run if the container image has no curl? No. The script fails when it reaches curl, or it never pings. Use an image that has curl or wget, or the BusyBox wget form above. Distroless images need a binary you add yourself.
Can CronNudge see that the Pod is Pending? No. CronNudge only sees HTTP pings. A Pod that never starts sends none, and the check alerts after grace. That is the point of the success-only ping.
The schedule, the deadline, and the Pod are all yours to debug with kubectl. The ping is the part that still fires an alert when nobody runs those commands. Create the check, or compare the expression on the cron tool. Related: crontab not running, cron expression examples, GitHub Actions schedules, and Celery beat when the scheduler is a separate Deployment.