Skip to content

Create Job from Cron job

# Also works for job/<job-name>
kubectl create job --from=cronjob/<cronjob-name> <job-name>

Create Job with generated NameΒΆ

e.g. to prevent naming conflicts

kc create job --from=cronjob/generate-queue --dry-run=client generate-queue-manual -o json | jq 'del(.metadata.name) | .metadata += {"generateName":"generate-queue-manual-"}' | kc create --dry-run=server -f-

Last update : June 6, 2024
Created : March 23, 2023