Skip to content

Instantly share code, notes, and snippets.

@netrebel
Created November 15, 2019 00:40
Show Gist options
  • Save netrebel/2e5b08bb1a2b3e05a9e09577dd85773c to your computer and use it in GitHub Desktop.
Save netrebel/2e5b08bb1a2b3e05a9e09577dd85773c to your computer and use it in GitHub Desktop.
Kubernetes sample for simple job
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