Skip to content

Instantly share code, notes, and snippets.

@eyarz
Last active February 24, 2021 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eyarz/bd3067063378225cf2fbf6ccbf10a28a to your computer and use it in GitHub Desktop.
Save eyarz/bd3067063378225cf2fbf6ccbf10a28a to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: "foobar"
spec:
schedule: '*/15 9-19 * *'
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
# [start] correct config but worng placement
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
# [end] correct config but worng placement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment