当前位置:网站首页>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 : 边栏推荐
- [quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design
- Unity编辑器扩展 UI控件篇
- 零道云新UI设计中
- 解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
- How to retrieve the root password of MySQL if you forget it
- B站UP搭建世界首个纯红石神经网络、基于深度学习动作识别的色情检测、陈天奇《机器学编译MLC》课程进展、AI前沿论文 | ShowMeAI资讯日报 #07.05
- Ffplay document [easy to understand]
- leetcode刷题:二叉树17(从中序与后序遍历序列构造二叉树)
- 14. Users, groups, and permissions (14)
- 【数字IC验证快速入门】7、验证岗位中必备的数字电路基础知识(含常见面试题)
猜你喜欢

港股将迎“最牛十元店“,名创优品能借IPO突围?
![[quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design](/img/92/7af0db21b3d7892bdc5dce50ca332e.png)
[quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design

如何形成规范的接口文档

【愚公系列】2022年7月 Go教学课程 004-Go代码注释

Leetcode skimming: binary tree 17 (construct binary tree from middle order and post order traversal sequence)

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

leetcode刷题:二叉树17(从中序与后序遍历序列构造二叉树)

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

Leetcode(695)——岛屿的最大面积

Go language | 02 for loop and the use of common functions
随机推荐
- Oui. Net Distributed Transaction and Landing Solution
Leetcode brush question: binary tree 14 (sum of left leaves)
Process file and directory names
基金网上开户安全吗?去哪里开,可以拿到低佣金?
DP:树DP
死信队列入门(两个消费者,一个生产者)
leetcode刷题:二叉树11(平衡二叉树)
Go language | 01 wsl+vscode environment construction pit avoidance Guide
How to retrieve the root password of MySQL if you forget it
DP: tree DP
document方法
Leetcode skimming: binary tree 12 (all paths of binary tree)
July 4, 2022 - July 10, 2022 (UE4 video tutorial MySQL)
leetcode刷题:二叉树18(最大二叉树)
PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
How to choose a good external disk platform, safe and formal?
信息学奥赛一本通 1337:【例3-2】单词查找树 | 洛谷 P5755 [NOI2000] 单词查找树
js方法传Long类型id值时会出现精确损失
Leetcode brush questions: binary tree 18 (largest binary tree)
B站UP搭建世界首个纯红石神经网络、基于深度学习动作识别的色情检测、陈天奇《机器学编译MLC》课程进展、AI前沿论文 | ShowMeAI资讯日报 #07.05