Skip to content

Instantly share code, notes, and snippets.

@tremaineeto
Created June 11, 2019 23:24
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 tremaineeto/52fef7462468483e40efb45cd6133beb to your computer and use it in GitHub Desktop.
Save tremaineeto/52fef7462468483e40efb45cd6133beb to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hello-world-example
namespace: medium
spec:
concurrencyPolicy: Allow
failedJobsHistoryLimit: 1
jobTemplate:
spec:
template:
spec:
containers:
- args:
image: hello-world
imagePullPolicy: Always
name: hello-world-example
dnsPolicy: ClusterFirst
restartPolicy: OnFailure
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
schedule: '0 3 * * *'
successfulJobsHistoryLimit: 3
suspend: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment