Controller Kubernetes
A process that continuously compares desired state with actual state and does something about the difference. Kubernetes is fundamentally a collection of such loops — everything else is detail.
The pattern is called reconciliation: read the desired state from the API server, observe reality, take the smallest possible action, repeat. The loop is deliberately idempotent and holds no state between iterations, which makes it robust — restart it mid-task and it simply works out the situation again. Built-in controllers manage Deployment, ReplicaSet, Job, Node and thirty-odd other objects, all bundled into kube-controller-manager. Write your own controller for your own resource type (a CRD) and you have built an operator. The consequence of the model is that Kubernetes is declarative all the way down: you never describe the steps, only the goal.