Bird
0
0

Given this PDB YAML snippet, what is the maximum number of pods that can be disrupted at once?

medium📝 Predict Output Q4 of 15
Kubernetes - Production Best Practices
Given this PDB YAML snippet, what is the maximum number of pods that can be disrupted at once?
spec:
  minAvailable: 3
  selector:
    matchLabels:
      app: frontend
A3 pods
BTotal pods minus 3
CAt most 3 pods
DAt most 1 pod
Step-by-Step Solution
Solution:
  1. Step 1: Understand minAvailable meaning

    minAvailable: 3 means at least 3 pods must be running during disruptions.
  2. Step 2: Calculate max disruptions

    Maximum pods disrupted = total pods matching selector minus minAvailable (3). So if total pods are N, max disruptions = N - 3.
  3. Final Answer:

    Total pods minus 3 -> Option B
  4. Quick Check:

    Max disruptions = total pods - minAvailable = A [OK]
Quick Trick: Max disruptions = total pods - minAvailable [OK]
Common Mistakes:
  • Assuming max disruptions equals minAvailable
  • Confusing minAvailable with maxUnavailable
  • Ignoring total pod count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes