Day 11/40 - Multi Container Pod Kubernetes - Sidecar vs Init Container
Vloลพit
- ฤas pลidรกn 2. 07. 2024
- Welcome to day 11/40 of the Certified Kubernetes Administrator (CKA) Full Course. In this video, we will explore multi-container pods in Kubernetes with a detailed conceptual explanation, a live demo, and an engaging hands-on assignment.
In this video, you'll learn:
- What are environment variables in Kubernetes, and how do we use that
- Introduction to multi container pod in kubernetes
- How to create an init container inside a pod
- Commands and arguments in Kubernetes pod yaml
- Demo and troubleshooting
๐ Reinforce your knowledge with practical tasks in the Day 11 folder of our GitHub repository: github.com/piyushsachdeva/CKA...
๐จ๐ผโ๐ป #40daysofKubernetes Challenge:
Join our 40-day challenge and solidify your Kubernetes skills. Details can be found in the "#40daysofkubernetes.md" file on GitHub or by watching our Day 0 video.
๐ Course Schedule:
I'll release 3-4 videos per week and host live Q&A sessions on weekends to answer your questions and guide you through the CKA certification process.
๐ต๐ปโโ๏ธ Who Should Watch:
This CKA course is designed for beginners, college students, and working professionals who want to learn Kubernetes from scratch, prepare for the CKA certification exam, or enhance their knowledge. It was designed based on the latest curriculum for the CKA exam in May 2024 and uses 1.30.2 as the Kubernetes version.
Let's start your Kubernetes journey together!
๐๐ข๐ ๐ฃ๐๐๐ง๐ ๐ง๐จ๐ง๐ข๐ฅ๐๐๐ ๐ฆ๐๐ฅ๐๐๐ฆ ๐ Itโs ๐ ต๐๐ ด๐ ด โณ
โ ๐๐๐๐ฟ๐ฒ ๐๐ฒ๐๐ข๐ฝ๐ ๐ญ๐ฒ๐ฟ๐ผ ๐๐ผ ๐๐ฒ๐ฟ๐ผ:
โข Azure DevOps Zero to H...
โ ๐๐ญ๐ต๐ฌ๐ฌ ๐๐๐๐ฟ๐ฒ ๐๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐๐น๐น ๐๐ผ๐๐ฟ๐๐ฒ
โข AZ900WithPiyush - Azur...
โ ๐ก๐ฎ๐บ๐ฎ๐๐๐ฒ ๐๐ผ๐ผ๐ด๐น๐ฒ ๐๐น๐ผ๐๐ฑ | ๐๐๐ฃ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐ฏ๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ๐, ๐ฎ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐๐ฒ ๐ฝ๐น๐ฎ๐๐น๐ถ๐๐ ๐ณ๐ผ๐ฟ ๐๐ต๐ฒ ๐๐๐๐ผ๐ฐ๐ถ๐ฎ๐๐ฒ ๐๐น๐ผ๐๐ฑ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ (๐๐๐) ๐๐ฒ๐ฟ๐๐ถ๐ณ๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป ๐๐ ๐ฎ๐บ:
โข Namaste Google Cloud, ...
โ ๐๐๐๐ฟ๐ฒ ๐๐ฎ๐๐ฎ ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐ฃ ๐ต๐ฌ๐ฌ ๐ณ๐๐น๐น ๐ฐ๐ผ๐๐ฟ๐๐ฒ
โข Microsoft Azure Data F...
โ ๐๐ฒ๐ป๐ธ๐ถ๐ป๐ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ๐
โข Jenkins Tutorial For B...
โ #๐ญ๐ฌ๐๐ฒ๐ฒ๐ธ๐๐ผ๐ณ๐ฐ๐น๐ผ๐๐ฑ๐ผ๐ฝ๐ - ๐ฅ๐ฒ๐ฎ๐น-๐๐ถ๐บ๐ฒ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐ ๐ต๐ฎ๐ป๐ฑ๐-๐ผ๐ป ๐ฝ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐๐ ๐ผ๐ป ๐๐น๐ผ๐๐ฑ ๐ฎ๐ป๐ฑ ๐๐ฒ๐๐ข๐ฝ๐
โข 10WeeksOfCloudOps Chal...
โ ๐๐ฒ๐๐ข๐ฝ๐ ๐ฎ๐ป๐ฑ ๐๐น๐ผ๐๐ฑ ๐ฃ๐ผ๐ฑ๐ฐ๐ฎ๐๐๐:
โข DevOps and Cloud Podcasts
โ ๐๐ถ๐๐น๐ฎ๐ฏ ๐๐ ๐๐ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น | ๐๐ป๐ฑ ๐ง๐ผ ๐๐ป๐ฑ ๐ฅ๐ฒ๐ฎ๐น-๐๐ถ๐บ๐ฒ ๐ฃ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐ [๐๐๐น๐น ๐๐ผ๐๐ฟ๐๐ฒ]
โข Gitlab CI CD Tutorial ...
Subscribe to our channel to get notified about the latest videos.
๐ฅ / techtutorialswithpiyush
-----------------------------------------------------------------------------------------------------------------------
๐๐ผ๐ป๐ป๐ฒ๐ฐ๐ ๐บ๐ฒ ๐๐ฒ๐ฟ๐ฒ:๐๐
๐ฅ๐ฌ๐ผ๐๐ง๐๐ฏ๐ฒ โถ / techtutorialswithpiyush
โณ๐๐ถ๐ป๐ธ๐ฒ๐ฑ๐๐ป โถ / piyush-sachdeva
๐๐๐ป๐๐๐ฎ๐ด๐ฟ๐ฎ๐บ โถ / techtutorialswithpiyush
๐๐ง๐๐ถ๐๐๐ฒ๐ฟ โถ / techie_piyush
๐จโ๐ป ๐๐ถ๐๐ต๐๐ฏ โถ github.com/piyushsachdeva
โ ๐ ๐ฒ๐ฑ๐ถ๐๐บ.๐ฐ๐ผ๐บ โถ / piyush.sachdeva055
๐ ๐ฑ๐ฒ๐.๐๐ผ โถ dev.to/piyushsachdeva
โจ๐๐ถ๐๐ฐ๐ผ๐ฟ๐ฑ โถ / discord
-----------------------------------------------------------------------------------------------------------------------
References ๐:
#devops #techtutorialswithpiyush - Vฤda a technologie
Nice Explanation
Simplified eplanation ! Loved it
Glad you liked it
dont worry bro ur hadwork pays off u soon ,
when every one get into the world of kubernetes u will boom like anything ,best of luck
๐งฟ
Thank you so much brother!โค๏ธ
amazing explaination
Thank you!
Nice explanation
Thanks and welcome
Bro you are a TECH GURU for us. Thanks Piyush bhai.
Just someone who's trying to help โค๏ธ not a guru , but thank you for the kind words
It was a great session....
Thanks
Nice detailed explanation >>
Glad it was helpful!
Nice video.Waiting for others...
More to come!
Thank you for this! It's mostly better, to see the database up, before the webservice can access it. thank you for showing how to do this
You're welcome!
great job Piyush sir. u always make complex concept look easy. u are the best. thanks again
Thank you so much for the wonderful feedback!
Nice explanation....
Thank you!
Hi Piyush,
Thanks for the detailed explanation of the init container
What about a sidecar container.
sidecar containers are being created when you use an application that needs to gather some metrics/data from your pod itself. Monitoring application such as datadog is one of the usecase. We will cover that in a seperate video.
@@TechTutorialswithPiyush Thanks for the explanation Piyush
like @narasimhasaladi7 said. Very soon! Your tutorials will be integral for less technical folks learning K8s! Only way is up! Keep going strong.
My goal is to simplify the learning of advance topics so that anyone can learn and take advantage of it. thank you for the support.
Hi Piyush. Thanks for making the concept easier. I have a question though. Can there be a situation where a deadlock occurs between the init container and the pod. If such a situation arises then how would one solve it?
Thank you for the feedback. There wouldnt be a deadlock situation as init containers are always executed first and only after the successfull completion of init container, your main container will be executed.
Instead of each pod having its own sidecar container, is it possible for mutiple pods to use one shared pod container located somewhere? if yes, how can it be done?
Replied this over the livestream but let me add the answer here as well. It is not possible for multiple pods to use one shared pod/container. It involves a lot of dependency on that shared container and other pods will be impacted if something happens to the shared container, it make the application tightly couple which is an anti-pattern of microservices.
@@TechTutorialswithPiyush Thanks for your reply. However, I am still not very clear.
Once again, I have a bitbucket Pipelines. I want to use one shared Docker pod instead of the same sidecar in every pod.
I have both the runner container and Docker container in a manifest but I wanted to know how to seperate the runner container from the docker container (sidecar container) so that I can run one Docker instance and multiple runner instances on one Kubernetes node.
@@debillion can you join our discord community and share the issue in help-general channel?
thecloudopscommunity.org