Introduction
When you want to run and manage multiple copies of your app in Kubernetes, you use a Deployment. It helps keep your app running smoothly by automatically restarting or updating it. Writing a Deployment in YAML lets you tell Kubernetes exactly how to do this.
When you want to run several copies of a web app to handle more users.
When you need to update your app without downtime by rolling out changes gradually.
When you want Kubernetes to restart your app automatically if it crashes.
When you want to manage app versions and roll back if something goes wrong.
When you want to define your app setup in a file to share or reuse later.