Created
April 3, 2018 14:55
-
-
Save wjx0912/e7368f85758337c05dcbab88f710a446 to your computer and use it in GitHub Desktop.
kubernetes test cronjob
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v2alpha1 | |
kind: CronJob | |
metadata: | |
name: hello | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
containers: | |
- name: hello | |
image: busybox | |
command: ["echo", "hello, k8s job!"] | |
restartPolicy: OnFailure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment