Created
November 9, 2017 17:10
-
-
Save dhrp/ffee4051544f60eba7ec36fff373c75d to your computer and use it in GitHub Desktop.
job example
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/v1 | |
kind: Job | |
metadata: | |
name: count-to-600 | |
spec: | |
parallelism: 3 | |
completions: 6 | |
activeDeadlineSeconds: 100 | |
template: | |
metadata: | |
name: count-to-600 | |
spec: | |
containers: | |
- name: counter | |
image: ubuntu | |
command: ["bash", "-c", "for i in {1..600}; do echo Hello ${i}/600; sleep 1; done"] | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment