FahamLah

Commands

kubectl create job

kubectl create job <name> --from=cronjob/<cronjob>

Risk: Careful

What it does

Runs a CronJob's task once, right now, as a new Job.

When to use it

To test a scheduled task without waiting for its time.

Example

$ kubectl create job tally-now --from=cronjob/nightly

Count the plates now, with tonight's recipe.