Skip to content

Instantly share code, notes, and snippets.

@eyarz
Created February 24, 2021 09:34
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/337cadafe5db086c8c6d547a79b098ae to your computer and use it in GitHub Desktop.
Save eyarz/337cadafe5db086c8c6d547a79b098ae to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: "foobar"
spec:
schedule: '*/15 9-19 * *'
# [start] correct placement
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
# [end] correct placement
jobTemplate:
spec:
template:
spec:
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment