Created
November 15, 2019 00:40
-
-
Save netrebel/2e5b08bb1a2b3e05a9e09577dd85773c to your computer and use it in GitHub Desktop.
Kubernetes sample for simple job
This file contains 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: finalcountdown | |
spec: | |
template: | |
metadata: | |
name: finalcountdown | |
spec: | |
containers: | |
- name: counter | |
image: busybox | |
command: | |
- bin/sh | |
- -c | |
- "for i in 9 8 7 6 5 4 3 2 1 ; do echo $i ; done" | |
restartPolicy: Never #could also be Always or OnFailure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment