So yeah kuch he din baki hai internship ke so aaj se phir se locked in
- 8-10 exchange Project
- 10-6 office work
- 8-11 exchange Project
btw how does it looks
Lets talk k8s
Day 4
- Cron Jobs
Basically just jobs but that needs to scheduled periodically
why would one need ?
periodic database backups, Data cleanup, scraping data etc
schedule is mandatory and format is
min(0-59), hour(0-23),day(31),month(12) ,day of week(0-7)
4/n
-Job need the field restartPolicy and available options for them are Never, OnFailure , Always
- Always denotes to start the pods irrespective of the Exit code if it fails or success doesnt matter
- OnFailure if pods exits with 0 or fail exit code
-Never just Never restarts
Lets talk k8s!
Day 3
- Jobs ( that i don't have but k8s does ig)
Jobs is way in k8s to perform any defined operation and end as soon as those operations are successfully done
These are the one time task you wanna do
They create pods to do these tasks and terminate them later
3/n
in above image
- here the fields completions represents pods and denoting if 10 pods complete this then only then the task seems to be complete
- the Paralleism here denotes how many pods that can be ran simulateously
- jobs do not terminate is state of success is not met
2/n
- these are tasks like that only need to be done once
- like eg preprocessing a dataset, immediate backups for data , intial setups etc
- Once done pods gets deleted but not the job its like a registry entry for us to see logs and whether the state is reached