KCNA practice question 11 of 25

The Container Runtime Interface (CRI) defines the protocol for the communication between:

Full set: 240 questions
Answer options
A: The kubelet and the container runtime. Correct answer
B: The container runtime and etcd.
C: The kube-apiserver and the kubelet.
D: The container runtime and the image registry.
Correct Answer:
A. The kubelet and the container runtime.
Explanation

The Container Runtime Interface (CRI) is a plugin interface that enables the kubelet to use a wide variety of container runtimes, without the need to recompile Kubernetes. The CRI defines the main gRPC protocol for communication between the kubelet (the primary node agent) and the container runtime (e.g., containerd, CRI-O). This allows Kubernetes to be decoupled from a specific runtime technology, providing flexibility. The kubelet acts as the client, sending requests to the container runtime server to manage pods and container lifecycles (e.g., create, start, stop).

Why Incorrect

B. The container runtime does not communicate directly with etcd; the kube-apiserver is the only component that does.
C. The kube-apiserver and the kubelet communicate via the Kubernetes API, not the CRI.
D. The CRI does not define the protocol for pulling images; this is handled by the container runtime itself, often following OCI specifications.

References

1. Kubernetes Documentation. (n.d.). Container Runtimes. Kubernetes. Retrieved from https://kubernetes.io/docs/setup/production-environment/container-runtimes/. (The first paragraph explicitly states, "The kubelet uses the Container Runtime Interface (CRI) to talk to your chosen container runtime").

2. The Kubernetes Authors. (2016, December 15). Introducing Container Runtime Interface (CRI) in Kubernetes. Kubernetes Blog. Retrieved from https://kubernetes.io/blog/2016/12/container-runtime-interface-cri-in-kubernetes/. (This official blog post introduces the CRI and its purpose).

3. Cloud Native Computing Foundation. (n.d.). CNCF Cloud Native Interactive Landscape - CRI-O. CNCF. Retrieved from https://landscape.cncf.io/card-mode?item=runtime--container-runtime--cri-o. (The description for CRI-O explains its role as an implementation of the CRI to enable OCI runtimes).

Scroll to Top