Create 10-1-job-oneshot.yaml
This commit is contained in:
parent
0ff2c64212
commit
d801b9b1f3
21
10-1-job-oneshot.yaml
Normal file
21
10-1-job-oneshot.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user