When to use Kubernetes
Choose the tool for the workload
Kubernetes is useful when you need a shared platform for managing many containerized workloads, controlling replica counts, coordinating releases and recovering from failures. It adds operational complexity, so it is not the automatic choice for every website. Decide based on the workload, team skills, availability needs and operating responsibilities.
Four ways to operate an application
A single container on one host can be enough for a small internal tool where downtime is acceptable. Docker Compose describes and runs applications made of multiple containers, commonly on one Docker host; it is useful for local development and can suit simple deployments. A managed application platform (often called platform as a service, or PaaS) can handle infrastructure and deployment details while the team supplies its application. Kubernetes provides a flexible workload-management API across cluster nodes, but its networking, security, upgrades and observability need responsible operation. A managed Kubernetes service may reduce some of those duties, not eliminate them.
Example: a small bakery
A bakery has one static website, no background jobs and no need for custom networking. Its owner has limited operations experience. A managed static hosting service or a simple web host may be the better fit. A cluster would add maintenance without solving an identified problem. If the site grows into a complex system later, reassess rather than adopting Kubernetes in advance.
Example: a growing software platform
A team has twelve containerized services, several independent release schedules and fluctuating demand. It needs standardized health checks, workload placement and a common operational interface. If the team has platform skills or access to an appropriate managed service, Kubernetes is a reasonable candidate. Compare that option with a managed application platform that already meets the requirements. Neither service count nor traffic alone determines the answer.
Make a decision with evidence
List availability requirements, expected changes in demand, number of independent workloads, deployment needs, data persistence, security requirements, budget and available operational skills. Compare the total effort of each option. Kubernetes can coordinate replacement across nodes, but a cluster with one worker still has a single worker failure domain. Backups, testing, application health and cost controls remain necessary.
Practice: defend your choice
A team of two developers runs a web application and a database on a single host. Their priority is easy development and affordable operations; a short outage is acceptable. Choose Compose, a managed application platform or Kubernetes, and explain one advantage and one limitation of your choice. More than one option can be defensible if the assumptions are stated. Next chapter: Cluster architecture and reconciliation.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
When to use Kubernetes — knowledge check
Apply the concepts from this lesson to short offline scenarios.
A single static site needs no custom networking and little maintenance. Which is the best starting option to evaluate?
Which tool is commonly used to define and run several containers on one Docker host?
Which requirement makes Kubernetes a reasonable candidate?
What is a limitation of three replicas on a single worker?
What should a team compare before choosing Kubernetes over a managed application platform?