Shashikant shah

Wednesday, 16 December 2020

What is JOBS in Kubernetes. Part-10

 

The main function of a job is to create one or more pod and tracks about the success of pods. They ensure that the specified number of pods are completed successfully. When a specified number of successful run of pods is completed, then the job is considered complete.
















Run to completion
1.Each job creates one or more pods.
2.Ensures they are successfully terminated.
3.job controller restarts or rescheduled if a pod or node fails during execution.
4.can run multiple pods in parallel.
5.can scale up using kubectl scale command.

Use cases:
1.one time initialization of resources such as databases.
2.multiple workers to process messages in queue.












restartPolicy: Never →This condition of image restart is given as never which means that if the container is killed or if it is false, then it will not restart itself




















No comments:

Post a Comment