Deployment strategy in Kubernetes

For example you have 5 replicas of your application instance deployed. There are 2 methods to update them: