0
0
Kubernetesdevops~10 mins

Node components (kubelet, kube-proxy, container runtime) in Kubernetes - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Node components (kubelet, kube-proxy, container runtime)
Container Runtime
Kubelet
Pod & Container Management
Kube-proxy
Network Traffic Routing & Load Balancing
This flow shows how the container runtime runs containers, kubelet manages pods and containers on the node, and kube-proxy routes network traffic to the right pods.
Execution Sample
Kubernetes
1. Container Runtime pulls image and runs container
2. Kubelet monitors container status and reports to master
3. Kube-proxy updates network rules for service traffic
This sequence shows how node components work together to run containers and route traffic.
Process Table
StepComponentActionState ChangeOutput
1Container RuntimePull image and start containerContainer created and runningContainer ID abc123 running
2KubeletCheck container statusContainer status = RunningStatus reported to master
3KubeletManage pod lifecyclePod containers monitoredPod ready
4Kube-proxyUpdate network rulesService IP routes to pod IPTraffic routed correctly
5Kube-proxyLoad balance trafficTraffic distributed among podsRequests balanced
6KubeletDetect container failureContainer stoppedRestart container
7Container RuntimeRestart containerContainer running againContainer ID abc123 running
8KubeletReport updated statusStatus = RunningMaster updated
9Kube-proxyMaintain network rulesRules consistentTraffic flows uninterrupted
10SystemNormal operationAll components healthyNode ready
💡 Node components maintain container lifecycle and network routing continuously; no exit unless node shuts down.
Status Tracker
VariableStartAfter Step 1After Step 2After Step 4After Step 6After Step 7Final
Container StatusNot runningRunningRunningRunningStoppedRunningRunning
Pod StatusNot readyNot readyReadyReadyReadyReadyReady
Network RulesEmptyEmptyUpdatedUpdatedUpdatedUpdatedUpdated
Key Moments - 3 Insights
Why does kubelet report container status to the master?
Kubelet reports container status (see step 2 and 8) so the master knows if pods are healthy and can schedule or reschedule workloads accordingly.
How does kube-proxy help with service traffic?
Kube-proxy updates network rules (step 4) to route traffic from service IPs to the correct pod IPs and load balances requests (step 5).
What happens if a container stops unexpectedly?
Kubelet detects failure (step 6) and instructs the container runtime to restart the container (step 7) to keep the pod running.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what is the container status after step 6?
AStopped
BRunning
CNot running
DUnknown
💡 Hint
Check the 'Container Status' variable in variable_tracker after step 6.
At which step does kube-proxy update network rules for service traffic?
AStep 2
BStep 4
CStep 6
DStep 8
💡 Hint
Look at the 'Action' column in the execution_table for kube-proxy activities.
If the container runtime fails to restart the container at step 7, what would kubelet likely do next?
AReport container running
BUpdate network rules
CReport container stopped and retry restart
DShutdown the node
💡 Hint
Refer to step 6 and 7 in execution_table and how kubelet handles container failure.
Concept Snapshot
Node components in Kubernetes:
- Container Runtime: pulls images, runs containers
- Kubelet: monitors containers, manages pod lifecycle, reports status
- Kube-proxy: manages network rules, routes and load balances service traffic
Together, they keep pods running and reachable on each node.
Full Transcript
In Kubernetes, each node runs key components to manage containers and network traffic. The container runtime pulls container images and runs them. The kubelet watches these containers, manages their lifecycle, and reports their status to the master node. The kube-proxy updates network rules to route service traffic to the right pods and balances load among them. If a container stops, kubelet detects this and asks the container runtime to restart it. This cycle keeps the node healthy and pods running smoothly.