Skip to main content

What Happens When You Run kubectl apply?

Question

Lets say you are updating the container image in a Kubernetes Deployment YAML file and run kubectl apply -f deployment.yaml.

What happens internally after executing this command, and how does Kubernetes update the running application?