Bird
Raised Fist0
Kubernetesdevops~10 mins

Node components (kubelet, kube-proxy, container runtime) in Kubernetes - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the component responsible for managing pods on a Kubernetes node.

Kubernetes
The component that runs on each node and ensures containers are running in pods is called [1].
Drag options to blanks, or click blank then click option'
Akubectl
Bkube-proxy
Cetcd
Dkubelet
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing kubelet with kube-proxy
Thinking kubectl runs on nodes
Mixing etcd with node components
2fill in blank
medium

Complete the code to identify the component that manages network rules on a Kubernetes node.

Kubernetes
The component responsible for maintaining network rules and load balancing on each node is [1].
Drag options to blanks, or click blank then click option'
Akube-proxy
Bkubelet
Ccontainer runtime
Dscheduler
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing kube-proxy with kubelet
Thinking scheduler runs on nodes
Mixing container runtime with network management
3fill in blank
hard

Fix the error in the statement about the container runtime.

Kubernetes
The [1] is the component that runs containers on a node, such as Docker or containerd.
Drag options to blanks, or click blank then click option'
Akube-proxy
Bkubelet
Ccontainer runtime
Dscheduler
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing container runtime with kubelet
Thinking kube-proxy runs containers
Mixing scheduler with container runtime
4fill in blank
hard

Fill both blanks to complete the description of node components.

Kubernetes
The [1] manages pod lifecycle on the node, while the [2] handles network traffic routing.
Drag options to blanks, or click blank then click option'
Akubelet
Bcontainer runtime
Ckube-proxy
Dscheduler
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping kubelet and kube-proxy roles
Including scheduler which runs only on control plane
5fill in blank
hard

Fill all three blanks to complete the Kubernetes node components description.

Kubernetes
On a Kubernetes node, the [1] runs containers, the [2] manages pod states, and the [3] handles network rules.
Drag options to blanks, or click blank then click option'
Acontainer runtime
Bkubelet
Ckube-proxy
Detcd
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing etcd as a node component
Mixing roles of kubelet and kube-proxy
Thinking container runtime manages network

Practice

(1/5)
1. Which Kubernetes node component is responsible for making sure containers start and keep running on a node?
easy
A. kube-proxy
B. kubelet
C. container runtime
D. etcd

Solution

  1. Step 1: Understand the role of kubelet

    kubelet runs on each node and ensures containers are started and stay running as requested by the control plane.
  2. Step 2: Differentiate from other components

    kube-proxy manages network traffic, container runtime runs containers, and etcd stores cluster data.
  3. Final Answer:

    kubelet -> Option B
  4. Quick Check:

    Container management = kubelet [OK]
Hint: kubelet manages containers on nodes, not networking or storage [OK]
Common Mistakes:
  • Confusing kubelet with kube-proxy
  • Thinking container runtime manages container lifecycle
  • Selecting etcd which is for cluster data storage
2. Which of the following is the correct command to check the status of the kubelet service on a Linux node?
easy
A. systemctl status kube-proxy
B. docker ps | grep kubelet
C. systemctl status kubelet
D. kubectl get pods kubelet

Solution

  1. Step 1: Identify the service name for kubelet

    The kubelet runs as a system service named 'kubelet' on Linux nodes.
  2. Step 2: Use systemctl to check service status

    The command 'systemctl status kubelet' shows the running status of the kubelet service.
  3. Final Answer:

    systemctl status kubelet -> Option C
  4. Quick Check:

    Check kubelet service = systemctl status kubelet [OK]
Hint: Use systemctl with 'kubelet' to check its status [OK]
Common Mistakes:
  • Checking kube-proxy instead of kubelet
  • Using kubectl which manages cluster, not node services
  • Searching for kubelet in docker containers
3. Given the following command output snippet from a node, which component is responsible for managing network rules to allow pod communication?
NAME       STATUS   ROLES    AGE   VERSION
node-1     Ready    <none>   10d   v1.26.0

Active connections:
- kubelet running
- kube-proxy running
- container runtime running
medium
A. kube-proxy
B. container runtime
C. kubelet
D. etcd

Solution

  1. Step 1: Identify the role of kube-proxy

    kube-proxy manages network rules and traffic routing inside the cluster to enable pod communication.
  2. Step 2: Differentiate from other components

    kubelet manages containers, container runtime runs containers, and etcd stores cluster data.
  3. Final Answer:

    kube-proxy -> Option A
  4. Quick Check:

    Network management = kube-proxy [OK]
Hint: Network rules inside cluster are handled by kube-proxy [OK]
Common Mistakes:
  • Confusing kubelet with network management
  • Thinking container runtime manages networking
  • Selecting etcd which is unrelated to node networking
4. You notice pods on a node are not receiving network traffic correctly. You check and find kube-proxy is not running. Which command would you use to restart kube-proxy on a systemd-based node?
medium
A. systemctl restart kube-proxy
B. kubectl restart kube-proxy
C. systemctl restart kubelet
D. docker restart kube-proxy

Solution

  1. Step 1: Identify the correct service to restart

    Since kube-proxy manages network traffic and is not running, restarting kube-proxy service is needed.
  2. Step 2: Use systemctl to restart kube-proxy

    On systemd-based systems, 'systemctl restart kube-proxy' restarts the kube-proxy service properly.
  3. Final Answer:

    systemctl restart kube-proxy -> Option A
  4. Quick Check:

    Restart kube-proxy with systemctl restart kube-proxy [OK]
Hint: Restart kube-proxy service with systemctl to fix network issues [OK]
Common Mistakes:
  • Restarting kubelet instead of kube-proxy
  • Using kubectl which cannot restart node services
  • Trying to restart kube-proxy as a docker container
5. A Kubernetes node uses containerd as its container runtime. You want to verify that the container runtime is running correctly and can start containers. Which sequence of commands would you use to check containerd status and list running containers?
hard
A. docker ps && crictl status
B. systemctl status kubelet && docker ps
C. kubectl get pods && systemctl status containerd
D. systemctl status containerd && crictl ps

Solution

  1. Step 1: Check containerd service status

    Use 'systemctl status containerd' to verify the container runtime service is active and running.
  2. Step 2: List running containers with crictl

    Since containerd uses CRI, 'crictl ps' lists running containers managed by containerd.
  3. Final Answer:

    systemctl status containerd && crictl ps -> Option D
  4. Quick Check:

    Check containerd and containers with systemctl and crictl [OK]
Hint: Use systemctl for service and crictl for container runtime containers [OK]
Common Mistakes:
  • Using docker commands when containerd is runtime
  • Checking kubelet status instead of container runtime
  • Mixing kubectl pod commands with container runtime checks
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard