当前位置:网站首页>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
#
#**********************************************************************************************
边栏推荐
- acwing 3302. Expression evaluation
- ApplicationContext 与 BeanFactory 区别(MS)
- Nmap scan
- What if the brightness of win11 is locked? Solution to win11 brightness locking
- [solution] paddlepaddle 2 X call static graph mode
- idea配置标准注释
- 多模輸入事件分發機制詳解
- [server data recovery] a case of RAID5 data recovery stored in a brand of server
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- Hwinfo hardware detection tool v7.26 green version
猜你喜欢
torch.tensor和torch.Tensor的区别
Quelques suggestions pour la conception de l'interface
RFID仓库管理系统解决方案有哪些功能模块
仿ps样式js网页涂鸦板插件
How does wincc7.5 SP1 find variables and their positions through cross indexing?
Reinforcement learning - learning notes 2 | value learning
Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)
Leetcode+ 81 - 85 monotone stack topic
admas零件名重复
华为ensp模拟器实现通信安全(交换机)
随机推荐
字节测试工程师十年经验直击UI 自动化测试痛点
Quelques suggestions pour la conception de l'interface
RFID仓储管理系统解决方案的优点
LeetCode 871. Minimum refueling times
How does wincc7.5 SP1 find variables and their positions through cross indexing?
Test case (TC)
Go language notes (2) some simple applications of go
嵌入式TC 测试用例
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
华为ensp模拟器实现通信安全(交换机)
tcp为啥是三次握手和四次挥手
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
Vue cleans up the keepalive cache scheme in a timely manner
仿ps样式js网页涂鸦板插件
宝塔 7.9.2 宝塔控制面板绕过 手机绑定认证 绕过官方认证
Hwinfo hardware detection tool v7.26 green version
idea配置标准注释
ACM组合计数入门
【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”