k8wiz
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.

Read more about Kubernetes