Skip to content

Commit

Permalink
adding example Job and CronJob
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed Dec 26, 2017
1 parent 7c793a1 commit 35df0c0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions jobs/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: helloworld
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: simple
image: busybox
command: ["/bin/sh", "-c", "echo", "'hello world'"]
restartPolicy: OnFailure
14 changes: 14 additions & 0 deletions jobs/simplejob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: batch/v1
kind: Job
metadata:
name: helloworld
spec:
template:
metadata:
name: helloworld
spec:
containers:
- name: simple
image: busybox
command: ["/bin/sh", "echo", "-c", "'hello world'"]
restartPolicy: Never

0 comments on commit 35df0c0

Please sign in to comment.