What happens behind the scenes when you create a Deployment object?
Answer
The following occurs when you run kubectl create deployment some_deployment --image=nginx
- HTTP request sent to kubernetes API server on the cluster to create a new deployment
- A new Pod object is created and scheduled to one of the workers nodes
- Kublet on the worker node notices the new Pod and instructs the Container runtime engine to pull the image from the registry
- A new container is created using the image that was just pulled