Skip to content
Theory · Why Kubernetes · lesson 2 of 7

Desired state

Nobody tells a thermostat "turn the radiator on for ten minutes". You tell it "keep 21 degrees", and from there it decides when to heat. That is the main difference between Kubernetes and Docker: Docker runs commands, while Kubernetes holds the result you described. Let's see what this looks like in practice and what happens when reality drifts from the description.

In this lesson

  • A command and a description
  • Handing the description to the cluster
  • A controller compares
  • Deleting a Pod
  • Change the description, not the cluster
  • Common mistake
  • Key points