KCNA · Question #99
If a Pod was waiting for container images to download on the scheduled node, what state would it be in?
The correct answer is D. Pending. A Pod is in the 'Pending' state when it has been accepted by Kubernetes but one or more of its containers have not yet started, such as when waiting for container image downloads.
Question
If a Pod was waiting for container images to download on the scheduled node, what state would it be in?
Options
- AFailed
- BSucceeded
- CUnknown
- DPending
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- D92% (24)
Why each option
A Pod is in the 'Pending' state when it has been accepted by Kubernetes but one or more of its containers have not yet started, such as when waiting for container image downloads.
The `Failed` state indicates that all containers in the Pod have terminated, and at least one container has terminated in failure.
The `Succeeded` state indicates that all containers in the Pod have terminated successfully and will not restart.
The `Unknown` state means the state of the Pod could not be obtained, typically due to an error in communicating with the node where the Pod is supposed to be running.
When a Pod is scheduled to a node and the node needs to download container images, the Pod will be in the `Pending` state, indicating that its containers are not yet running due to setup tasks like image pulling or volume mounting.
Concept tested: Kubernetes Pod lifecycle states
Source: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase
Topics
Community Discussion
No community discussion yet for this question.