当前位置:网站首页>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
#
#**********************************************************************************************
边栏推荐
- Fleet tutorial 08 introduction to AppBar toolbar Basics (tutorial includes source code)
- LeetCode 7. 整数反转
- Remember to build wheels repeatedly at one time (the setting instructions of obsidian plug-in are translated into Chinese)
- js 3D爆炸碎片图片切换js特效
- Why is TCP three handshakes and four waves
- word中插入图片后,图片上方有一空行,且删除后布局变乱
- 扩展你的KUBECTL功能
- Idea case shortcut
- FastDfs的快速入门,三分钟带你上传下载文件到云服务器
- 多模输入事件分发机制详解
猜你喜欢

What if win11u disk refuses access? An effective solution to win11u disk access denial

多模輸入事件分發機制詳解

Render function and virtual DOM

admas零件名重复

Introduction to pressure measurement of JMeter

【1200. 最小絕對差】

torch.tensor和torch.Tensor的区别

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

Idea configuration standard notes

D3.js+Three.js数据可视化3d地球js特效
随机推荐
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
五子棋 上班摸鱼工具 可局域网/人机
Record the online bug solving list (unfinished to be continued 7/4)
acwing 3302. Expression evaluation
华为ensp模拟器 实现多个路由器的设备可以相互访问
Google colab踩坑
PermissionError: [Errno 13] Permission denied: ‘data.csv‘
[micro service SCG] use of predict
LeetCode 8. 字符串转换整数 (atoi)
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
See how Tencent does interface automation testing
Advantages of semantic tags and block level inline elements
多模輸入事件分發機制詳解
The concept and application of hash table
How does the computer save web pages to the desktop for use
hash 表的概念及应用
LeetCode 871. Minimum refueling times
JS closure
网络命名空间
In the face of the same complex test task, why can the elder sort out the solution quickly? Ali's ten-year test engineers showed their skills