Bird
0
0

What does the command kubectl rollout history deployment/myapp show in Kubernetes?

easy📝 Conceptual Q1 of 15
Kubernetes - ReplicaSets and Deployments
What does the command kubectl rollout history deployment/myapp show in Kubernetes?
AThe current status of pods in the deployment 'myapp'
BThe list of all revisions and changes made to the deployment 'myapp'
CThe logs of the deployment 'myapp'
DThe configuration file used to create the deployment 'myapp'
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command purpose

    The command kubectl rollout history is used to view the revision history of a deployment.
  2. Step 2: Apply to deployment 'myapp'

    Using it with deployment/myapp shows all past revisions and changes made to that deployment.
  3. Final Answer:

    The list of all revisions and changes made to the deployment 'myapp' -> Option B
  4. Quick Check:

    Rollout history = List of revisions [OK]
Quick Trick: Rollout history shows past changes, not current status [OK]
Common Mistakes:
  • Confusing rollout history with pod status
  • Expecting logs instead of revision history
  • Thinking it shows deployment config file

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes