In this training, we will create a job and parallelize its execution.
Navigate to the folder
17_job
from CLI, before you get started.
cat job.yaml
kubectl create -f job.yaml
It can take a while that the job is completed.
kubectl get pods,jobs
...
spec:
completions: 10
parallelism: 5
template:
...
Re-create the job.
kubectl replace -f job.yaml --force
watch -n 1 kubectl get pods,jobs
kubectl delete jobs --all