Kubernetes Rolling Updates and Rollbacks
Contents
Rollout and Versioning
What's the Version?
The Version is a
For example, nginx:1.7.0 to nginx:1.7.1
image
version of the container.For example, nginx:1.7.0 to nginx:1.7.1
Rollout Commands
Rollout Status
|
|
Rollout History
|
|
Deployment Strategy
Let's assume
You need to upgrade nginx:1.7.0 to nginx:1.7.1 now.
Recreate
Recreate
Delete all application and create all application at a time.
So, during the time, users cannot access the application.
So, during the time, users cannot access the application.
Rolling Update
Rolling Update
Delete a few
Then users can access the application even if it’s in the maintenance time.
POD
s and create a few POD
s at a time.Then users can access the application even if it’s in the maintenance time.
Check Strategy of the Deployment
StrategyType
You just need to check
StrategyType
in the description of the deployment.
|
|
Apply Upgrade
|
|
Rollback
Command
|
|
Check Upgrade Status
|
|
|
|