Тёмный

Kubernetes Jobs & Cronjobs | How it works 

Techworld with Rajendra
Подписаться 1,7 тыс.
Просмотров 2 тыс.
50% 1

Kubernetes Jobs and types of Jobs
Kubernetes provides several controllers for managing pods. Like ReplicaSets, DaemonSets, StatefulSets, and Deployments. They ensure that their pods are always running. If a pod fails, the controller restarts it or reschedules it to another node to make sure the application the pods is hosting keeps running.
What if we do want the pod to terminate? Well, that is where Kubernetes Jobs come in
➤ Kubernetes Jobs
The main function of a job is to create one or more pods and tracks the success of pods. They ensure that the specified number of pods are completed successfully. When a specified number of successful runs of pods is completed, then the job is considered complete. Creating a Kubernetes Job, like other Kubernetes resources, is through a definition file
.
➤ Kubernetes CronJobs
CronJobs are for cluster tasks that need to be executed on a predefined schedule. They are useful for periodic and recurring tasks, like running backups, sending emails, or scheduling individual tasks for a specific time, such as when your cluster is likely to be idle.

Опубликовано:

 

15 окт 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@adityahpatel
@adityahpatel 5 месяцев назад
I have a question - Running 10 pods in parallel isn't going to help. What will help is running 10 pods where each Pod is processing a DIFFERENT batch/slice of data. How to do that?
@niteshb4832
@niteshb4832 9 месяцев назад
Good and simple explanation
@deepakranjanmishra5641
@deepakranjanmishra5641 9 месяцев назад
Very Nice Explanation Sir
@jac6963
@jac6963 9 месяцев назад
Nicely explained
@dadasahebkale880
@dadasahebkale880 9 месяцев назад
Good Explanation
@dipalibadadhe8930
@dipalibadadhe8930 9 месяцев назад
Very nice to explain and good guidance👍👏👏
@AbhayAR
@AbhayAR 7 месяцев назад
what if i want my pod should be terminated automatically and spin up when cron job starts
@techworldwithrajendra
@techworldwithrajendra 7 месяцев назад
Here pod does not terminate and will re mail in completed state for some time and will be removed after some time. New pod will be created for next cron job trigger
@AbhayAR
@AbhayAR 7 месяцев назад
@@techworldwithrajendra But in my case pod is being completed, we have cron job and what is happening, when job starts, will create a new pod, once it finish next day at 7 it is completed, again when cron starts, it will spin a new pod, technically it should terminate the previous one, any suggestion on ttlsecondsafterfinished?
Далее
Jobs and CronJobs in Kubernetes
16:46
Просмотров 13 тыс.
[ Kube 11 ] Jobs & Cronjobs in Kubernetes Cluster
36:36
What Are Kubernetes Jobs and Cronjobs?
5:17
Просмотров 12 тыс.
Static Pods in Kubernetes
11:41
Просмотров 772
How Cron Job Works? | Kubernetes | K21Academy
25:51
Просмотров 2,4 тыс.