mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-07 01:16:37 +00:00
464 B
464 B
Declarative vs imperative in Kubernetes
-
Virtually everything we create in Kubernetes is created from a spec
-
Watch for the
specfields in the YAML files later! -
The spec describes how we want the thing to be
-
Kubernetes will reconcile the current state with the spec
(technically, this is done by a number of controllers) -
When we want to change some resource, we update the spec
-
Kubernetes will then converge that resource