k8wiz
Kubernetes
Hard
Concepts

A Kubernetes Deployment runs 7 replicas and its PodDisruptionBudget sets minAvailable: "50%". How many pods must stay available during a drain?

Select your answer:

Show answer and explanation

Answer: 4 pods

Explanation

Half of 7 is 3.5, and Kubernetes rounds percentage values in a PodDisruptionBudget up to the nearest integer. So 4 pods must stay available and evictions stop once only 4 healthy pods are left. maxUnavailable percentages are rounded up too.

Read more about Kubernetes