1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [CronJob](<https://delaparra-services.nl/knowledge-hub/cronjob>)

  

Category: Kubernetes 

# CronJob

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is CronJob?

 

CronJob: Creates Jobs on a cron schedule. The Kubernetes equivalent of crontab — for backups, reports, and periodic cleanup. A CronJob in Kubernetes runs a task on a schedule, like the classic crontab on Linux servers. It creates a Job at the set times, such as ` 0 3 * * * ` for every night at three.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about CronJob

  

### How is CronJob used in practice?

 

Typical uses are backups, report generation, cleaning up old data and syncing with external systems. Each run gets its own pod, which starts, does its work and stops.

    

### What should you keep in mind with CronJob?

 

Set ` concurrencyPolicy: Forbid ` if two runs must never overlap, for example a backup that takes longer than expected. Keep a few finished jobs with ` successfulJobsHistoryLimit ` so you can read their logs. And monitor them. A CronJob that silently fails every night looks exactly like one that works, until the day you need that backup.

    

### What does an example of CronJob look like?

 

```
apiVersion: batch/v1 kind: CronJob metadata: name: nightly-backup spec: schedule: "0 2 * * *" jobTemplate: spec: template: spec: restartPolicy: OnFailure containers: - name: backup image: backup-tool:2.0
```

 

## At a glance

   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Kubernetes terms

 

- [apply](<https://delaparra-services.nl/knowledge-hub/apply>) 
- [ClusterIP](<https://delaparra-services.nl/knowledge-hub/clusterip>) 
- [ConfigMap](<https://delaparra-services.nl/knowledge-hub/configmap>) 
- [DaemonSet](<https://delaparra-services.nl/knowledge-hub/daemonset>) 
- [delete](<https://delaparra-services.nl/knowledge-hub/delete>) 
- [Deployment](<https://delaparra-services.nl/knowledge-hub/deployment>)

 

[All terms starting with C](<https://delaparra-services.nl/knowledge-hub#letter-c>)

 

## Skills

 

- ### Kubernetes Manifest Generator

 

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

 [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>) 
- ### Helm Chart Scaffolding

 

Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.

 [View skill](<https://delaparra-services.nl/skills/helm-chart-scaffolding>) [Download zip](<https://delaparra-services.nl/skills/helm-chart-scaffolding/download>) 
- ### GitOps Workflow

 

Implement GitOps workflows with ArgoCD and Flux for automated, declarative Kubernetes deployments with continuous reconciliation. Use when implementing GitOps practices, automating Kubernetes deployments, or setting up declarative infrastructure management.

 [View skill](<https://delaparra-services.nl/skills/gitops-workflow>) [Download zip](<https://delaparra-services.nl/skills/gitops-workflow/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/cronjob/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) 
- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/cronjob)
