From b6b808375b95073f270d08e75230db049ed6f848 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Sat, 19 Aug 2017 21:43:31 -0700 Subject: [PATCH] Create 10-2-job-oneshot-failure1.yaml --- 10-2-job-oneshot-failure1.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 10-2-job-oneshot-failure1.yaml diff --git a/10-2-job-oneshot-failure1.yaml b/10-2-job-oneshot-failure1.yaml new file mode 100644 index 0000000..88af786 --- /dev/null +++ b/10-2-job-oneshot-failure1.yaml @@ -0,0 +1,22 @@ +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-exit-code=1" + - "--keygen-num-to-gen=3" + restartPolicy: OnFailure