当前位置:网站首页>Y57. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (30)
Y57. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (30)
2022-07-05 20:17:00 【Raymond999999】
12.3 Rolling update and rollback
At the designated deployment Pass through kubectl set image Specify the new version of Mirror image :tag To achieve the purpose of updating the code .
Build three different versions of nginx Mirror image , For the first time v1 edition , The latter group is gradually upgraded to v2 And v3, Test the image version upgrade and rollback operation
deployment The controller supports two update strategies : The default is scrolling
1. Scroll to update (rolling update):
Rolling update is the default update strategy , Rolling update is to create a new version based on the new version image pod, Then delete some old versions pod, Then create a new version pod, Delete some old versions pod, Until the version pod Delete complete , The advantage of rolling update is that the service will not be unavailable during the upgrade process , The disadvantage is that during the upgrade process, two versions will coexist in a short time .
The specific upgrade process is after the update operation k8s A new version will be created ReplicaSet controller , Deleting the old version ReplicaSet Under the controller pod At the same time, it will be in the new version ReplicaSet Create a new pod, Until the old version pod After all are deleted, put the version ReplicaSet The controller is also recycled .
While performing the rolling update , In order to ensure the availability of services , Not available in the current controller pod(pod It is necessary to pull the image, which is not available during creation and probe detection ) Cannot exceed a certain range , Because at least a certain amount of pod To ensure that the service can be accessed by the client normally , Can be specified by the following parameters : 边栏推荐
- Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
- Practical demonstration: how can the production research team efficiently build the requirements workflow?
- 期货如何网上开户?安不安全?
- 【数字IC验证快速入门】2、通过一个SoC项目实例,了解SoC的架构,初探数字系统设计流程
- 2022北京眼睛健康用品展,护眼产品展,中国眼博会11月举办
- 本季度干货导航 | 2022年Q2
- Go language learning tutorial (XV)
- 计算lnx的一种方式
- Process file and directory names
- IC科普文:ECO的那些事儿
猜你喜欢

PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

How to select the Block Editor? Impression notes verse, notation, flowus

leetcode刷题:二叉树12(二叉树的所有路径)

Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)

leetcode刷题:二叉树16(路径总和)

JVMRandom不可设置种子|问题追溯|源码追溯

Zero cloud new UI design

【数字IC验证快速入门】1、浅谈数字IC验证,了解专栏内容,明确学习目标

. Net distributed transaction and landing solution

基础篇——配置文件解析
随机推荐
Enter the parallel world
Codeforces Round #804 (Div. 2) - A, B, C
Go language | 03 array, pointer, slice usage
2023年深圳市绿色低碳产业扶持计划申报指南
[quick start to digital IC Verification] 8. Typical circuits in digital ICs and their corresponding Verilog description methods
leetcode刷题:二叉树17(从中序与后序遍历序列构造二叉树)
c语言oj得pe,ACM入门之OJ~
死信队列入门(两个消费者,一个生产者)
基础篇——配置文件解析
实操演示:产研团队如何高效构建需求工作流?
Go language learning tutorial (XV)
2022年7月4日-2022年7月10日(ue4视频教程mysql)
Bzoj 3747 poi2015 kinoman segment tree
Is it safe for CICC fortune to open an account online?
19 Mongoose模块化
How to retrieve the root password of MySQL if you forget it
Some problems encountered in cocos2d-x project summary
BZOJ 3747 POI2015 Kinoman 段树
Cocos2d-x项目总结中的一些遇到的问题
[quick start of Digital IC Verification] 1. Talk about Digital IC Verification, understand the contents of the column, and clarify the learning objectives