KCNA · Question #98
Which of the following sentences is true about container runtimes in Kubernetes?
The correct answer is D. You must install a container runtime on each node to run pods on it. Every Kubernetes node must have a container runtime installed to be able to pull container images and execute the containers that comprise Pods.
Question
Which of the following sentences is true about container runtimes in Kubernetes?
Options
- AIf you let iptables see bridged traffic, you don't need a container runtime.
- BIf you enable IPv4 forwarding, you don't need a container runtime.
- CContainer runtimes are deprecated, you must install CRI on each node
- DYou must install a container runtime on each node to run pods on it.
How the community answered
(33 responses)- B3% (1)
- C3% (1)
- D94% (31)
Why each option
Every Kubernetes node must have a container runtime installed to be able to pull container images and execute the containers that comprise Pods.
iptables rules are for network packet filtering and manipulation, which is distinct from the requirement for a container runtime to execute containers.
IPv4 forwarding allows packets to be routed between different networks, which is a network configuration detail, not a substitute for a container runtime.
Container runtimes are essential, not deprecated; while `dockershim` (the CRI for Docker) was deprecated, the underlying Docker engine and other runtimes are still actively used and supported, and CRI is an API, not an installable replacement for a runtime.
The kubelet on each Kubernetes node interacts with a Container Runtime Interface (CRI) compliant container runtime to manage containers, including pulling images, starting, and stopping them; without a container runtime, a node cannot execute any Pods.
Concept tested: Kubernetes container runtime necessity
Source: https://kubernetes.io/docs/setup/production-environment/container-runtimes/
Topics
Community Discussion
No community discussion yet for this question.