当前位置:网站首页>Y56. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (29)
Y56. Chapter III kubernetes from entry to proficiency -- business image version upgrade and rollback (29)
2022-07-04 21:12:00 【Raymond999999】
12. Business image version upgrade and rollback
12.1 Code deployment in traditional virtual machines
The developer submits the code to gitlab, For operation and maintenance or development jenkins from gitlab clone Code , It can also be jenkins adopt ssh Connect to the deployment server clone Code , Use sonarqube Scan the source code , There is no problem after scanning , Use maven、ant And other tools to compile code , After compiling, generate jar Package or war package , use scp、ansibel、SaltStack And other tools to distribute the compiled jar Package or war package , from haproxy or nginx Wait until the load balancer goes offline to the server to be distributed , stop it web service , Code replacement , start-up web service , test web The server url Whether it can be accessed normally , from haproxy or nginx Wait for the load balancer to go online .
shell Scripts enable automated deployment and rollback :
[email protected]:/data/scripts/neteagle# vim raymond-app1-deploy.sh
#!/bin/bash
#
#**********************************************************************************************
边栏推荐
- Quelques suggestions pour la conception de l'interface
- Après l'insertion de l'image dans le mot, il y a une ligne vide au - dessus de l'image, et la disposition est désordonnée après la suppression
- 网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
- What if win11u disk refuses access? An effective solution to win11u disk access denial
- 分析伦敦银走势图的技巧
- Why is TCP three handshakes and four waves
- 宝塔 7.9.2 宝塔控制面板绕过 手机绑定认证 绕过官方认证
- How does wincc7.5 SP1 find variables and their positions through cross indexing?
- 插入排序,选择排序,冒泡排序
- ApplicationContext 与 BeanFactory 区别(MS)
猜你喜欢
随机推荐
Hands on deep learning (III) -- convolutional neural network CNN
From automation to digital twins, what can Tupo do?
acwing 3302. Expression evaluation
【申博攻略】六.如何联系心仪的博导
记一次重复造轮子(Obsidian 插件设置说明汉化)
多模輸入事件分發機制詳解
async await 在map中使用
Implementation of redis distributed lock
UTF encoding and character set in golang
分析伦敦银走势图的技巧
Play the music of youth
福昕PDF编辑器v10.1.8绿色版
Procurement in software development
软件开发过中的采购
acwing 3302. 表达式求值
Ten years' experience of byte test engineer directly hits the pain point of UI automation test
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
ACM组合计数入门
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
HMS Core 统一扫码服务