FRGet In Touch
← Tech stack

Kubernetes

An open-source system that runs containers across a group of servers, keeps them healthy and updates them without downtime.

Type
Container orchestrator
Created by
Google, now maintained by the CNCF (Apache 2.0)
Runs on
Any cloud (AKS, EKS, GKE) or your own servers
In my stack
Production services on Azure AKS

What it is

Docker runs a container on one machine. Kubernetes runs many containers across a cluster of machines and takes care of what happens next: it decides where each one runs, restarts it if it crashes, moves it if a server fails, spreads traffic between copies and adds more copies when load grows.

You don’t give it step-by-step instructions. You describe the state you want in YAML files, such as “three copies of the API, version 1.4.2, only sent traffic once healthy”, and Kubernetes keeps the cluster in that state. Managed versions like Azure AKS run the control plane for you, so you only manage your workloads.

Why I use it

Updates without downtime. New versions roll out one copy at a time and only receive traffic once their health checks pass. A bad release can be rolled back with one command.

It heals itself. Crashed containers restart, failed servers are replaced, and users usually never notice.

Everything is declared in files. Deployments, settings, network rules and limits are versioned in Git and reviewed like code, which also makes them auditable.

Security controls built in. Non-root containers, read-only file systems, network policies and secrets management are standard features, not add-ons.

Where I use it

The HR management system runs on Azure Kubernetes Service (AKS). The Go API and its supporting services run as deployments on the cluster, and every release reaches it through the CI/CD pipeline. Rolling updates matter here: the mobile app syncs whenever employees get a connection, so a release has to go out without interrupting them.

Best use cases

  • Production backends with several services that must stay available.
  • Apps with variable load that need to scale up and down automatically.
  • Teams shipping often, where rolling updates and quick rollbacks matter.
  • Organisations with strict security and audit needs, where infrastructure must be declared, reviewed and traceable.

When I’d use something else

Kubernetes has a real operating cost and a learning curve. For a single small app or an MVP, a managed container service such as Azure Container Apps, or one server with Docker Compose at OVH, is simpler and cheaper. I recommend Kubernetes when there are several services, real availability requirements, or a client that already runs it.

A small example

A deployment for an API: three copies, traffic only to the healthy ones, resource limits, and no root inside the container.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: api
spec:
  replicas: 3
  selector:
    matchLabels: { app: api }
  template:
    metadata:
      labels: { app: api }
    spec:
      containers:
        - name: api
          image: registry.example.com/api:1.4.2
          ports:
            - containerPort: 8080
          readinessProbe:
            httpGet: { path: /healthz, port: 8080 }
          resources:
            requests: { cpu: 100m, memory: 128Mi }
            limits: { memory: 256Mi }
          securityContext:
            runAsNonRoot: true
            readOnlyRootFilesystem: true
            allowPrivilegeEscalation: false

Often used with

Need a production setup that stays up while you ship?

Get in touch and tell me about your project.