My games used to run with Docker Compose on a single VM. It worked, but every deploy was a small leap of faith.
I moved them to k3s, a lightweight Kubernetes, on the same VM. Same hardware, much better behaviour:
- Helm charts describe each app: deployment, service, storage, config. Each game is its own Helm release.
- Automatic rollback. Deploys run
helm upgrade --atomic. If the new version doesn't become healthy, Helm rolls back by itself. A bad release can't stay live. - Health checks. Kubernetes restarts a stuck process and only sends traffic when the app says it's ready.
- Traefik and cert-manager handle the ingress and TLS certificates, so HTTPS just works.
Is Kubernetes overkill for one VM? A bit. But it gave me rollbacks, health checks and a standard way to run more than one app, and it's the same tooling I'd use on a bigger cluster.