Skip to content

Instantly share code, notes, and snippets.

@knil-sama
Last active July 2, 2018 21:22
Show Gist options
  • Select an option

  • Save knil-sama/2493cbe925dce266825860a94af6acae to your computer and use it in GitHub Desktop.

Select an option

Save knil-sama/2493cbe925dce266825860a94af6acae to your computer and use it in GitHub Desktop.
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: batch/v1beta1
kind: CronJob
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"batch/v1beta1","kind":"CronJob","metadata":{"annotations":{},"name":"test","namespace":"default"},"spec":{"jobTemplate":{"spec":{"template":{"spec":{"containers":[{"command":["echo","hello wolrd"],"image":"bash","name":"hello"}],"restartPolicy":"Never"}}}},"schedule":"*/5 * * * *"}}
creationTimestamp: 2018-07-01T23:20:20Z
name: test
namespace: default
resourceVersion: "5421"
selfLink: /apis/batch/v1beta1/namespaces/default/cronjobs/test
uid: 52b419a5-7d85-11e8-a2dd-08002786e674
spec:
concurrencyPolicy: Allow
failedJobsHistoryLimit: 1
jobTemplate:
metadata:
creationTimestamp: null
spec:
template:
metadata:
creationTimestamp: null
spec:
containers:
- command:
- echo
- hello world
image: bash
imagePullPolicy: Always
name: hello
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Never
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
schedule: '*/5 * * * *'
successfulJobsHistoryLimit: 3
suspend: false
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment