KCNA practice question 19 of 25

Which of the following sentences is true about container runtimes in Kubernetes?

Full set: 240 questions
Answer options
A: If you let iptables see bridged traffic, you don't need a container runtime.
B: If you enable IPv4 forwarding, you don't need a container runtime.
C: Container runtimes are deprecated, you must install CRI on each node.
D: You must install a container runtime on each node to run pods on it. Correct answer
Correct Answer:
D. You must install a container runtime on each node to run pods on it.
Explanation

A container runtime is a mandatory software component on every node in a Kubernetes cluster that is responsible for running containers. The kubelet, the primary node agent, communicates with the container runtime to manage the entire container lifecycle. This includes pulling container images from a registry, creating and starting containers based on Pod specifications, and stopping them when required. Kubernetes uses the Container Runtime Interface (CRI) to interact with different runtimes like containerd and CRI-O. Without a container runtime, a node cannot execute the containers that constitute a Pod, rendering it unable to participate in running workloads.

Why Incorrect

A. Configuring iptables is a networking prerequisite for Kubernetes nodes; it does not replace the need for a container runtime.
B. Enabling IPv4 forwarding is a kernel setting required for Pod networking, not a substitute for a container runtime.
C. The dockershim component was deprecated, not container runtimes. CRI is the interface that runtimes implement, not a replacement for them.

References

1. Kubernetes Authors. (n.d.). Container Runtimes. Kubernetes Documentation. Retrieved from https://kubernetes.io/docs/setup/production-environment/container-runtimes/. (See the introduction: "You need to install a container runtime into each node in the cluster...").

2. Kubernetes Authors. (n.d.). The Kubernetes Node. Kubernetes Documentation. Retrieved from https://kubernetes.io/docs/concepts/architecture/nodes/#container-runtime. (This section explicitly states the role of the container runtime on a node).

Scroll to Top