Bird
0
0

Which of the following is the correct syntax to cordon a node named worker-1?

easy📝 Syntax Q3 of 15
Kubernetes - Troubleshooting
Which of the following is the correct syntax to cordon a node named worker-1?
Akubectl drain worker-1
Bkubectl delete node worker-1
Ckubectl uncordon worker-1
Dkubectl cordon worker-1
Step-by-Step Solution
Solution:
  1. Step 1: Understand cordon command

    The kubectl cordon <node-name> command marks the node as unschedulable, preventing new pods from being assigned.
  2. Step 2: Match syntax with action

    kubectl cordon worker-1 matches the correct syntax to cordon the node named worker-1.
  3. Final Answer:

    kubectl cordon worker-1 -> Option D
  4. Quick Check:

    Cordon syntax = kubectl cordon <node> [OK]
Quick Trick: Use 'kubectl cordon' to mark node unschedulable [OK]
Common Mistakes:
  • Using drain instead of cordon to mark unschedulable
  • Using uncordon which makes node schedulable
  • Deleting node instead of cordoning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes