Bird
0
0

A node has MemoryPressure condition set to True. How can you combine Kubernetes commands to identify and relieve memory pressure?

hard📝 Application Q9 of 15
Kubernetes - Troubleshooting
A node has MemoryPressure condition set to True. How can you combine Kubernetes commands to identify and relieve memory pressure?
AUse <code>kubectl top node</code> to check memory usage, then drain the node to move pods elsewhere
BDelete the node immediately
CRun <code>kubectl cordon</code> without draining
DRestart the API server
Step-by-Step Solution
Solution:
  1. Step 1: Check memory usage with kubectl top

    kubectl top node shows current memory usage to confirm pressure.
  2. Step 2: Drain node to move pods

    Draining the node evicts pods, freeing memory and relieving pressure.
  3. Final Answer:

    Use kubectl top node to check memory usage, then drain the node to move pods elsewhere -> Option A
  4. Quick Check:

    Top node + drain relieves memory pressure [OK]
Quick Trick: Check memory with top, then drain node to free memory [OK]
Common Mistakes:
  • Deleting node without analysis
  • Cordoning without draining does not free memory
  • Restarting API server unrelated to memory pressure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes