当前位置:网站首页>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
#
#**********************************************************************************************
边栏推荐
- What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
- vim异步问题
- Redis分布式锁的实现
- GVM use
- What if win11u disk refuses access? An effective solution to win11u disk access denial
- How does the computer save web pages to the desktop for use
- Advantages of RFID warehouse management system solution
- Sword finger offer II 80-100 (continuous update)
- HMS Core 机器学习服务
- TweenMax表情按钮js特效
猜你喜欢

网络命名空间

What if the computer page cannot be full screen? The solution of win11 page cannot be full screen

6月“墨力原创作者计划”获奖名单公布!邀您共话国产数据库

FastDfs的快速入门,三分钟带你上传下载文件到云服务器

Some suggestions for interface design

华为ensp模拟器实现通信安全(交换机)

Redis:Redis配置文件相关配置、Redis的持久化

测试员的算法面试题-找众数

Explication détaillée du mécanisme de distribution des événements d'entrée multimodes

Quelques suggestions pour la conception de l'interface
随机推荐
面对同样复杂的测试任务为什么大老很快能梳理解决方案,阿里十年测试工程师道出其中的技巧
Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
《动手学深度学习》(三) -- 卷积神经网络 CNN
How does win11 search for wireless displays? Win11 method of finding wireless display device
What are the functional modules of RFID warehouse management system solution
go defer的使用说明
idea配置标准注释
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
Idea restore default shortcut key
Android原生数据库的基本使用和升级
ACM组合计数入门
Reinforcement learning - learning notes 2 | value learning
LeetCode 7. 整数反转
How does wincc7.5 SP1 find variables and their positions through cross indexing?
Summary of the mistakes in the use of qpainter in QT gobang man-machine game
MySQL --- 数据库查询 - 聚合函数的使用、聚合查询、分组查询
The concept and application of hash table
【微服务|SCG】Predicate的使用
[micro service SCG] use of predict