Multiplayer game server, mission 2 of 7
Saves that survive
advanced, about 12 minutes, in the Kubernetes Simulator
Opens once you pass Every server has a name.
The briefing
Players are furious: every time a server restarts, its matches vanish. arena-server saves to /data — which today is just the container's own filesystem, gone with the container (kubectl logs arena-0 says as much).
A StatefulSet can give every pod its own PersistentVolumeClaim from volumeClaimTemplates: arena-0 gets saves-arena-0, and a replacement arena-0 gets the same claim back. One catch: the claim templates can't be added to a StatefulSet that already exists.
What you'll do
- Give every arena server its own volume at /data
- Replace a server and see it load its saves back
- Bonus star: See where a claim lives with kubectl describe pvc
The mission checks the cluster, not your keystrokes: any fix that works, passes.
Read first
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