apiVersion: extensions/v1beta1 kind: Job metadata: name: pi spec: selector: (1) matchLabels: app: pi parallelism: 1 (2) completions: 1 (3) template: (4) metadata: name: pi labels: app: pi spec: containers: - name: pi image: perl command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"] restartPolicy: Never
Label selector of the pod to run. It uses the generalized label selectors.
Optional value for how many pods a job should run concurrently, defaults to
Optional value for how many successful pod completions is needed to mark a job completed, defaults to one.
Template for the pod the controller creates.