Multiplayer game server, mission 1 of 7
Every server has a name
advanced, about 10 minutes, in the Kubernetes Simulator
Free in your browser, nothing to install.
The briefing
Each arena server hosts a live match, and a dropped player reconnects to *their* server — so servers need names that stay put. A Deployment's pods get random names that change every time one is replaced.
A StatefulSet gives each pod an ordinal instead — arena-0, arena-1, arena-2 — kept across restarts. It also needs a *headless* Service (clusterIP: None) named in its serviceName, which gives each pod its own DNS name: arena-0.arena.default.svc.cluster.local.
arena.yaml holds the Deployment the team started with. Turn it into a StatefulSet.
What you'll do
- A headless Service arena selecting app=arena
- A StatefulSet arena, governed by that Service, with 3 ready servers
- Bonus star: Delete arena-1 and watch it come back under the same name
The mission checks the cluster, not your keystrokes: any fix that works, passes.
More Multiplayer game server missions
- 1. Every server has a name
- 2. Saves that survive
- 3. One server first
- 4. Don't empty the arena
- 5. Stranded
- 6. Saves that survive
- 7. Claim it back