Create 10-2-job-oneshot-failure1.yaml
This commit is contained in:
parent
d801b9b1f3
commit
b6b808375b
22
10-2-job-oneshot-failure1.yaml
Normal file
22
10-2-job-oneshot-failure1.yaml
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user