LXC, VPS or Kubernetes: Which to Choose for Your Project

VPS and servers Published: · 6 min read

A website, a Telegram bot, 1C, a set of Docker services — all of these can run in a container, on a virtual server or in a cluster. Here is how they differ, what the same workload costs in each option, and how not to overpay.

The three options in a nutshell

  • An LXC container is an isolated Linux system with its own root access, IP, memory and disk, but no separate kernel. It starts in seconds and spends almost nothing on itself.
  • A VPS is a full virtual machine with its own kernel. It suits Windows, 1C, custom kernel modules and anything you would run “on your own server”.
  • A Kubernetes cluster is a set of nodes where apps are deployed from manifests, restart themselves after failures and scale with the load.

Comparison

LXCVPSKubernetes
Operating systemUbuntu, Debian, AlmaLinux, Rocky LinuxLinux and Windowsk3s on Linux
Own kernelno, uses the host kernelyesyes, on every node
Dockeryes, inside the containeryescontainers are what the cluster runs
Changing resourceson the flyin the panelby adding nodes and replicas
High availabilityone serverone server3 or 5 control-plane nodes
Price for 2 vCPU / 4 GB / 40 GB + IP7 200 UZS a day9 000 UZS a dayfrom 18 000 UZS a day (2 nodes)

Our prices are daily. In a container, a vCPU and 1 GB of memory cost 700 UZS each; on a VPS and cluster nodes, 1 000 UZS each. 1 GB of SSD is 50 UZS everywhere, and an IP address is 1 000 UZS a day.

When to choose an LXC container

If the job is one or a few Linux services and you do not need Windows or your own kernel:

  • a website or API on Nginx, PHP, Node.js or Python;
  • a Telegram bot, a scraper, scheduled exchange with marketplaces;
  • several Docker containers on docker-compose;
  • a test environment, a GitLab Runner, an internal wiki or issue tracker.

A container comes out about 20% cheaper than a VPS of the same size. For example, 2 vCPU, 4 GB RAM, 40 GB SSD and an IP cost 7 200 UZS a day instead of 9 000 — 54 000 UZS saved per month. Bots with no incoming requests are fine on NAT without their own address — from 1 650 UZS a day.

When to choose a VPS

  • you need Windows Server — for 1C, RDP, MS SQL;
  • you need your own kernel, kernel modules or a kernel-level VPN;
  • the software requires a “real” virtual machine, or you want to export it to OVA and move it to another platform.

When you need Kubernetes

A cluster pays off once you have many services:

  1. more than 5–7 services, updated several times a week;
  2. a minute of downtime during an update already costs money;
  3. the load changes several-fold during the day or season;
  4. several developers each need their own test environment.

If at least two of these apply, look at a cluster. The smallest “Dev” cluster (a control-plane node + a worker, 4 vCPU, 8 GB and 100 GB in total) costs 18 000 UZS a day — the same as one VPS of that size. For production apps, choose 3 or 5 control-plane nodes.

How to grow without moving

A convenient path is to start with a container: run your services in docker-compose, and when there are many of them, move the same images to Kubernetes. Containers, VPS and clusters live in the same mcvps.uz panel and are paid from one balance, so parts of a project can use different options — for example, the database on a VPS and the apps in a cluster.

Summary

  • A Linux service, bot, website, Docker — an LXC container, the cheapest option.
  • Windows, 1C, your own kernel — a VPS.
  • Many services, frequent releases, high availability — Kubernetes.

Price your setup in the calculators on the Linux containers, VPS and Kubernetes clusters pages. Not sure? Message us on Telegram and we will help.

Need help with the task from this article?

We’ll pick a configuration, calculate the cost and help with the move.

Not sure what to choose? We’ll help you pick a configuration

Tell us what you need — a server for 1C, cameras for a pickup point or a move from another host. We’ll find a solution, give you an exact price and help with the move: we’ll advise and walk you through the steps.