Skip to content

Instantly share code, notes, and snippets.

@netrebel
Created November 15, 2019 00:40
Embed
What would you like to do?
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