当前位置:网站首页>y56.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(二九)
y56.第三章 Kubernetes从入门到精通 -- 业务镜像版本升级及回滚(二九)
2022-07-04 20:12:00 【Raymond999999】
12.业务镜像版本升级及回滚
12.1 传统虚拟机中的代码部署

开发把代码提交到gitlab,运维或开发用jenkins从gitlab clone代码,也可以是jenkins 通过ssh连到部署服务器clone代码,使用sonarqube对源码进行扫描,扫描完后没有问题,使用maven、ant等工具编译代码,编译好后生成jar包或war包,用scp、ansibel、SaltStack等工具分发编译好的jar包或war包,从haproxy或nginx等负载均衡器下线要分发的服务器,停止web服务,代码替换,启动web服务,测试web服务器url是否能正常访问,从haproxy或nginx等负载均衡器上线服务器。
shell 脚本实现自动化部署与回滚:
[email protected]:/data/scripts/neteagle# vim raymond-app1-deploy.sh
#!/bin/bash
#
#**********************************************************************************************
边栏推荐
- 基于OpenCV haarcascades的对象检测
- Redis分布式锁的实现
- Redis:Redis配置文件相关配置、Redis的持久化
- How does wincc7.5 SP1 find variables and their positions through cross indexing?
- Golang中UTF编码和字符集
- 黄金k线图中的三角形有几种?
- word中使用自动插入题注功能
- 哈希表、哈希函数、布隆过滤器、一致性哈希
- acwing 3302. 表达式求值
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
猜你喜欢

Solution of 5g unstable 5g signal often dropped in NetWare r7000 Merlin system

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

多模输入事件分发机制详解

Sword finger offer II 80-100 (continuous update)

Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)

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

WinCC7.5 SP1如何通过交叉索引来寻找变量及其位置?

【服务器数据恢复】某品牌服务器存储raid5数据恢复案例

【1200. 最小绝对差】

伦敦银走势图分析的新方法
随机推荐
admas零件名重复
uniapp 富文本编辑器使用
D3.js+Three.js数据可视化3d地球js特效
Vue cleans up the keepalive cache scheme in a timely manner
黄金k线图中的三角形有几种?
Advantages of semantic tags and block level inline elements
二叉树的四种遍历方式以及中序后序、前序中序、前序后序、层序创建二叉树【专为力扣刷题而打造】
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
搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2
Automatic generation of interface automatic test cases by actual operation
【申博攻略】六.如何联系心仪的博导
Embedded TC test case
Test case (TC)
PS竖排英文和数字文字怎么改变方向(变竖直显示)
acwing 3302. 表达式求值
【微服务|SCG】Predicate的使用
See how Tencent does interface automation testing
Automatic insertion of captions in word
Jekins initialization password not found or not found
扩展你的KUBECTL功能