Just because I can run everything on Kubernetes, should I?
- Posted
- Tags
- kubernetes, sre, architecture
Kubernetes can host every layer of a system, but the right runtime depends on the size and shape of the team.
I had a relatively free Sunday, and it got me "computing" (thinking, really) about the reality of modern software architecture. As an engineer, I can technically dump all of my compute into Kubernetes. But I started to question myself: I can, but should I?
The question I had
Just because I can put all my compute problems into Kubernetes, should I?
What I found
Looking at the layers of system design as an SRE, there is a lot of surface area to consider:
- Applications and services
- Databases
- API gateways and reverse proxies
- Load balancers
- Blob storage
- Caches
- Message brokers and queues
- CDNs
(There are other critical pieces too, like DNS, data lakes, IAM, and the observability layer, but I am skipping those for now.)
Every one of these can be hosted inside Kubernetes. The industry consensus, though, is that Kubernetes is hard to manage. The operational overhead can crush a small team whose members wear many hats at once, handling IAM, complex networking, backup strategies, and server patching and upgrades.
Why teams go serverless
Because of that overhead, service owners often put their application logic into more abstract, manageable compute. There is a tipping point, though. Eventually the cloud bill grows so large that it makes more financial sense to hire a dedicated team to manage Kubernetes. Kubernetes is a technology of scale.
For teams without that scale, shifting traffic patterns and maintenance work are handled more elegantly by cloud offerings:
- Serverless compute: AWS Lambda, GCP Cloud Functions, Azure Functions.
- Serverless container runtimes: AWS Fargate and App Runner, GCP Cloud Run, Azure Container Apps.
The on-prem side
Large enterprises running on-premises or bare metal face a different bottleneck: how easily their legacy applications can be containerized, along with data sovereignty and legal compliance hurdles.
The middle ground
Managed Kubernetes services (EKS, GKE, AKS) fill the gap. The cloud provider takes over the fragile control plane, and service owners focus on their workloads. It is a much more realistic setup for a lean engineering team.
Picking a runtime
| Serverless cloud | Managed Kubernetes | Unmanaged or custom Kubernetes | |
|---|---|---|---|
| Best fit | Startups that need to move fast | Mid-sized companies with a growing set of microservices | Massive enterprises |
| Why | Release quickly and focus on the product's features | Advanced orchestration without the baseline infrastructure headache | Specific compliance needs and bare-metal environments |
| Cost to carry | Little operational overhead | The control plane is the provider's problem | A dedicated platform engineering team to absorb the overhead |
Takeaway
Kubernetes is a phenomenal technology, but being able to run everything on it is not a reason to. The right runtime follows the organization: serverless to move fast, managed Kubernetes as the sweet spot as microservices grow, and custom Kubernetes only when scale, compliance, and a platform team justify it.