kubernetes-up-and-running/12-1-job-oneshot.yaml
kammous 4f5c952545 Rename all files accordingly to kuard 2nd edition
- Move all objects, except for chapter 17 from v1beta to v1
- Fix an error on kuard image for Job chapter (#12)
2020-04-04 13:58:19 +02:00

23 lines
462 B
YAML

# TODO fix image name (blue) in book
apiVersion: batch/v1
kind: Job
metadata:
name: oneshot
labels:
chapter: jobs
spec:
template:
metadata:
labels:
chapter: jobs
spec:
containers:
- name: kuard
image: gcr.io/kuar-demo/kuard-amd64:1
imagePullPolicy: Always
args:
- "--keygen-enable"
- "--keygen-exit-on-complete"
- "--keygen-num-to-gen=10"
restartPolicy: OnFailure