Kubernetes YAML Workloads/Run CronJob template on demand

Instantiate a Job from a CronJob definition.

Section: Jobs and CronJobs

Run CronJob template on demand

bash
bash
kubectl create job --from=cronjob/nightly-report nightly-report-manual

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Jobs and CronJobs
Basic Job YAML
Run a one-time batch task with retries.
OpenIn sheetyamlsame section
Basic CronJob YAML
Schedule recurring batch work.
OpenIn sheetyamlsame section
Basic StatefulSet YAML
Run stateful replicas with stable ordinals.
Basic DaemonSet YAML
Deploy a log collector or node agent everywhere.
HorizontalPodAutoscaler YAML
Scale Deployment based on CPU utilization.
Set rolling update partition
Control StatefulSet ordinal rollout.