Kubernetes Jobs & Cronjobs | How it works

  Рет қаралды 1,718

Techworld with Rajendra

Techworld with Rajendra

8 ай бұрын

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.

Пікірлер: 9
@dipalibadadhe8930
@dipalibadadhe8930 8 ай бұрын
Very nice to explain and good guidance👍👏👏
@deepakranjanmishra5641
@deepakranjanmishra5641 8 ай бұрын
Very Nice Explanation Sir
@niteshb4832
@niteshb4832 8 ай бұрын
Good and simple explanation
@dadasahebkale880
@dadasahebkale880 8 ай бұрын
Good Explanation
@jac6963
@jac6963 8 ай бұрын
Nicely explained
@adityahpatel
@adityahpatel 4 ай бұрын
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?
@AbhayAR
@AbhayAR 6 ай бұрын
what if i want my pod should be terminated automatically and spin up when cron job starts
@techworldwithrajendra
@techworldwithrajendra 6 ай бұрын
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 6 ай бұрын
@@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?
Kubernetes Secrets: How to Create, Use, and Manage Secrets in Kubernetes
13:18
Techworld with Rajendra
Рет қаралды 464
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 18 МЛН
3 wheeler new bike fitting
00:19
Ruhul Shorts
Рет қаралды 52 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 2,9 МЛН
Daemonset in Kubernetes Explained | Uses of Daemonset | Kubernetes
9:19
Techworld with Rajendra
Рет қаралды 708
Kubernetes Network Policies Explained
16:02
Techworld with Rajendra
Рет қаралды 1,9 М.
Kubernetes Services networking
7:13
Project Calico
Рет қаралды 79 М.
Jobs and CronJobs in Kubernetes
16:46
Pavan Elthepu
Рет қаралды 12 М.
Static Pods in Kubernetes
11:41
Techworld with Rajendra
Рет қаралды 701
Statefulsets | Deploying MongoDB cluster to Kubernetes
18:22
Pavan Elthepu
Рет қаралды 24 М.
What Are Kubernetes Jobs and Cronjobs?
5:17
Nick True
Рет қаралды 12 М.
Getting Started With Kustomize (2022)
7:10
Michael Levan
Рет қаралды 21 М.