Is it possible to run match servers on Kubernetes for a Real Time Multiplayer game?

3/26/2017

I can't seem to find any resources online on people doing this, yet it would seem to be possible through the use of StatefulSet (?). I can imagine that whenever a Match is made a Pod would be scheduled and when the Match is over it would be removed.

There's a bunch of other questions such as: How does one manage upgrades? One cannot simply shutdown a match in progress.

Very curious to hear how this should be tackled.

Update: The only state needed for Match servers would be in-memory. It would keep track of the players on that Match, the team composition, etc. This could easily be passed in through Env variables. Matches would typically last between 5-20 minutes and the instance/Pod would be torn down once the Match ends.

-- Mirage
docker
kubernetes
multiplayer

1 Answer

3/26/2017

I think Daemon Sets would fit, https://kubernetes.io/docs/admin/daemons/

-- Michael Nikitochkin
Source: StackOverflow