Job 详解
版本
- v1.16
详解
kind: Job
apiVersion: batch/v1
metadata: (ObjectMeta)
spec: (JobSpec)
activeDeadlineSeconds: integer
backoffLimit: integer 标记为失败的重试次数,默认为:6
completions: integer
manualSelector: boolean 默认值为:false
parallelism: integer 最大并行度
selector: (LabelSelector)
matchExpressions: LabelSelectorRequirement array
- key: string
operator: string
values: string array
matchLabels: object - matchLabels is a map of {key,value} pairs.
template: (PodTemplateSpec)
ttlSecondsAfterFinished: integer 表示多少秒后删除完成的job
status: (JobStatus)