DEV Community

Aurélie Vache
Aurélie Vache

Posted on • Edited on

19 5

Understanding Kubernetes: part 2 - CronJobs

Understanding Kubernetes can be difficult or time-consuming. In order to spread knowledges about Cloud technologies I started to create sketchnotes about Kubernetes. I think it could be a good way, more visual, to explain Kubernetes (and others technologies).

We continue the serie of Sketchnotes about Kubernetes with CronJobs.

Alt Text

If you are interested, I published an entire illustrated book about Kubernetes, available in paperback on Amazon and in digital version on GumRoad: "Understanding Kubernetes in a visual way".

As usual, if you like theses sketchnotes, you can follow me, and tell me what do you think. I will publish others sketchs shortly :-).

Redis image

Short-term memory for faster
AI agents 🤖💨

AI agents struggle with latency and context switching. Redis fixes it with a fast, in-memory layer for short-term context—plus native support for vectors and semi-structured data to keep real-time workflows on track.

Start building

Top comments (11)

Collapse
 
sunflower profile image
sunflowerseed

do you think you can use some font like Consolas or any fixed width font? Makes the command a little more clear:

Collapse
 
aurelievache profile image
Aurélie Vache

I didn't find how to change the font in the software I use. I will take a look this evening 😉

Collapse
 
sunflower profile image
sunflowerseed

👍👍👍 you can also use Google Docs... I wonder if it has Consolas now but I used it before so I still have it in my font list. You can use a Mac and use Monaco or Menlo. Windows has Lucida Sans Typewriter I believe.

Thread Thread
 
aurelievache profile image
Aurélie Vache

I draw my sketchnotes in an Android tablet in an application and then export in jpg/PDF.

So I will check if I can change the font in the software.

Collapse
 
sunflower profile image
sunflowerseed

Can you tell us why cronjob is used instead of starting manually?

Collapse
 
aurelievache profile image
Aurélie Vache

A cronjob can be useful for recurring "jobs".
If you want to run automatically a program which retrieve images and export them in PDF, for example, it's possible in a cronjob.
You can schedule the cronjob.

Collapse
 
sunflower profile image
sunflowerseed

I mean, why run Kubernetes cronjobs? Why not just start it manually? Is it just to automate some task by invoking a pod?

Thread Thread
 
aurelievache profile image
Aurélie Vache

It's for automated tasks yes.

A cronjob scheduled every 10 minutes, will spawn a new pod every 10 minutes.

If a pod failed, you can watch the logs, analyze and understand why this case has failed.

Collapse
 
hanoisteve profile image
hanoisteve

Does not really show how to create a cron job.

Collapse
 
aurelievache profile image
Aurélie Vache

Sketchnote improved 😉

Collapse
 
aurelievache profile image
Aurélie Vache

Indeed, I can add how to create a cronjob 😉

Build seamlessly, securely, and flexibly with MongoDB Atlas. Try free.

Build seamlessly, securely, and flexibly with MongoDB Atlas. Try free.

MongoDB Atlas lets you build and run modern apps in 125+ regions across AWS, Azure, and Google Cloud. Multi-cloud clusters distribute data seamlessly and auto-failover between providers for high availability and flexibility. Start free!

Learn More

👋 Kindness is contagious

Delve into this thought-provoking piece, celebrated by the DEV Community. Coders from every walk are invited to share their insights and strengthen our collective intelligence.

A heartfelt “thank you” can transform someone’s day—leave yours in the comments!

On DEV, knowledge sharing paves our journey and forges strong connections. Found this helpful? A simple thanks to the author means so much.

Get Started