Pregunta de Container Orchestration #019e3a4f
What is the resource type used to package sets of containers for scheduling in a cluster?
Pod
ContainerSet
ReplicaSet
Deployment
Explicación Oficial / Explicaciones de la Comunidad
In Kubernetes, the smallest and simplest unit in the object model that you can create or deploy is a Pod. A Pod represents a set of running containers on your cluster. It is the basic building block for scheduling containers; containers are always scheduled inside Pods. Pods are the resource type used to package sets of containers for scheduling in a cluster.
How it Works
A Pod encapsulates one or more containers, storage resources, a unique network IP, and options that govern how the container(s) should run. Pods are scheduled onto nodes by the Kubernetes scheduler. The scheduler selects an appropriate node for each Pod based on resource requirements, policies, and constraints.
Why the Correct Value is Right
- Pod: Directly answers the question. Pods are the atomic unit of scheduling in Kubernetes. They group containers that share the same network namespace and storage volumes, making them the correct resource type for packaging containers for scheduling.
Why the Incorrect Values are Wrong
- ContainerSet: This is not a standard Kubernetes resource. Kubernetes does not have a resource named ContainerSet. The correct grouping mechanism is the Pod.
- ReplicaSet: A ReplicaSet ensures that a specified number of Pod replicas are running at any given time. It is a higher-level abstraction that manages Pods, but it is not the resource type used to package containers for scheduling. Pods are the actual scheduled units.
- Deployment: A Deployment provides declarative updates for Pods and ReplicaSets. It manages the desired state of Pods, but again, the Pod itself is the resource that packages containers for scheduling. Deployments operate on top of Pods.