KCNA · Question #18
How can you monitor the progress for an updated Deployment/DaemonSets/StatefulSets?
The correct answer is D. kubectl rollout status. The kubectl rollout status command is used to monitor the progress of a rolling update for Kubernetes resources like Deployments, DaemonSets, or StatefulSets.
Question
How can you monitor the progress for an updated Deployment/DaemonSets/StatefulSets?
Options
- Akubectl rollout watch
- Bkubectl rollout progress
- Ckubectl rollout state
- Dkubectl rollout status
How the community answered
(34 responses)- A6% (2)
- B3% (1)
- D91% (31)
Why each option
The `kubectl rollout status` command is used to monitor the progress of a rolling update for Kubernetes resources like Deployments, DaemonSets, or StatefulSets.
`kubectl rollout watch` is not a standard or correct command for monitoring rollout progress.
`kubectl rollout progress` is not a standard or correct command for monitoring rollout progress.
`kubectl rollout state` is not a standard or correct command for monitoring rollout progress.
The `kubectl rollout status` command provides real-time updates on the progress of a rollout for a given Deployment, DaemonSet, or StatefulSet. It shows information such as the number of available replicas, updated replicas, and pending new replicas, allowing users to track the rollout's completion and ensure the update is proceeding as expected.
Concept tested: Monitoring Kubernetes rollout status
Source: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands/#rollout
Topics
Community Discussion
No community discussion yet for this question.