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.
More hard Kubernetes questions
- A pod in CrashLoopBackOff keeps its Kubernetes PodDisruptionBudget at zero allowed disruptions and blocks a node drain. Which PDB setting lets the drain evict running pods that aren't Ready?
- What happens when you try to evict a Kubernetes pod that is selected by two different PodDisruptionBudgets?
- What is a Kubernetes Operator?
- What is a Kubernetes Admission Controller?
- What is a Kubernetes Custom Resource Definition (CRD)?
- What is a Kubernetes PodDisruptionBudget used for?