Kubernetes Simulator
advanced · ~12 min
Don't empty the arena
hackademy-worker needs a kernel patch, so everything on it has to move. kubectl drain cordons the node and evicts its pods — and without a limit it evicts them all at once, which here would take two of the three servers down together.
A PodDisruptionBudget sets that limit. With minAvailable: 2, the eviction API refuses to evict an arena server while fewer than three are up, and drain keeps retrying until the replacement is ready.
Objectives
- A PodDisruptionBudget keeping at least 2 arena servers up
- Drain hackademy-worker
- All 3 servers back up
- Bonus: Never fewer than 2 servers up
Best on a computer with a keyboard. It works on a phone, with shortcuts under the terminal.