How does Kubernetes create a Pod?

  Рет қаралды 69,275

IBM Technology

IBM Technology

Күн бұрын

Learn more about Kubernetes → ibm.biz/kube-guide
Learn more about etcd → ibm.biz/guide-to-etcd
Check out IBM Cloud Kubernetes Service → ibm.biz/ibm-cloud-k8-service
When you create a pod in Kubernetes, what happens behind the scenes? How do Kubernetes components work together to generate that pod?
Deepen your knowledge of Kubernetes by understanding how a pod is created and maintained, a process which touches almost every major component in the Kubernetes cluster.
► Earn a badge with FREE interactive Kubernetes labs → ibm.biz/free-interactive-k8s-labs
Get started on IBM Cloud at no cost → ibm.biz/start-no-cost-cloud-acct
Subscribe to see more videos like this in the future → kzfaq.info?sub_...
#Kubernetes #Pods #etcd

Пікірлер: 74
@ftate
@ftate 3 жыл бұрын
Great description. I really like that you chose a specific, isolated use case (pod creation), and then you describe exactly what's involved.
@ashok110180
@ashok110180 Жыл бұрын
I have been learning about Kubernetes for past one week and came across your video and it gave me an deep understanding about various stages of pod creation. Thanks much.
@rakeshsrinivasa1808
@rakeshsrinivasa1808 3 жыл бұрын
The Best video which explained the Pod creation
@sebastienpiller4061
@sebastienpiller4061 3 жыл бұрын
Great introduction to the architecture of k8s. Well explained and clear.
@nishantgupta2510
@nishantgupta2510 3 жыл бұрын
Surely one of the coolest way to explain k8s pod creation 👍👍
@seiyace8001
@seiyace8001 11 ай бұрын
i was looking for a simple explanation and it was soo difficult to find out. Thank you soo much for this video and the quality of your explanations!!
@Jake26572t
@Jake26572t 8 ай бұрын
This is the greatest video of all time for beginners in Kubernetes.
@TheSoulCrisis
@TheSoulCrisis 2 жыл бұрын
I love the logical processes you showcase.......damn cool!
@aeytube3967
@aeytube3967 2 жыл бұрын
honestly the best explanation over web!!
@aasthamohania2173
@aasthamohania2173 2 жыл бұрын
Best and simple way how pod is created Thanks a lot
@b4shman
@b4shman Жыл бұрын
A great explanation, good didatic. Thanks for your contribution 👏
@pratrips
@pratrips 3 жыл бұрын
Wonderful description
@DooMonTouR
@DooMonTouR Жыл бұрын
Perfect, all i needed !
@SyangjaliThitoMagar
@SyangjaliThitoMagar 3 жыл бұрын
Nicely explained 👌
@vaishnavi13477
@vaishnavi13477 Жыл бұрын
excellent presentation !
@KloudEnrich_RameshkumarB
@KloudEnrich_RameshkumarB 2 жыл бұрын
very good explanation....
@dewaynebranch776
@dewaynebranch776 Жыл бұрын
Great explanation
@hiteshsuthar1097
@hiteshsuthar1097 2 жыл бұрын
Nicely explained
@supun_sandaruwan
@supun_sandaruwan 3 жыл бұрын
great content. awesome video..
@sSP1878
@sSP1878 2 жыл бұрын
Great overview. Is it same flow while creating a deployment or any differences?
@pavelgalagan1124
@pavelgalagan1124 3 жыл бұрын
it`s cool !!! thanks!
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
Steps in creating a new pod: 1. A user submits a new configuration with kubectl to kube-API Server 2. Kube-API Server writes the configuration to etcd 3. Scheduler compares the configuration to actual state 4. Scheduler informs kube-API Server of which compute node(s) to schedule the workload 5. Kube-API Server requests corresponding Kubelets to create the new pod 6. Kubelet creates a new pod 7. Kubelets report latest status to kube-API Server 8. Kube-API Server updates the actual state in etcd
@AminSoftwareEngineer
@AminSoftwareEngineer 7 ай бұрын
Nice summary! I also listed the pod state during the process, in a comment below: kzfaq.info/get/bejne/eM2ihJRn156YoIE.html&lc=UgwWzlBMj4ka5IJsxE54AaABAg
@thissuper7051
@thissuper7051 Жыл бұрын
very nice
@suresh198611
@suresh198611 2 жыл бұрын
Awesome
@diegososa1367
@diegososa1367 Жыл бұрын
ty
@VijaykumarBisalahalli
@VijaykumarBisalahalli 2 жыл бұрын
I was prepared for the question explain K8s architecture. But this question came in interview🙂
@kemibrianolimba682
@kemibrianolimba682 9 ай бұрын
Great explanation...thanks. this video. Would it be a bad idea if this video can be used in the IBM Cognitive Class Course called Introduction to Containers, Kubernetes, and OpenShift V2? (it's easier to conceptualize)
@AminSoftwareEngineer
@AminSoftwareEngineer 7 ай бұрын
I noticed you didn't mention the Pod state during this process. Here it is: 1. After Kube-API server returned "created" response to user, the pod's state will be "pending" 2. After scheduler set the node for that pod, Pod's state will be "creating" 3. After Kubelet created the pod, state will be "running" 4. If the pod is failing and restarting, state will be "Crash loop back off"
@gouravsalla2204
@gouravsalla2204 Жыл бұрын
I think one more thing needs to addressed here ,that is CNI for communication between pods , we have several of them like weave ,calico, flannel etc
@ManhNguyen-ik8kl
@ManhNguyen-ik8kl 2 ай бұрын
thanks for your explanation. But i am still confused about pod and container. can you explain?
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
kubelet does a few things: 1. register compute nodes 2. report status 3. start/stop workload
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
kube-proxy is for communication between compute nodes
@SumitSharma-hd1cl
@SumitSharma-hd1cl Жыл бұрын
Is the actual state also stored in etcd ? How are the components aware of the actual state ?
@zindagiekhasinlamha9643
@zindagiekhasinlamha9643 3 жыл бұрын
How we restore back any pod that went to crashloopback off? This process is auto or manual?
@rakesh271284
@rakesh271284 3 жыл бұрын
So I am a data scientist and hence mostly an end user of the pods.. thanks for the explanation. So when we create a pod it assigns a random generated (available) ip that I should use for the compute. In my case I was using a jupyter notebook. Since pods are ephemeral like you mentioned, we need to attach a disk to the vm/pod which is always available to me. One time while running some python commands, my pod crashed and I got assigned another vm ip but the person who got assigned the vm ip I was using until then got my jupyter notebook saved on his disk. What could have happened? I am intrigued.
@juanitoMint
@juanitoMint 3 жыл бұрын
Seems like a race condition... your pod got killed but respawned just fine due to restartPolicy = always (by default) the that same pod got assigned to someone else To avoid that I suggest set the restartPolicy to never or create a control plane that control the lifecycle of your pod so you always get the same pod until you dont need it anymore makes sense?
@somesekhar
@somesekhar 5 ай бұрын
The Scheduler & Control Manager relies entirely on the information supplied by the API server to execute their functions. In the event of the API server being unavailable, these components would also cease to function. The question arises: in a loosely coupled microservices environment, why do we have separate components that are dependent on others? Why can't the API server itself handle the tasks of both Control and Scheduler, eliminating the need for additional components with interdependencies?
@MoMadNU
@MoMadNU Жыл бұрын
Can we just take a moment to appreciate how well Whitney can effortlessly write in mirror image 🙂
@PSCS_RakshithM
@PSCS_RakshithM Жыл бұрын
Can anyone tell me in detail how the scheduler will know when to assign the pod to a node
@call_of_duty1327
@call_of_duty1327 3 жыл бұрын
Then what is the role for istio service mesh..... And also provide full video on kubernetes security of nodes
@livn.686
@livn.686 3 жыл бұрын
You should browse the channel for Sai Vennam's videos (among others). He's made plenty about k8s-related technologies.
@junseo1213
@junseo1213 2 жыл бұрын
doesn't ETCD store dns / ip for pod communication? and one more question is that which component generate full DNS name for pod?
@techno-geek6116
@techno-geek6116 Жыл бұрын
coreDNS is another plugin which does this job. it stores the FQDN for services created within same k8 cluster.
@vitaminc68
@vitaminc68 3 жыл бұрын
🥰❤️
@DonPandon
@DonPandon 3 жыл бұрын
How do they make these videos? Do they have to learn how to write backwards? I don't think so... Do they?
@sohailselky8128
@sohailselky8128 2 жыл бұрын
I imagine they just flip the image
@DanielDybing
@DanielDybing 2 ай бұрын
They write on a transparent wall, and then just flip the video horizontally so that the text is presented the correct way for the viewer.
@bafanabennet6490
@bafanabennet6490 3 жыл бұрын
How can a single container (host) be run using this method and also run multiple pods with containers in them ?
@livn.686
@livn.686 3 жыл бұрын
With k8s the atomic unit is the pod. If you just want to run a single instance of a container image you'd just have to create a pod referencing that image.
@juanitoMint
@juanitoMint 3 жыл бұрын
To run multiple container in a single pod you have to define them usually on a deployment
@muertaqueen
@muertaqueen Жыл бұрын
5:12 CRI = Container Runtime Interface I think you are confusing it with OCI: Open Container Initiative.
@movingelite
@movingelite 6 ай бұрын
may be she just want to say container runtime -containerD
@addy2602
@addy2602 2 жыл бұрын
Can replication controller recreate the pod by itself or does it talk to kubelet to restart the pod?
@techno-geek6116
@techno-geek6116 2 жыл бұрын
i think replication controller will talk to kube-api and kube-api to kubelet , to recreate the new pod with same config. it will not restart the same pod as pods are ephemeral. Also there will be small role of scheduler as well, as it will tell on which node that new pod will be recreated, either same node or new node, depending on node availability.
@movingelite
@movingelite 6 ай бұрын
ETCD contain the desired state of the pod. as control manager has the health status of the node, when the pod dies , control manager -> write to api-> api will checks and write to ETCD and back to API-> when scheduler gets to know pod need to be created from API -> it starts the process.
@priyanshushekhar8736
@priyanshushekhar8736 3 жыл бұрын
what happens after the controller manager identifies that there is pod which has to be reschedule? i mean what exactly happens after that.
@rohitsolutions
@rohitsolutions 2 жыл бұрын
Then Controlller will communicate to kubectl through KubeAPI to create that pod to ensure replica set is satisfied. To ensure desired no# of pods == actual no# of pods.
@akshayhiremath4584
@akshayhiremath4584 3 жыл бұрын
When the pod dies who lets API server know the pod is dead? Is it kubelet? The video moves to controller manager and says that controller manager goes to Kube API server and gets to know the pod is down. But the state of the pod on the Compute node need to be conveyed back to the API server, isn't it?
@angelbythewings
@angelbythewings 2 жыл бұрын
yeah ofcourse, not only does the kubelet convey the state of pods in the node, but also informs the controller about the CPU and memory resources of the node
@dylanngo4454
@dylanngo4454 Жыл бұрын
Thank a lot!
@pavankumarkamarthin272
@pavankumarkamarthin272 3 жыл бұрын
Doesn’t Kubernetes need a load balancer in front of compute nodes?
@IBMTechnology
@IBMTechnology 3 жыл бұрын
Hi there! Depending upon where Kubernetes is deployed, you can integrate with different load balancers that the infrastructure provides to expose pods as Services running on k8s. Different Service types take advantage of different networking patterns to access the pods running on the underlying infrastructure. NodePort-based Services leverage existing IP addresses of compute nodes and are accessed via a Node-level proxy. LoadBalancer-based Services create new Load Balancer instances and handle traffic directly through the infrastructure-based LoadBalancer. So the answer to the question is “it depends on how you want to access it”. 🙂
@rayr268
@rayr268 3 жыл бұрын
How do you write backwards like that? Good video too!
@sshovelyjoe
@sshovelyjoe 2 жыл бұрын
I just couldn't concentrate coz of it lol thats freaky
@quesder
@quesder Жыл бұрын
it is from the back of the glass, and the video is mirrored. Do you notice that most instructors use their left hands to write? That's because the video is left-right mirrored.
@nullentrophy
@nullentrophy 2 жыл бұрын
Labs wont work for me. Error: Service is currently restricted and is available only to certain users
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
Controller managers takes care of runtime failures of pods
@ttylbodydark
@ttylbodydark 2 жыл бұрын
…I’m not supposed to be In this class. What are nodes? API server? Clusters?
@tourdesource
@tourdesource Жыл бұрын
A Kubernetes Node is a unit of computation (i.e. a physical or virtual machine)
@vivekkaushik9508
@vivekkaushik9508 3 жыл бұрын
To this day I could not understand how do they write backwards?
@Al-nc2ys
@Al-nc2ys 3 жыл бұрын
Bro, WTF. Now that you pointed that out, I can't unsee.
@juanitoMint
@juanitoMint 3 жыл бұрын
basically they shoot and mirror invert kzfaq.info/get/bejne/ral_qNhhktWZiX0.html
@quesder
@quesder Жыл бұрын
The camera is at the back of the glass, and the video is mirrored. Do you notice that most instructors use their left hands to write? That's because the video is left-right mirrored.
Choosing a CSP for your SAP workloads
6:26
IBM Technology
Рет қаралды 2,8 М.
What is etcd?
6:18
IBM Technology
Рет қаралды 57 М.
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 76 МЛН
КАРМАНЧИК 2 СЕЗОН 7 СЕРИЯ ФИНАЛ
21:37
Inter Production
Рет қаралды 542 М.
Kubernetes and OpenShift: What's the Difference?
7:27
IBM Technology
Рет қаралды 300 М.
How Pods and the Pod Lifecycle work in Kubernetes
7:47
Microsoft Developer
Рет қаралды 49 М.
Kubernetes Architecture explained | Kubernetes Tutorial 15
13:08
TechWorld with Nana
Рет қаралды 239 М.
Kubernetes Ingress in 5 mins
5:41
IBM Technology
Рет қаралды 181 М.
Kubernetes Explained in 15 Minutes | Hands On (2024 Edition)
15:18
Travis Media
Рет қаралды 67 М.
Cybersecurity Architecture: Who Are You? Identity and Access Management
31:15
What is Helm?
9:06
IBM Technology
Рет қаралды 338 М.
How the Kubernetes scheduler works
7:35
Microsoft Azure
Рет қаралды 65 М.
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 35 МЛН
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 922 М.