当前位置:网站首页>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
#
#**********************************************************************************************
边栏推荐
- How does win11 search for wireless displays? Win11 method of finding wireless display device
- What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
- 搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2
- Jekins initialization password not found or not found
- [1200. Différence absolue minimale]
- Embedded TC test case
- [micro service SCG] use of predict
- What if win11u disk refuses access? An effective solution to win11u disk access denial
- The concept and application of hash table
- Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
猜你喜欢
admas零件名重复
[1200. Différence absolue minimale]
HWiNFO硬件检测工具v7.26绿色版
多模輸入事件分發機制詳解
What are the functional modules of RFID warehouse management system solution
RFID仓储管理系统解决方案的优点
ApplicationContext 与 BeanFactory 区别(MS)
网件r7000梅林系统5g不稳定 5g信号经常掉线解决方法
Advantages of RFID warehouse management system solution
[observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
随机推荐
《动手学深度学习》(三) -- 卷积神经网络 CNN
黄金k线图中的三角形有几种?
【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”
What are the functional modules of RFID warehouse management system solution
语义化标签的优势和块级行内元素
Day24:文件系统
RFID仓库管理系统解决方案有哪些功能模块
Browser render page pass
__init__() missing 2 required positional arguments 不易查明的继承错误
[1200. Minimum absolute difference]
LeetCode 871. Minimum refueling times
LeetCode 7. 整数反转
Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t
Go notes (1) go language introduction and characteristics
福昕PDF编辑器v10.1.8绿色版
Flet tutorial 07 basic introduction to popupmenubutton (tutorial includes source code)
Embedded TC test case
冰河的海报封面
acwing 3302. Expression evaluation