Kubernetes Simulator

advanced · ~15 min

Claim it back

Ticket from Priya Raman, senior backend developer

The rebuild went ahead last night, and the claims were deleted after all. Because the volumes were set to Retain, they're still there — kubectl get pv shows them Released.

Bring arena back with arena.yaml, and make sure arena-0 and arena-1 come up with their old saves, not fresh, empty disks. If the StatefulSet makes its claims before you've lined the volumes up, they'll get new ones.

Released volumes

A Released volume still names its old claim in spec.claimRef, uid and all, so it won't bind to anything else — even a new claim with the same name. Remove the claimRef and it becomes Available; a claim that asks for it with volumeName then binds to it, data and all. Docs

Objectives

  • arena: 2 servers running
  • Both came back with their saves
  • Bonus: No new, empty volume made along the way

Best on a computer with a keyboard. It works on a phone, with shortcuts under the terminal.