Skip to content
Permalink
Browse files

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 <tim@scalefactory.com>

Co-authored-by: Tim Bannister <tim@scalefactory.com>
  • Loading branch information
2 people authored and k8s-ci-robot committed Jan 9, 2020
1 parent c03b44b commit 9351b160afe28771470de56eebf127d06aab44cd
Showing with 5 additions and 0 deletions.
  1. +5 −0 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 %}}

0 comments on commit 9351b16

Please sign in to comment.
You can’t perform that action at this time.