What is a rollout in Kubernetes?

5/10/2019

I just started to learn Kubernetes. I know what a rollback is, but I have never heard of rollout. Is "rollout" related to rollback in any way? Or "rollout is similar to deploying something?

(

-- Jin Lee
kubernetes

2 Answers

5/10/2019

Rollout simply means rolling update of application. Rolling update means that application is updated gradually, gracefully and with no downtime. So when you push new version of your application's Docker image and then trigger rollout of your deployment Kubernetes first launches new pod with new image while keeping old version still running. When new pod settles down (passes its readiness probe) - Kubernetes kills old pod and switches Service endpoints to point to new version. When you have multiple replicas it will happen gradually until all replicas are replaced with new version.

This behavior however is not the only one possible. You can tune Rolling Update settings in your deployments spec.strategy settings.

Official docs even have interactive tutorial on Rolling Update feature, it perfectly explains how it works: https://kubernetes.io/docs/tutorials/kubernetes-basics/update/update-intro/

-- Vasily Angapov
Source: StackOverflow

5/10/2019

Rollout is opposite to Rollback. Yes it means deploying new application or upgrading existing application.

Note: Some more details on the paragraph that you referred. Let's say we have 5 replicas. On rollout, we can configure how many applications should upgrade at a time and what should happen if there is a failure in the new configuration using maxUnavailabe, maxSurge and readinessProbe. Refer refer about all this parameters and tune accordingly.

-- Dinesh Balasubramanian
Source: StackOverflow