DEV Community

Aurélie Vache
Aurélie Vache

Posted on • Updated on

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 :-).

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 😉