What is Kubernetes?

DEFINITION

Kubernetes is an open-source system that automatically deploys, scales and manages containerized applications across a cluster of servers.

Kubernetes, often shortened to K8s, is a container orchestration platform originally developed at Google and now maintained by the Cloud Native Computing Foundation. You describe the desired state of your application, such as which container image to run, how many copies, and how they connect, and Kubernetes works continuously to make reality match that description.

Key building blocks include pods (one or more containers running together), deployments (which manage rolling updates and replicas), services (stable network endpoints) and ingress (routing external traffic). Major cloud providers offer managed Kubernetes services that run the control plane for you.

Why Kubernetes matters

When an application consists of many services or must handle variable traffic, managing containers by hand becomes impractical. Kubernetes restarts failed containers, replaces unhealthy ones, scales replicas up and down, and rolls out new versions gradually with the ability to roll back. That makes it a strong foundation for complex SaaS platforms and teams running many services.

When to use it and how to secure it

Kubernetes adds real operational complexity, so it is not the right choice for every project. A single website or small app is often better served by a managed platform or serverless hosting. For example, a growing SaaS company with a dozen services and several teams might move to managed Kubernetes to standardize deployments. In that case, security basics include role-based access control with least privilege, network policies that restrict which pods can talk to each other, storing secrets in a dedicated secrets manager, scanning images before deployment, keeping the cluster version updated, and never exposing the dashboard or API server publicly without authentication.

Best practices

  • Use a managed Kubernetes service unless you have a strong reason to run the control plane yourself.
  • Set resource requests and limits so one service cannot starve others.
  • Apply role-based access control and network policies from the start.
  • Upgrade cluster versions regularly, since older versions stop receiving security fixes.

Common mistakes

  • Adopting Kubernetes for a simple app where managed hosting would be cheaper and easier.
  • Running containers with privileged access or as root when they do not need it.
  • Treating Kubernetes Secrets as fully secure without enabling encryption at rest and access restrictions.

Frequently asked questions

Do I need Kubernetes for my startup?

Often not at first. Early-stage products usually move faster on managed platforms, containers on a simple service, or serverless functions. Kubernetes becomes worthwhile when you run many services, need fine-grained control over scaling and deployment, or have the team skills to operate it. You can adopt it later.

Is Kubernetes free?

Kubernetes itself is free open-source software. Costs come from the servers that run your workloads, the managed control plane fee some cloud providers charge, load balancers, storage, and, often most significantly, the engineering time needed to operate and secure it well.

What is the difference between Kubernetes and Docker?

Docker is mainly used to build container images and run containers on a single machine. Kubernetes manages containers across many machines, deciding where they run, keeping the right number alive, and handling networking and updates. They complement each other rather than compete.

Need help with this?

Cloud y DevOps by VYZEON — Infraestructura que escala, despliega y se recupera por sí sola.

Fixed packages from $199. Written scope, no surprises.

See Cloud y DevOps

Related terms

More Security & cloud terms