Skip to content

Instantly share code, notes, and snippets.

@dhrp
Created November 9, 2017 17:10
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 dhrp/ffee4051544f60eba7ec36fff373c75d to your computer and use it in GitHub Desktop.
Save dhrp/ffee4051544f60eba7ec36fff373c75d to your computer and use it in GitHub Desktop.
job example
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