From 9351b160afe28771470de56eebf127d06aab44cd Mon Sep 17 00:00:00 2001 From: Qiming Date: Thu, 9 Jan 2020 19:55:45 +0800 Subject: [PATCH] Improve CronJob page (#18554) * Improve CronJob page This PR adds a note about the special constraint on CronJob names. The contstraint is not captured in the API specification or anywhere else to my knownledge. * Update content/en/docs/concepts/workloads/controllers/cron-jobs.md Co-Authored-By: Tim Bannister Co-authored-by: Tim Bannister --- content/en/docs/concepts/workloads/controllers/cron-jobs.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/en/docs/concepts/workloads/controllers/cron-jobs.md b/content/en/docs/concepts/workloads/controllers/cron-jobs.md index d1e6449f15..13b304b120 100644 --- a/content/en/docs/concepts/workloads/controllers/cron-jobs.md +++ b/content/en/docs/concepts/workloads/controllers/cron-jobs.md @@ -21,6 +21,11 @@ on a given schedule, written in [Cron](https://en.wikipedia.org/wiki/Cron) forma All **CronJob** `schedule:` times are based on the timezone of the master where the job is initiated. {{< /note >}} +When creating the manifest for a CronJob resource, make sure the name you provide +is no longer than 52 characters. This is because the CronJob controller will automatically +append 11 characters to the job name provided and there is a constraint that the +maximum length of a Job name is no more than 63 characters. + For instructions on creating and working with cron jobs, and for an example of a spec file for a cron job, see [Running automated tasks with cron jobs](/docs/tasks/job/automated-tasks-with-cron-jobs). {{% /capture %}}