5.5.0升级至5.6.0文档
版本变更
控制台升级
- helm
- Basic Edition
- 执行 sql 升级脚本
- 进入 Rainbond-控制台组件
kubectl exec -it $(kubectl get po -n rbd-system | grep rbd-app-ui | grep Running | sed -n '1p' |awk '{print $1}' ) bash
- 进入 Rainbond-控制台组件后,执行以下命令
curl https://rainbond-script.oss-cn-hangzhou.aliyuncs.com/upgrade-5.6.0.sh | bash
- 执行 sql 升级脚本
- 如控制台为 allinone 启动,执行以下操作
docker exec -it rainbond-allinone bash
curl https://rainbond-script.oss-cn-hangzhou.aliyuncs.com/upgrade-5.6.0.sh | bash
- 如控制台通过应用市场安装,进入 Rainbond-控制台组件后,执行以下命令
curl https://rainbond-script.oss-cn-hangzhou.aliyuncs.com/upgrade-5.6.0.sh | bash
- 升级控制台
- 如控制台为 allinone 启动,执行以下操作
docker stop rainbond-allinone && docker rm rainbond-allinone
#该命令参数需要和之前启动的rainbond-allinone容器一致
docker run -d -p 7070:7070 -v ~/.ssh:/root/.ssh -v ~/rainbonddata:/app/data \
--name=rainbond-allinone --restart=always \
registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond:v5.6.0-release-allinone
如控制台为通过应用市场安装,进入控制台应用内,选择升级到 5.6.0 版本
数据中心升级
- helm
Basic Edition
数据中心端升级
更新镜像源
helm upgrade --set Component.rbd_app_ui.image=registry.cn-hangzhou.aliyuncs.com/goodrain/rainbond:v5.6.0-release-allinone --set operator.image.tag=v2.3.0 --set Cluster.installVersion=v5.6.0-release rainbond rainbond/rainbond-cluster
确认 pod 更新状态
确认所有 pod 滚动更新一遍,根据网络不同大概3分钟左右
kubectl get po -n rbd-system
插件升级
获取镜像并推送到私有仓库
docker pull registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-mesh-data-panel:v5.6.0-release
docker tag registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-mesh-data-panel:v5.6.0-release goodrain.me/rbd-mesh-data-panel:latest
docker push goodrain.me/rbd-mesh-data-panel:latest
docker pull registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-init-probe:v5.6.0-release
docker tag registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-init-probe:v5.6.0-release goodrain.me/rbd-init-probe:latest
docker push goodrain.me/rbd-init-probe:latest
注意:推送镜像之前,需要提前登录下仓库,避免出现镜像推送失败的情况
构建网络治理插件
- 数据中心端升级
- 更新 grctl 命令
docker run -it --rm -v /:/rootfs registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-grctl:v5.6.0-release copy
mv /usr/local/bin/rainbond-grctl /usr/local/bin/grctl && grctl install
注意:如果遇到无法安装 grctl 可以参考grctl安装文档
- 执行升级命令
grctl cluster upgrade --new-version=v5.6.0-release
- 插件升级
- 获取镜像并推送到私有仓库
docker pull registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-mesh-data-panel:v5.6.0-release
docker tag registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-mesh-data-panel:v5.6.0-release goodrain.me/rbd-mesh-data-panel:latest
docker push goodrain.me/rbd-mesh-data-panel:latest
docker pull registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-init-probe:v5.6.0-release
docker tag registry.cn-hangzhou.aliyuncs.com/goodrain/rbd-init-probe:v5.6.0-release goodrain.me/rbd-init-probe:latest
docker push goodrain.me/rbd-init-probe:latest
注意:推送镜像之前,需要提前登录下仓库,避免出现镜像推送失败的情况
- 构建网络治理插件