We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Desired State

When you delete a pod managed by a deployment, Kubernetes creates a new pod in its place as soon as it can. It's kinda like chopping heads off a hydra.

That's because the desired state described in our deployment says we want 20 pods running at all times. If we delete one, Kubernetes' controllers detect that the current state doesn't match the desired state, and a replacement is created to make them match again.

Assignment

Twenty copies of a chat app with zero users is... a bit much. Money for hardware doesn't grow on trees. Change the desired state to 2 pods by editing the deployment directly.

  1. spec:
      ...
      replicas: 2
      ...

Submit the shell checks.