Field notes

Kubernetes moved the complexity

Kubernetes was adopted to simplify operations. The complexity moved to the control plane and the debugging. What has to exist before it helps.

Written

The situation

Kubernetes was adopted to simplify things. Deploy without thinking about servers. Declare what you want and the platform makes it so. Failed pods restart on their own. The team would focus on code.

Early adoption felt smooth. Deploy a pod, expose a service, it works. The marketing, the success stories at scale and the clean first weeks all pointed the same way.

What was wrong

The complexity moved, from the servers to the people running the platform.

Infrastructure complexity became operational complexity. Nobody provisioned servers any more, and everybody managed node pools, pod scheduling, resource requests and limits. The load balancer was gone, and ingress controllers, service meshes and network policies arrived.

Server complexity became control plane complexity. An etcd failure was a cluster failure. API server overload was system-wide degradation. The team was now running a distributed system that ran the servers.

Script complexity became system complexity. Deploy scripts became operator controllers. Configuration files became custom resources. Ad-hoc fixes became admission controllers. More powerful, and harder to predict when it failed.

In normal operation this showed up as load on people. Pod lifecycle, quotas, network policies, storage classes, RBAC and admission controllers all had to be understood. In an incident it showed up as debugging. A pod will not start. Resource limits? Image pull? A network policy? Storage? The scheduler? The fault could be in the application, the platform, the control plane or the hardware underneath.

Self-healing restarts a failed pod. It does not fix the bug, the wrong limit or the broken manifest. Declarative configuration does exactly what you declare: a typo in a selector is a service that finds no pods.

What changed

Kubernetes amplifies the maturity a team brings. Teams that already understood networking, storage and scheduling got better tools to express it. Teams that expected the platform to supply that understanding found the complexity leaking through every layer. Each layer made it harder to debug.

So four things have to exist first. Clear ownership: when a pod fails, someone owns the failure, because unclear ownership is unclear debugging. Observability: logs, metrics, events and traces have to be correlated across application, platform and control plane. Discipline: requests with limits, network policies that are not permissive, manifests validated before production. Operational maturity, because the platform reveals its absence.

Before adopting it, ask what it is for. Hiding complexity you do not understand, or expressing complexity you do.

The check in the review

All field notes