May 2018
Intermediate to advanced
554 pages
13h 51m
English
Users can also decide the number of tasks that should be finished in a single Job. It is helpful to solve some random and sampling problems. Let's try it on the same template in the previous example:
$ cat job-dpkg-repeat.yamlapiVersion: batch/v1kind: Jobmetadata: name: package-checkspec: completions: 3 template: spec: containers: - name: package-check image: ubuntu command: ["dpkg-query", "-l"] restartPolicy: Never
$ kubectl create -f job-dpkg-repeat.yaml job.batch "package-check" created$ kubectl describe jobs package-checkName: package-checkNamespace: default...... ...
Read now
Unlock full access