当前位置:网站首页>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
#
#**********************************************************************************************
边栏推荐
- Sword finger offer II 80-100 (continuous update)
- Render function and virtual DOM
- What if win11u disk refuses access? An effective solution to win11u disk access denial
- 【1200. 最小绝对差】
- 多模输入事件分发机制详解
- idea配置标准注释
- acwing 3302. 表达式求值
- [observation] Lenovo: 3x (1+n) smart office solution, releasing the "multiplier effect" of office productivity
- FastDfs的快速入门,三分钟带你上传下载文件到云服务器
- 企业数字化转型最佳实践案例:基于云的数字化平台系统安全措施简介与参考
猜你喜欢
阿里测试师用UI自动化测试实现元素定位
idea配置标准注释
Sword finger offer II 80-100 (continuous update)
Redis:Redis配置文件相关配置、Redis的持久化
From automation to digital twins, what can Tupo do?
Detailed explanation of multi-mode input event distribution mechanism
What if the WiFi of win11 system always drops? Solution of WiFi total drop in win11 system
Fleet tutorial 08 introduction to AppBar toolbar Basics (tutorial includes source code)
看腾讯大老如何做接口自动化测试
D3.js+Three.js数据可视化3d地球js特效
随机推荐
【观察】联想:3X(1+N)智慧办公解决方案,释放办公生产力“乘数效应”
Day24:文件系统
Idea configuration standard notes
搭建一个仪式感点满的网站,并内网穿透发布到公网 1/2
HMS Core 机器学习服务
JS closure
冰河的海报封面
D3.js+Three.js数据可视化3d地球js特效
看腾讯大老如何做接口自动化测试
Advantages of RFID warehouse management system solution
From automation to digital twins, what can Tupo do?
Record the online bug solving list (unfinished to be continued 7/4)
RFID仓库管理系统解决方案有哪些功能模块
async await 在map中使用
[solution] paddlepaddle 2 X call static graph mode
LeetCode+ 81 - 85 单调栈专题
Redis:Redis配置文件相关配置、Redis的持久化
Advantages of semantic tags and block level inline elements
JS卡牌样式倒计时天数
Fleet tutorial 08 introduction to AppBar toolbar Basics (tutorial includes source code)