Apollo升级

Apollo升级

  • 当前版本1.8.0,计划升级至2.0.1

一、升级原因

  • 版本更新带来的新增功能和bug修复
  • 修复已知版本的安全漏洞问题

二、升级说明

升级说明在release页面:https://github.com/apolloconfig/apollo/releases

升级版本:

1.8.0->1.8.1->1.8.2->1.9.0->1.9.1>2.0.0>2.0.1

三、升级步骤

备份数据库->1.8.0->1.8.1->1.8.2->1.9.0->1.9.1>1.9.2->备份数据库->2.0.0>2.0.1

1、1.8.0升级到1.8.1

1.1、备份当前各环境的数据库ApolloConfigDB、 ApolloPortalDB
1.2、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:1.9.0
docker pull apolloconfig/apollo-configservice:1.9.0
docker pull apolloconfig/apollo-portal:1.9.0
	
docker tag apolloconfig/apollo-adminservice:1.9.0 harbor.com/tools/apollo:adminservice-1.9.0
docker tag apolloconfig/apollo-configservice:1.9.0 harbor.com/tools/apollo:configservice-1.9.0
docker tag apolloconfig/apollo-portal:1.9.0 harbor.com/tools/apollo:portal-1.9.0

docker push harbor.com/tools/apollo:adminservice-1.9.0
docker push harbor.com/tools/apollo:portal-1.9.0
docker push harbor.com/tools/apollo:configservice-1.9.0
1.3、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-adminservice

# 2、修改stg环境deployment镜像版本
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-adminservice

# 3、修改生产环境deployment镜像版本
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
2、1.8.1升级到1.8.2

在这里插入图片描述

2.1、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:1.9.0
docker pull apolloconfig/apollo-configservice:1.9.0
docker pull apolloconfig/apollo-portal:1.9.0
	
docker tag apolloconfig/apollo-adminservice:1.9.0 harbor.com/tools/apollo:adminservice-1.9.0
docker tag apolloconfig/apollo-configservice:1.9.0 harbor.com/tools/apollo:configservice-1.9.0
docker tag apolloconfig/apollo-portal:1.9.0 harbor.com/tools/apollo:portal-1.9.0

docker push harbor.com/tools/apollo:adminservice-1.9.0
docker push harbor.com/tools/apollo:portal-1.9.0
docker push harbor.com/tools/apollo:configservice-1.9.0
2.2、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-adminservice

# 2、修改stg环境deployment镜像版本
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-adminservice

# 3、修改生产环境deployment镜像版本
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
3、1.8.2升级到1.9.0

在这里插入图片描述

3.1、执行升级sql
#Apply apolloconfigdb-v180-v190.sql to ApolloConfigDB
https://github.com/ctripcorp/apollo/blob/master/scripts/sql/delta/v180-v190/apolloconfigdb-v180-v190.sql
#Apply apolloportaldb-v180-v190.sql to ApolloPortalDB
https://github.com/ctripcorp/apollo/blob/master/scripts/sql/delta/v180-v190/apolloportaldb-v180-v190.sql
3.2、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:1.9.0
docker pull apolloconfig/apollo-configservice:1.9.0
docker pull apolloconfig/apollo-portal:1.9.0
	
docker tag apolloconfig/apollo-adminservice:1.9.0 harbor.com/tools/apollo:adminservice-1.9.0
docker tag apolloconfig/apollo-configservice:1.9.0 harbor.com/tools/apollo:configservice-1.9.0
docker tag apolloconfig/apollo-portal:1.9.0 harbor.com/tools/apollo:portal-1.9.0

docker push harbor.com/tools/apollo:adminservice-1.9.0
docker push harbor.com/tools/apollo:portal-1.9.0
docker push harbor.com/tools/apollo:configservice-1.9.0
3.3、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-adminservice

# 2、修改stg环境deployment镜像版本
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-adminservice

# 3、修改生产环境deployment镜像版本
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
4、1.9.0升级到1.9.1

在这里插入图片描述

4.1、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:1.9.1
docker pull apolloconfig/apollo-configservice:1.9.1
docker pull apolloconfig/apollo-portal:1.9.1

docker tag apolloconfig/apollo-adminservice:1.9.1 harbor.com/tools/apollo:adminservice-1.9.1
docker tag apolloconfig/apollo-configservice:1.9.1 harbor.com/tools/apollo:configservice-1.9.1
docker tag apolloconfig/apollo-portal:1.9.1 harbor.com/tools/apollo:portal-1.9.1

docker push harbor.com/tools/apollo:adminservice-1.9.1
docker push harbor.com/tools/apollo:portal-1.9.1
docker push harbor.com/tools/apollo:configservice-1.9.1
4.2、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-adminservice

# 2、修改stg环境deployment镜像版本
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-adminservice

# 3、修改生产环境deployment镜像版本
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
5、1.9.1升级到1.9.2

在这里插入图片描述

5.1、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:1.9.2
docker pull apolloconfig/apollo-configservice:1.9.2
docker pull apolloconfig/apollo-portal:1.9.2
	
docker tag apolloconfig/apollo-adminservice:1.9.2 harbor.com/tools/apollo:adminservice-1.9.2
docker tag apolloconfig/apollo-configservice:1.9.2 harbor.com/tools/apollo:configservice-1.9.2
docker tag apolloconfig/apollo-portal:1.9.2 harbor.com/tools/apollo:portal-1.9.2

docker push harbor.com/tools/apollo:adminservice-1.9.2
docker push harbor.com/tools/apollo:portal-1.9.2
docker push harbor.com/tools/apollo:configservice-1.9.2
5.2、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-adminservice

# 2、修改stg环境deployment镜像版本
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-adminservice

# 3、修改生产环境deployment镜像版本
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
6、1.9.2升级到2.0.0

1.9.2升级到2.0.0,github上没有说明,参照大版本升级,待验证

6.1、先备份1.9.2升级后的数据库
6.2、备份完数据库后执行升级sql
https://github.com/apolloconfig/apollo/blob/master/scripts/sql/delta/v190-v200/apolloconfigdb-v190-v200.sql
https://github.com/apolloconfig/apollo/blob/master/scripts/sql/delta/v190-v200/apolloconfigdb-v190-v200-after.sql

https://github.com/apolloconfig/apollo/blob/master/scripts/sql/delta/v190-v200/apolloportaldb-v190-v200.sql
https://github.com/apolloconfig/apollo/blob/master/scripts/sql/delta/v190-v200/apolloportaldb-v190-v200-after.sql
6.3、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:2.0.0
docker pull apolloconfig/apollo-configservice:2.0.0
docker pull apolloconfig/apollo-portal:2.0.0

docker tag apolloconfig/apollo-adminservice:2.0.0 harbor.com/tools/apollo:adminservice-2.0.0
docker tag apolloconfig/apollo-configservice:2.0.0 harbor.com/tools/apollo:configservice-2.0.0
docker tag apolloconfig/apollo-portal:2.0.0 harbor.com/tools/apollo:portal-2.0.0

docker push harbor.com/tools/apollo:adminservice-2.0.0
docker push harbor.com/tools/apollo:portal-2.0.0
docker push harbor.com/tools/apollo:configservice-2.0.0
6.4、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-serviharbor.com/toolse-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
7、2.0.0升级到2.0.1

在这里插入图片描述

7.1、拉取镜像,打tag,上传到harbor
docker pull apolloconfig/apollo-adminservice:2.0.1
docker pull apolloconfig/apollo-configservice:2.0.1
docker pull apolloconfig/apollo-portal:2.0.1

docker tag apolloconfig/apollo-adminservice:2.0.1 harbor.com/tools/apollo:adminservice-2.0.1
docker tag apolloconfig/apollo-configservice:2.0.1 harbor.com/tools/apollo:configservice-2.0.1
docker tag apolloconfig/apollo-portal:2.0.1 harbor.com/tools/apollo:portal-2.0.1

docker push harbor.com/tools/apollo:adminservice-2.0.1
docker push harbor.com/tools/apollo:portal-2.0.1
docker push harbor.com/tools/apollo:configservice-2.0.1
7.2、替换对应版本镜像,重启deployment
# 1、修改测试环境deployment镜像版本,重启生效
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-test apollo-service-apollo-adminservice

# 2、修改stg环境deployment镜像版本
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-stg apollo-service-apollo-adminservice

# 3、修改生产环境deployment镜像版本
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-configservice
kubectl edit deployments.apps -n k8s-prd apollo-service-apollo-adminservice

# 4、升级portal
kubectl edit deployments.apps -n k8s-stg apollo-portal
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Apollo线控底盘是一种高性能智能底盘,其要求可以分为以下几个方面: 首先,Apollo线控底盘需要具备高性能的处理器和传感器,以实现高精度的自主导航和运动控制。其处理器需要具备高效率的计算能力和快速的响应时间,以支持实时的数据处理和控制决策。其传感器需要具备高分辨率、高精度和高灵敏度,以实现对周围环境的高度感知和精准定位。 其次,Apollo线控底盘需要具备高度可靠的硬件和软件系统,以确保系统的稳定性和安全性。其硬件系统需要采用优质的材料和先进的制造技术,以确保系统的耐用性和抗干扰性。其软件系统需要经过严格的测试和验证,以确保系统的稳定性和安全性。 再次,Apollo线控底盘需要具备高度的可扩展性和适应性,以满足不同场景和应用的需求。其系统架构需要具备良好的模块化设计和接口规范,以方便系统的升级和扩展。其平台软件需要支持多种编程语言和开发框架,以方便开发者的使用和定制。 最后,Apollo线控底盘需要具备高度的可自定义性和可定制化,以满足不同用户的个性化需求和创新需求。其平台需要支持多种传感器和执行器的集成和配置,以适应不同的应用场景和任务需求。其软件架构需要具备高度的可配置性和可定制性,以满足不同用户的编程需求和算法需求。 总之,Apollo线控底盘要求具备高性能的处理器和传感器、高可靠性的硬件和软件系统、高度的可扩展性和适应性、以及高度的可自定义性和可定制化,以实现自主导航和运动控制的高效率和高精度。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值