What is kubernetes replica set update#
Rolling Update − This feature gradually brings down the old RC and brings up the new one. This results in quick deployment however it will result in downtime when the old pods are down and the new pods have not come up. Recreate − This feature will kill all the existing RC and then bring up the new ones. Deployment Strategiesĭeployment strategies help in defining how the new RC should replace the existing RC. The user can create or update the deployment by using DeploymentSpec.PodTemplateSpec = oldRC.PodTemplateSpec. Rollback − We can roll back the deployment or the deployment in progress. Recreating the same deployment will resume it.
In this, the existing deployment will be settled and new deployment will be created.ĭeleting − The user can pause/cancel the deployment by deleting it before it is completed. Updating − The user can update the ongoing deployment before it is completed. It has the capability to change the deployment midway. We have got a new controller in the Kubernetes master called the deployment controller which makes it happen.
They provide many updated features of matchLabels and selectors. They have the capability to update the replica set and are also capable of rolling back to the previous version. They manage the deployment of replica sets which is also an upgraded version of the replication controller. Deployments are upgraded and higher version of replication controller.