Community Builder
A community member was interested in setting up a fault-tolerant Nakama cluster using Kubernetes.
Nakama is a distributed server for social and realtime games and apps.
By default, Nakama is typically deployed to droplets, but since it is already containerized, it should be feasible to deploy it with Kubernetes.
Does anyone have experience with this?
Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi AHA, here are some possible answers to your question:
Is it feasible to deploy a docker-compose container within a Kubernetes stack?
Yes, it’s possible to deploy your docker-compose based application using Kompose or Docker Enterprise. I really like Kompose for converting your docker-compose.yml file to Kubernetes resource definition files by doing kompose convert . You may also want to take a look at the CockroachDB Helm Chart to manage your Cockroach deployment.
Would load-balancing and/or Autoscaling negatively impact the game server?
It really depends on how you configure your resources to autoscale pods within your cluster. Also, it will depend on the size of the Docker images; smaller is faster. Furthermore, a node or droplet will typically take longer to spin up and become available within your cluster.
If so, is a droplet the solid choice for Nakama?
I recommend starting with a Kubernetes cluster of at least 3 nodes (i.e. 1 master and 2 workers). I believe a Droplet here is equivalent to a single node within your K8s cluster.
Well, I must go and I wish you all the best.
–
Think different and code well,
-Conrad
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.