Kubernetes Jobs,init container and pod lifecycle-Hindi/Urdu | Lec-56 | Complete Kubernetes series
Вставка
- Опубліковано 28 вер 2024
- LEC 56 NOTES TECHNICAL GUFTGU
====================
Install Docker
$ sudo apt update && apt -y install docker.io
Install kubectl
$ curl -LO storage.google... -s storage.google... && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl
Install Minikube
$ curl -Lo minikube storage.google... && chmod +x minikube && sudo mv minikube /usr/local/bin/
Start Minikube
$ apt install conntrack
$ minikube start --vm-driver=none
$ minikube status
===========Job=====================================
apiVersion: batch/v1
kind: Job
metadata:
name: testjob
spec:
template:
metadata:
name: testjob
spec:
containers:
- name: counter
image: centos:7
command: ["bin/bash", "-c", "echo Technical-Guftgu; sleep 5"]
restartPolicy: Never
--------------
apiVersion: batch/v1
kind: Job
metadata:
name: testjob
spec:
parallelism: 5 # Runs for pods in parallel
activeDeadlineSeconds: 10 # Timesout after 30 sec
template:
metadata:
name: testjob
spec:
containers:
- name: counter
image: centos:7
command: ["bin/bash", "-c", "echo Technical-Guftgu; sleep 20"]
restartPolicy: Never
-------------
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: bhupi
spec:
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- image: ubuntu
name: bhupi
command: ["/bin/bash", "-c", "echo Technical-Guftgu; sleep 5"]
restartPolicy: Never
=================
Now you can Donate us via Paypal or Google Pay
Paypal link : www.paypal.me/...
GooglePay/PhonePe/BHIM App UPI ID : bhupinderccs@okaxis
Visit Our Website for all the Courses- www.technicalguftgu.in
Do subscribe to TECHNICAL GUFTGU channel and Press Bell icon & get regular updates on videos, DIRECT LINK TO CHANNEL : / technicalguftgu
Here are direct links of My All the Playlist: MUST CHECK
IPv6 Complete Tutorial for beginners Link : • IP Version 6 Tutorials...
Microsoft Azure Tutorial for beginners in Hindi/Urdu AZ-103 and AZ-900 LINK : • Microsoft Azure Tutori...
Cloud computing tutorials For beginners Link : • Cloud Computing Tutori...
AWS Solution Architect-Associate complete Tutorials Link : • AWS Solution Architect...
Devops tutorials in Hindi:-
• What are the Pre-requi...
CCNA Complete Tutorials /Computer Networking Link : • CCNA Full course in Hi...
Thanks For giving Your Valuable time.
Regards,
Technical Guftgu Team
Thank you Sir for your selfless contribution to the society.
_you such a legendary teacher... i don't understand why you're so underrated on UA-cam..._
_i wish Universe blesses you with even more knowledge and wealth and you keep sharing with us..._
People have lost the sense of what is Good and what is Bad in this age.
Thank you Bhupendra sir, I also got new job with Docker and kubernetes.
Love your teaching way.
I am devops engineer in a company now just bcoz of you. Thanks bhai.
please share details sir .. i need your guaidance
Great.Hame Linkedin par tag kare aur channel ke baare me sabhi ko Batayein.
Dear izhar syed guidance is this channel and sir phupindar. and from my side work hard you will succeed
Kon si city m aap job kr rhe ho sir
Can you please help me with resume format I have completed all videos
helllo sir maine apke devops , aws ke playlist dekh ke devops ke liye interview diya & im selected in company as devops intern thank you sir you doing good work .. god bless you sir ..
Bro, are you a fresher or experienced person?
Night shift aur Bhupi sir ki Kubernetes ki notification aana.. Still a better love story than Twilight 😁🙃🙃🙃
Thnks for uploading the new content sir ji 🤗
awesome lecture.. and Inti container YML
apiVersion: v1
kind: Pod
metadata:
name: initcontainer
spec:
initContainers:
- name: c1
image: centos
command: ["/bin/bash", "-c", "echo Technical-Guftgu > /tmp/xchange/testfile; sleep 30"]
volumeMounts:
- name: xchange
mountPath: "/tmp/xchange"
containers:
- name: c2
image: centos
command: ["/bin/bash", "-c", "while true;do echo 'cat /tmp/data/testfile'; sleep 5; done"]
volumeMounts:
- name: xchange
mountPath: "/tmp/xchange"
volumes:
- name: xchange
emptyDir: {}
Thanks a lot Bro
Small correction: volumeMounts: name: data (not xchange in the 2nd case)
Aapko Dil se Salaam hai bhai, jis tarha se aap devops k Saat Saat Insaniyat k Baat karte hai, aur acha massage dete hai, Love you sir ji 😍 ♥️👏👏👏
Please continue like this, we need mentor like you 🔥🔥🔥
Thankyou
you are simply awesome sir, maza aa gaya . understood the job and cronjob concept clearly😍😍
Happy Guru Purnima sir..aapnai bht kuch sikhaya hai..thank you for everything.. bhagwaan ji aapko kush rakhaiii❤❤
Very Well Bhupi Sir. A BIG HEART and LOVE. god bless you!!!!!!!!!!!!!!!!1
Legendary teacher in the universe :)
Best K8s playlist on UA-cam. Thank you sir
Sir aaj bahut ache lag rahe the bilkul apne teaching ki tarah.
Thank you Sir
Excellent series of Kubernetes both for technical and non-technical
I appreciate your efforts
Awesome content as always thank you and love you sir
One of the best trainer, Thank you Bhaio. I'm from Bangladesh.
Hello sir … I am studying devops only from ur channel … but I attended one interview and answered everything they asked … only by seeing ur videos I was able to answer …
But regarding AWS terraform when they asked I was unable to answer anything please cover AWS terraform also sir
activedeadlineseconds means to terminate the container after specific time but you said that it will wait for 10secs after the container finished its job which is wrong, it will just kill the pod after 10 secs whether the container/sleep is configured for 60 secs or what
Respect for your hardwork!
for cron job i was getting wrror in yml file so if someone is getting error can do this
apiversion: batch/v1 should work rest of the yml is correct The error was because the new version of K8s doesnt supports v1beta1 so if you replace it will work
thanks sir for your efforts !!
Thanks for all your efforts sir... This series is really very helpful
Thank you sir for this amazing series. I got offer in devops because of you.
can u guide me bro , what to do after watching this series is there anything else i need to learn ??
@@MohdDanish-kv9sw no bro .it's time to go for interviews .give your best bro.🤞👍
@@amolbhalerao4049 thanks bro
can u tell me about the interview questions they asked
@@amolbhalerao4049 did they ask for any certificate..?
Happy new year to all and special thanks to to sir for make this training videos.
I Hope support to sir to encourage for this great job.
Best content on K8s
Even though some commands are depricated on Kubernetes, I find this video very useful and inspiring. the text file or the YAML file details were not found. if those could be made available again lots of ppl would get helped.
Thanks Sir :) you are a real comrade.
wow ! aaj kya lag rahe ho ❤ Ekdum Jhakkass bhidu 👌
The cron expression * * * * * consists of five fields:
Minute: * - Every minute, if we want for everymin (*****)
Hour: * - Every hour (0****)
Day of the Month: * - Every day of the month (ex: 15th day of month > 0 0 15 * *)
Month: * - Every month (001**)
Day of the Week: * - Every day of the week (0 0 * * *)
Thank you Sir
Updated yml for cronjob
use- "apiVersion: batch/v1" instead of "apiVersion: batch/v1beta1"
Bhupinder, bahut badhiya.
sir yahan pr ek sawal jaise k maine abhi jobs k bare mein pdha r apne bataya k jobs apna kam karega r container band hojyga toh suppose maine agr db ka backup krwaya jobs k through r backup hone k bd container agr stop hojata h toh phr jhe backup data kaise milega
ya phir aisa hoga k container stop srf hoga lekin usme jo data backup hoga usey bd mein dkh skte h
Jaise notification aya phle like kiya sir aye r like na ho aisa nhi hoskta
liked before watching,, thanks a ton
Dear guru ji, aapse gujarish hai ki ek video ECS per bhi bana dijiye taki concept clear ho jaye kubernetes ka to master bana hi diye 🙏🙏🙏🙏🙏🙏🙏🙏
aiye sbse phle shyri sunte h lecture sunne se phle
container sleep time was 20 sec usually as per your earlier note, the pods should be terminated after 20 second + 10 seconds but in this case the pod got terminated in 10-15 secs only.. any reason behind this ?
Sir cron job ka bta day aik baat
POSTGRES ka backup/restore kesy kr skty haii using cron jobs in k8s
Guruji namo nama🙏🙏🙏🙏🙏🙏
Sir, what is daemon Sets?
Sir kya aap azure Ke series continue karne waale hai kya. Plz app start kare. Just finished watching your virtualisation series 5 videos.
Feeling Awsome...
Legend is back 👍😂
Updated yml for cronjob
apiVersion: batch/v1
kind: CronJob
metadata:
name: bhupi
spec:
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- image: ubuntu
name: bhupi
command: ["/bin/bash", "-c", "echo Technical-Guftgu; sleep 5"]
restartPolicy: Never
Job is a bit confusing sir ...even in pod if we dont use while loop in command section of yml file ......it runs and then stops by itself .Even in jobs yml file its getting stopped after work ...
Thank you so much sir ji
looking Beautifull in shaull
lots of love sir
Thanks for sharing
minikube bhi start nhi ho rha ab apki wli cmd s cri.dockered missing y error ata h ab
always greate
in cronjob api version v1beta1 is deprecated after k8`s version 1.22 only mention v1 going forward , else you will get error when executing manifest
Very Good, Thx
Sir please software testing full course ki series banaiye it's a request
Good one
Thank you sir ☺️☺️☺️
please make video regarding operator and CRD
Good morning sir. Sir pipeline pe ek vedio bana dejiye
I have db script having user/roles and other busissess meta-data which i want to run just after pod having oracle db is started. which object i can i use or how can i achieve that, could not find any example for this scenario.
Sir please create video on kubernetes networking.
When I try to execute the first curl link i am getting error message no such file or directory exist
i think init container code is not here in description here i have types acc to sir
apiVersion: v1
kind: Pod
metadata:
name: initcontainer
spec:
initContainers:
- image: centos
name: C1
command: ["/bin/sh", "-c", "echo Technical-Guftgu > /tmp/xchange/testfile; sleep 30"]
volumeMounts:
- name: xchange
mountPath: "/tmp/xchange"
containers:
- name: C2
image: centos
command: ["/bin/bash","-c", "while true; do echo `cat /tmp/data/testfile`; sleep 5; done"]
volumeMounts:
- name: xchange
mountPath: "/tmp/data"
volumes:
- name: xchange
emptyDir: {}
Brother industry main sirf docker and kubernetes se hi questions pouch rahe hain ...
can you explain about sonarqube
Sir plz give some idea about terraform
Please explain damonset and helm chart
Good
First View
24:47 Sir here I am getting status as Error. What may be the problem?
Hi bhupendar sir, you there ?
minikub unable to insatll( Exiting due to GUEST_MISSING_CONNTRACK: Sorry, Kubernetes 1.30.0 requires crictl to be installed in root's path)
Please suggest me for cloud course i'm in 5G telecom background want switch on CLOUD
Setting up minikube not working now sir. New Kubernetes version require some more tool to validate.. please add updated steps or anyone knows...
did you found out the minikube new steps for installing ?
Is there any reason Lec 58 hidden??
Gurudevvvvvv
Please teach openshift
🙏
restartPolicy: Never what does this mean in kubernetes?
Sir plz helemchart
No init container yaml file in sample
Please download the complete file from our telegram Group
Hello Sir
Watched on 16/10/2022
please unhide last video ...
Padhne wale se jyda padhane wala Jyada mehnat kar rhe hain
Thanks!
Thanks sir 🙏
Sir bhupinder. I think Pakistan me jtne be DevOps engineer new arhy ha. Sab apky lectures sy arhy ha. Love from Lahore
sir i am currently watching your networking lectures and i am amazed
love from pakistan
can you plz make a small lec on ports in networking
thank you sir and stay blessed
Excellent videos for a non technical person as well, Just a small suggestion. If possible can you please make a video on scenarios we might encounter during our day to day work on Kubernetes. This will be really helpful to crack the interviews as most of the interviewers ask scenario based questions. Thanks a lot.
Bhupinder sir I'm from Pakistan and i got job in DevOps because of your DevOps Series. and i'm waiting to finish kubernetes series so i can prepare and can crack the CKA exam.
can you please guide me i am also learning devops from sir bhupinder
m from pakistan.
any contact details or email
Thanks!
I'm Greatfull To Youuuu Sir
When can we expect Terraform training series? I like your DevOps tutorials. Very Detailed and Informative.
Yes please, drop lecture on Terraform
U can watch Gaurav sharma tutorial
@@ankitasingh8737 The Cloud World tutorials is also good. Go all 9 lectures of this guys.
Started terraform training
@@ashutoshpandey6110 Will resume after GCP 😁
Sir mern web app ko dockerize and pipeline complete project pe video banaeye. Thank you so much for your videos!!
Thank you for uploading this valuable video.
Awesome tutorial as always. Thanks for your efforts.
Sir, I didn't seen such amazing and down to earth Teacher like you on whole youtube. I'm now in 1st year of my Engineering College. Can you please tell me how can I use your channel for my learning ?? Right now I just started learning C language from youtube. It will be really very helpful if you guide me. And also thank you for accepting my connection request over linkedin.