- User perform Kubernetes deployment directly
- Deployment performs replication
- POD creation
- Container creation
- Kubernetes deployment can be done by
- Command (Internally a yaml file is created when command fired)
- Yaml file
Create and Edit deployment
Syntax to Create Deployment
kubectl create deployment <deployment-name> --image=<image_name>
Example :
kubectl create deployment nginx-depl --image=nginx
Syntax to edit Deployment
kubectl edit deployment <deployment-name>
Example :
kubectl edit deployment nginx-depl
Now you can check if the old pod is terminated and new pod is recreated

Debug a deployment
- logs
- describe
- bash terminal
Example of mongo db




Delete Deployment
