Kubernetes
Definition
Kubernetes stores desired state (Deployments, Services, pods) through an API server backed by etcd, and runs control loops (the scheduler, controllers and the kubelet on each node) that converge the cluster towards it.
In practice
A Deployment declares a pod template and a replica count and manages ReplicaSets to roll between versions. The scheduler binds each new pod to a node with enough requested capacity, the kubelet starts its containers and runs probes, and Services route traffic to ready pods. A crashed container is restarted in place; pods on a lost node are recreated elsewhere after detection and a toleration period.
Kubernetes does not make a service highly available on its own: you still need enough replicas, spread across nodes and zones, with spare capacity for replacements. kubectl apply only stores desired state, and a control plane outage leaves running pods alone but stops all scheduling and healing. For a few services, a managed container platform or serverless is usually far less to operate.
Example
A Deployment with replicas: 3 loses a node; after about 40 seconds the node is NotReady, its pod leaves the Service endpoints, and the ReplicaSet controller creates a replacement that the scheduler places on a node with free requests.