Bird
0
0

You tried to rollback a deployment using kubectl rollout undo deployment/myapp but got an error: error: no rollout found. What is the most likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - ReplicaSets and Deployments
You tried to rollback a deployment using kubectl rollout undo deployment/myapp but got an error: error: no rollout found. What is the most likely cause?
ARollback command requires a namespace flag.
BYou misspelled the deployment name in the command.
CThe deployment 'myapp' has no previous versions to rollback to.
DThe Kubernetes cluster is down.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the error message

    The error 'no rollout found' means no previous rollout history exists for rollback.
  2. Step 2: Identify cause

    This usually happens if the deployment was never updated or has only one version.
  3. Final Answer:

    The deployment 'myapp' has no previous versions to rollback to. -> Option C
  4. Quick Check:

    No rollout history = no rollback possible [OK]
Quick Trick: Check rollout history before rollback [OK]
Common Mistakes:
  • Assuming cluster is down causes this error
  • Forgetting to check deployment name spelling
  • Thinking rollback always works without history

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes