DEV Community

loading...

Understanding Kubernetes: part 2 - CronJobs

Aurélie Vache
DevRel - Google Developer Expert on Cloud - Docker captain - CNCF Ambassador - CKAD - Speaker - Sketchnoter - Technical writer - Conferences organizer - Women in tech association Leader - Mentor
Updated on ・1 min read

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 all the sketchnotes on Kubernetes (and new ones!) to make a "book" of 120 pages: "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 :-).

Discussion (11)

Collapse
sunflower profile image
sunflowerseed

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

Collapse
aurelievache profile image
Aurélie Vache Author

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 Author

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
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 Author

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 Author

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
hanoisteve profile image
hanoisteve

Does not really show how to create a cron job.

Collapse
aurelievache profile image
Aurélie Vache Author

Indeed, I can add how to create a cronjob 😉

Collapse
aurelievache profile image
Aurélie Vache Author

Sketchnote improved 😉