DEV Community

Understanding Kubernetes: part 2 - CronJobs

Aurélie Vache on April 24, 2020

Understanding Kubernetes can be difficult or time-consuming. In order to spread knowledges about Cloud technologies I started to create sketchnotes...
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 😉