It’s fashionable to deploy Kubernetes “for the future”. But for three containers on one server it only adds work. Let’s see where the line is.
Docker Compose on a VPS: when it’s enough
One server, a docker-compose.yml file, a few containers — website, database, queue. Deployment is git pull and docker compose up. This covers most projects of small teams: corporate websites, online stores, internal services, bots. The only cost is the VPS, for example 4 vCPU / 8 GB / 100 GB with an IP address at 18 000 UZS per day.
Limitations: during updates the service is unavailable for a few seconds; if the server goes down, everything goes down; you can only scale vertically, by adding resources to a single server.
Kubernetes: what changes
- Zero-downtime updates. The new version starts next to the old one, and traffic switches over only after health checks pass.
- Self-healing. A crashed container is restarted, pods from a failed node move to other nodes, and the load is redistributed.
- Scaling. More requests mean more replicas of the service; fewer at night. Nodes are added without migration.
- An environment for every branch. CI spins up a test environment for each pull request and removes it after the merge.
The price tag
A Kubernetes cluster at MyCloud is billed only by node resources — at the same prices as a VPS. Control-plane nodes are billed the same way as workers, plus one IP address per cluster. A cluster of one control-plane node at 2 vCPU / 4 GB / 40 GB and three workers at 4 vCPU / 8 GB / 80 GB comes to 57 000 UZS per day. A single VPS at 4 vCPU / 8 GB / 100 GB costs 18 000. The difference is in the amount of resources: a cluster is made of several nodes, and you pay for fault tolerance with extra nodes.
When the switch pays off
- You have more than 5–7 services, and they’re updated several times a week.
- A minute of downtime during an update already costs money or reputation.
- Load varies several-fold over a day or a season.
- Your team has 3+ developers, and each needs their own test environments.
If at least two of these apply to you, the cluster will save more than it costs. If not, stay on Docker Compose and spend the difference on backups and monitoring.
A compromise
Start with a small cluster: one control-plane node and one worker — 4 vCPU, 8 GB RAM and 100 GB SSD between them, 18 000 UZS per day, the same as one VPS of that size. You get everything Kubernetes offers with no extra cost. For production apps, choose a cluster with 3 or 5 control-plane nodes when you create it. And if you have only a few services for now, stay on Docker Compose — in an LXC container (cheaper than a VPS) or on a VPS.
Need help with the task from this article?
We’ll pick a configuration, calculate the cost and help with the move.