cronjobspec¶
Feature state: 1.0.0
cronjobspec
value in Kubedeploy defines CronJob specific parameters.
Note
cronjobspec
will be only taken into account if the deploymetMode
is set to Cronjob
.
Available values for cronjobspec
in Kubedeploy:
cronjobspec:
schedule: "0 * * * *" # (1)
restartPolicy: OnFailure # (2)
command: [] # (3)
args: [] # (4)
backoffLimit: 3 # (5)
startingDeadlineSeconds: 180 # (6)
successfulJobsHistoryLimit: 3 # (7)
failedJobsHistoryLimit: 1 # (8)
concurrencyPolicy: "" # (9)
- Define cronjob schedule, for details see reference
- Define restart policy for cronjob if deploymentMode=Cronjob.
- Define command for cronjob
- Define args for cronjob
- Define job backoff limit, see reference
- (optional) Define deadline for starting the job, see reference
- Define number of successful Job logs to keep
- Define number of failed Job logs to keep
- Define concurrency policy options: Allow (default), Forbid or Replace, see reference
Deprecation Warning
Starting from Kubedeploy version 1.2, you should begin using image.command and image.args instead of cronjobspec.command and cronjobspec.args. These values will remain available as failsafe options until Kubedeploy 2.0, at which point they will be removed.
Define cronjob
values.yaml | |
---|---|
The above example will create a CronJob that will run every 10 minutes and echo a hello message.
See also: