Try tten for free
Set up your server in minutesTry for free
Try tten for free
Try for free

Running three containers on a single server is easy. Spreading the same application across five servers, restarting a container that has gone down, and rolling out a new version without downtime are hard to do by hand. Kubernetes does this work for you.

Kubernetes (K8s, a container orchestration platform) is open source software that runs your containers on a group of servers and keeps them in the state you want. A container is an isolated unit that packages an application together with the libraries it needs.

In this post you will learn how Kubernetes works through clusters, nodes and pods, how it differs from Docker, and when you need it. Then you will see the order of moving from a virtual machine to containers, and K3s, the lightweight option for Kubernetes on a single server.

What is Kubernetes?

Kubernetes is an open source platform that manages applications and services packaged in containers (kubernetes.io, November 2026). You write what you want in a definition file: which container image (the ready-made template of a container), how many copies, which port. The platform sets up this state and brings it back when it breaks.

Kubernetes is software that runs on a cluster (a group of servers managed together). You do not choose which server the application runs on. Kubernetes picks a server that has free resources. If a server shuts down, it restarts the containers on it on another server.

Google released Kubernetes as open source in 2014 (kubernetes.io). The project joined the CNCF (Cloud Native Computing Foundation, the foundation that governs cloud software) in 2016. In 2018 it reached the foundation’s highest maturity level (cncf.io, November 2026).

What does Kubernetes mean? Where does the K8s abbreviation come from?

Kubernetes is a word of Greek origin and means helmsman or pilot (kubernetes.io). The abbreviation K8s comes from the eight letters between K and s. The K8s abbreviation is generally used, and both spellings carry the same meaning. The meaning of the name also describes what the software does: Kubernetes steers your containers.

What is Kubernetes used for? Container orchestration

As the number of containers and servers grows, three jobs become hard to run by hand: placing a container on a server, restarting a container that has gone down, and rolling out a new version without downtime. Kubernetes does these three jobs with software. Of the capabilities listed in its official documentation, five change daily work the most:

  • Self-healing: It restarts a container that has gone down. It does not send traffic to a container that fails its health check.

  • Rolling updates and rollback: It rolls out the new version one copy at a time. If a problem comes up, you return to the previous version with a single command.

  • Service address and load distribution: It gives all copies of a service a single address and distributes traffic among them.

  • Horizontal scaling: It increases and decreases the number of copies with one command or automatically based on CPU usage.

  • Secret and configuration management: It hands secrets such as passwords and API keys to the container without rebuilding the image.

There are also things Kubernetes does not do. It does not build your source code or produce images. It does not bring a database, a queue or a logging system (kubernetes.io). You choose these and install them on the cluster. The jobs Kubernetes does do are shared among the components in the cluster.

How does Kubernetes work?

A Kubernetes cluster consists of two parts: the control plane, which manages the cluster, and the nodes, which run the workload (kubernetes.io). You give your commands to the control plane and the work runs on the nodes.

Kubernetes cluster mimarisi: master (control plane) dört bileşenle üç worker node’u yönetir, her worker’da kubelet, runtime, kube-proxy ve pod’lar çalışır

Node: the server that runs the workload

A node is a server that has joined the cluster. It can be a physical server or a VM (virtual machine). In the cloud, nodes are usually VMs. Three parts generally run on each node:

  • kubelet: It checks that the containers on the node are running.

  • Container runtime: It starts and stops containers.

  • kube-proxy: It routes service traffic to the right container using the network rules on the node.

Pod: the smallest unit of Kubernetes

Kubernetes runs a container inside a pod. A pod is one or more containers that share the same IP address and storage (kubernetes.io). Most pods contain a single container.

Pods are ephemeral. If the node shuts down, the pod goes with it, and Kubernetes opens a new one in its place on another node. For this reason the application’s data is not stored inside the pod. Persistent data is kept in a persistent volume or in a separate database. If a volume lives only on one node’s disk, shared storage is needed for the pod to move together with its data.

Control plane: the management center of the cluster

The control plane stores the state of the cluster and makes decisions. It has four main components:

  • kube-apiserver: This is the API of the cluster. Every request, including those from kubectl (the Kubernetes command line tool), comes here.

  • etcd: This is the key-value database that stores the entire state of the cluster.

  • kube-scheduler: It assigns pods that have not yet been placed on a node to a suitable node.

  • kube-controller-manager: It runs the controllers that compare the desired state with the actual state.

Desired state: from a definition file to a running application

You describe the result to Kubernetes, and it works out the steps. The manifest (YAML definition file) below asks for a web server in three copies:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
        - name: web
          image: nginx:stable
          ports:
            - containerPort: 80
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
        - name: web
          image: nginx:stable
          ports:
            - containerPort: 80
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
        - name: web
          image: nginx:stable
          ports:
            - containerPort: 80

When you send the file to your cluster with the kubectl apply -f web.yaml command, the control plane creates three pods and the scheduler distributes them to the nodes. If a container goes down, the kubelet restarts it. If a pod is deleted or a node shuts down, the controller notices the missing copy and opens a new one. If you set the replicas value to 5 and send the file again, the cluster scales up to five copies.

All of Kubernetes’ behavior rests on this loop. You write the desired state, and Kubernetes makes the actual state equal to it. This example only opens pods. To allow access from outside, a Service is defined separately. The stable tag in the example is for brevity. In production, pin the version number.

The difference between Kubernetes and Docker

nginx:stable in the manifest is a container image. The tool that builds this image and runs it on a single server is Docker. Docker and Kubernetes work at different layers and use the same image format.

Docker packages your application into an image and runs it as a container on one server. Kubernetes distributes these containers across multiple servers and keeps them running. Kubernetes can also run the image you built with Docker. Kubernetes starts containers with a runtime such as containerd, so Docker does not have to be installed on the server.

Criterion

Docker

Kubernetes

What it does

Builds images, runs containers

Distributes and manages containers across a cluster

Scope

Single server

Multiple servers (nodes)

If a server shuts down

Containers stop together with that server

Pods managed by a controller open on another node within a few minutes

Definition file

Dockerfile, Compose file

Manifest (YAML)

Maintenance load

Few concepts, maintenance of a single server

Many concepts, control plane and node maintenance

Where it fits

A single application, a single server, development

Many services, many servers, frequent new releases

Sunucu kapandığında Docker’da container’lar durur, Kubernetes’te pod başka bir node’da yeniden açılır

Docker Compose defines multiple containers in a single file, but it still runs on a single server. Swarm, Docker’s multi-server mode, is a separate tool. For an application made of a few containers, Compose is often enough. This also means that many teams do not need Kubernetes yet.

When do you need Kubernetes?

You can tell you need Kubernetes from these signs:

  • The number of your services has grown and a different team releases each service.

  • Traffic fluctuates during the day and you want to change the number of copies automatically.

  • A server shutting down should not stop your application.

  • You release a new version more than once a day.

Kubernetes also brings its own maintenance load. Control plane version upgrades, node compatibility, the network plugin, logging and monitoring each need separate management. If nobody on the team knows this work, maintaining the cluster takes more time than the application itself.

You do not need Kubernetes yet in these cases:

  • You have a single application and it fits on one server.

  • Your application consists of a few containers and a Docker Compose file does the job.

  • You release a new version a few times a month and a few minutes of downtime during an update is acceptable to you.

  • Nobody on your team knows Kubernetes and you cannot spare time to learn it.

In these cases, a single server with Docker and Compose installed runs the same application with fewer moving parts.

One question is enough to decide: when a server shuts down or traffic doubles, who steps in today, and how quickly? If someone on the team steps in within a few minutes and that time does not disrupt your business, Kubernetes can wait.

Moving from a virtual machine to containers

Kubernetes mostly runs on top of VMs. In the cloud, most nodes are VMs and the containers run inside these VMs. The move is carrying the application from a state where it is installed by hand on a VM to a state where it is packaged into an image.

The difference between a VM and a container is in the operating system. A VM carries its own operating system. A container shares the server’s kernel (the core part of the operating system), so it starts faster and takes up less space.

Plan the move in four steps:

  1. Package the application into an image. Define the dependencies in a Dockerfile (the file that describes an image). The same image runs the same way in every environment.

  2. Move configuration and passwords out of the image. Supply them through environment variables or Kubernetes secrets. The same image runs with different settings in test and production.

  3. Separate the data from the container. Keep the database on a separate server or in a persistent volume. Data must not be lost when a container is deleted.

  4. Run it on a single server first. See the application run without problems inside a container, with Docker Compose or a single-server K3s setup. Move to a multi-server cluster later.

You can leave the database on the VM in the first stage. Web services that hold no data are the easiest parts to move to containers, so start the move with them.

K3s: lightweight Kubernetes on a single server

A Kubernetes cluster set up for production often uses multiple servers for the control plane and the nodes. For learning Kubernetes or trying it in a development environment, this setup is too much. K3s fits the same Kubernetes onto a single server.

K3s is a lightweight distribution fully compatible with Kubernetes (docs.k3s.io, November 2026). It delivers Kubernetes in a single binary smaller than 100 MB. It runs on a single server and on multiple servers. Most manifests and kubectl commands work the same way in K3s. The difference is in the defaults K3s ships with: SQLite instead of etcd on a single server, the embedded Traefik and local storage. The K3s documentation asks for at least 2 CPU cores and 2 GB RAM for the server that manages the cluster (the server node).

At tten, K3s is available as a ready-made app in Marketplace. When you create a Cloud Server, you pick K3s from the app list, and the setup brings the current stable version of K3s. The tten catalog asks for at least 2 CPU, 4 GB RAM and 30 GB disk for K3s. Marketplace recommends K3s for development and test environments. You manage the cluster over SSH with kubectl commands, and the K3s app has no web panel.

The operating system, K3s updates, backups and the firewall setting on the server are yours. You decide which ports are opened to the internet from Core Panel (tten’s management panel). Do not expose the Kubernetes API to the internet, and manage the cluster over SSH. A single server is a single point of failure: if the server stops, the cluster’s API stops too.

Kubernetes on multiple servers

Kubernetes works best when the nodes are on the same local network. In a multi-server cluster, the nodes communicate with each other constantly: the control plane assigns work to the nodes and pods send requests to each other. This traffic should flow on a fast network that is closed to the internet. The K3s documentation says the VXLAN (the tunnel between servers) port, which carries network traffic between pods, should not be exposed to the internet. Cloud Servers reach each other only over the internet. So traffic between nodes, including the API and VXLAN, has to pass over public IPs. Do not set up a multi-server cluster across Cloud Servers.

That is why the right place for a multi-server cluster is the Virtual Data Center (VDC). In a VDC, your servers communicate directly on your own local network, in an isolated network. Traffic between nodes stays on this network and does not pass through the tten firewall. You open only your application’s port to the internet, and you define the port forwarding rule yourself in Core Panel. Port forwarding goes to a single server, so plan separately which server the traffic coming from outside enters.

Tek sunucuda Bulut Sunucu üzerinde K3s, çok sunuculu cluster için Sanal Veri Merkezi’nin izole yerel ağı

When moving from a single server to a VDC, you set up a new cluster there and carry over your manifests and data. The IP address changes. So that the cluster’s management layer is not a single point of failure, the K3s documentation recommends at least three (an odd number of) server nodes with the etcd that comes inside K3s.

In short: for learning or trying Kubernetes on a single server, K3s on a Cloud Server is enough. For a cluster with multiple nodes, choose the Virtual Data Center.

If you want to hand the setup to a team

If you want to hand the cluster setup to a team, DevOps Consulting is a separate service and is not included in the VDC or K3s package. The tten DevOps team sets up the Kubernetes cluster and configures scaling and deployment flows. The team works on tten, on AWS, on Azure or on your own servers, and the price is set by quote.

Frequently asked questions

What is K8s, what does Kubernetes mean?

K8s is the abbreviation of Kubernetes and comes from the eight letters between K and s. Kubernetes means helmsman or pilot in Greek. Both names describe the same open source platform that runs containers on a group of servers.

What is the difference between Kubernetes and Docker?

Docker builds images and runs containers on a single server. Kubernetes distributes containers across multiple servers, restarts a container that has gone down and rolls out new versions gradually. Kubernetes can also run the image you built with Docker.

How is Kubernetes used?

You package your application into an image, write the state you want in a manifest file and send it to the cluster with the kubectl apply command. A single-server K3s setup is enough for learning. At tten, you pick K3s from Marketplace when creating a Cloud Server.

What is a container orchestration platform used for?

It manages which server containers run on and with how many copies. It restarts a container that has gone down, distributes traffic among the copies and rolls out new versions gradually. Kubernetes is an open source container orchestration platform.

What is OpenShift, and how is it different from Kubernetes?

OpenShift is Red Hat’s application platform built around a Kubernetes core (redhat.com, November 2026). The core project is open source, while OpenShift is a Red Hat product that uses it. What you learn in Kubernetes is useful in OpenShift too.

Is Kubernetes free?

Kubernetes is open source, and you do not pay a license fee for the software itself. The cost comes from the servers the cluster runs on and the labor of the team that manages the cluster.

How many servers do you need for Kubernetes?

A single server is enough for learning and testing, and K3s runs on a single server. So that the management layer is not a single point of failure, the K3s documentation recommends at least three (an odd number of) server nodes. This number is for the management layer only.

Conclusion

Kubernetes is an open source platform that runs your containers on a group of servers and keeps them in the state you want. It carries what Docker does on a single server over to multiple servers, and in return brings a separate maintenance load. For a single application, Docker is enough. To learn Kubernetes, start with K3s on a single server, and set up a multi-server cluster in the Virtual Data Center.

Try tten for free with the Solo Cloud Starter package. When the trial starts, a 1 TRY verification charge is made to your card and it is refunded automatically.

Try for free

Related posts

Written by

İsmail

Tunalı

On this page

Open your cloud server for free

Try tten for free

You are in full control

Build your infrastructure today

Get started in minutes and take your project live. No commitment.