I am able to run successfully a Kubernetes Job with multiple parallel worker processes, by following the example provided in "Fine Parallel Processing Using a Work Queue" in the official Kubernetes documentation (https://kubernetes.io/docs/tasks/job/fine-parallel-processing-work-queue/)
For example, with parallelism: 2
in the Job definition yaml file, I am able to complete the task on 2 worker pods in parallel.
Hence, the command:
kubectl get jobs
returns:
NAME COMPLETIONS DURATION AGE
worker 2/1 of 2 1h 6h
My question is: how to interpret precisely the notation 2/1 of 2
in the completions column?
(especially what is the meaning of the /1
part?). I cannot find anything helpful in the official documention about this.
Thank you for your assistance.
[Update] The status of the pods, when the job is completed, is the following:
kubectl get pods
returns:
NAME READY STATUS RESTARTS AGE
worker-dt2ss 0/1 Completed 0 6h
worker-qm56f 0/1 Completed 0 6h