Kubernetes
Medium
Troubleshooting
Which HTTP status code does the Kubernetes Eviction API return when a PodDisruptionBudget blocks an eviction?
Select your answer:
Show answer and explanation
Answer: 429 Too Many Requests
Explanation
The API server answers 429 Too Many Requests when evicting the pod would violate its PodDisruptionBudget, meaning the eviction may succeed later. kubectl drain treats this as retryable and tries again every five seconds. A 500 error means a misconfiguration instead, such as two budgets selecting the same pod.
More medium Kubernetes questions
- Which component of the Kubernetes control plane is responsible for maintaining the desired state of the cluster?
- What is the difference between a Deployment and a StatefulSet?
- A pod is stuck in 'Pending' state. What is the most likely cause?
- Which component is responsible for maintaining network rules on nodes and enabling pod-to-pod communication?
- What is a DaemonSet used for in Kubernetes?
- What happens when a node in a Kubernetes cluster fails?