Kubernetes

What happens behind the scenes when you create a Deployment object?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

The following occurs when you run kubectl create deployment some_deployment --image=nginx

  1. HTTP request sent to kubernetes API server on the cluster to create a new deployment
  2. A new Pod object is created and scheduled to one of the workers nodes
  3. Kublet on the worker node notices the new Pod and instructs the Container runtime engine to pull the image from the registry
  4. A new container is created using the image that was just pulled