A batch workload needs 5 successful completions, running 2 Pods at a time. Which Job spec fields do this?
- A.
replicas: 5andmaxSurge: 2 - B.
completions: 5andparallelism: 2 - C.
backoffLimit: 5andactiveDeadlineSeconds: 2 - D.
completions: 2andparallelism: 5
Show answer and explanation
Answer: B
completions is the number of successful Pods required; parallelism is how many may run at once.
- Jobs have no
replicasormaxSurge. backoffLimitlimits retries andactiveDeadlineSecondslimits runtime.- The last option swaps the values.