工程合并后部署调整
pai-config
- pai-sn、pai-icon-manages、xxl-job-agent 已合并到pai-config
- 调整路由
pai-gateway-prod.yaml
- id: pai-icon-manages uri: lb://pai-config predicates: - Path=/icon-manages-api/** filters: - StripPrefix=1 - id: pai-sn uri: lb://pai-config predicates: - Path=/sn-api/** filters: - StripPrefix=1 - id: xxl-job-agent uri: lb://pai-config predicates: - Path=/xxl-job-agent-api/** filters: - StripPrefix=1
- 将pai_icon_manages数据库的数据导入pai_config(1.x升级才需要)
- 将pai_sn数据库的数据导入pai_config(1.x升级才需要)
- 将K8S中pai-sn、pai_icon_manages、xxl-job-agent的service指向pai-config
kind: Service name: pai-sn selector: app: pai-config name: pai-icon-manages selector: app: pai-config name: xxl-job-agent selector: app: pai-config
- 将pai-sn、pai_icon_manages、xxl-job-agent的deployment删除
pai-workflow
- pai-rules、pai-work-engine已合并至pai-workflow
- 调整路由
pai-gateway-prod.yaml
- id: pai-rules uri: lb://pai-workflow predicates: - Path=/rules-api/** filters: - StripPrefix=1 - id: pai-work-engine uri: lb://pai-workflow predicates: - Path=/work-engine-api/** filters: - StripPrefix=1
- 将pai_rules、pai_work_engine数据库的数据导入pai_workflow(1.x升级才需要)
- 将K8S中pai-rules的service指向pai-workflow
kind: Service name: pai-rules selector: app: pai-workflow name: pai-work-engine selector: app: pai-workflow
pai-dp-data
- pai-dp-data-algo、pai-dp-data-craw、pai-dp-data-svc 、pai-dp-data-sync合并为 pai-dp-data-algo
- 删除craw、svc、sync 的deployment及Service
- 调整路由
pai-gateway-prod.yaml
- id: pai-dp-data-algo uri: lb://pai-dp-data-algo predicates: - Path=/api-data-api/** filters: - StripPrefix=1
- 工作负载增加环境变量:paideploy.mysql.defaultSchema=pai_dp_data
pai-mc
- pai-mc-api、pai-mc-dispatcher、pai-mc-resolver、pai-mc-sender 合并为pai-mc
- 删除pai-mc-dispatcher、pai-mc-resolver的deployment及Service
- pai-mc-api、pai-mc-sender的Service 指向pai-mc
kind: Service name: pai-mc-api selector: app: pai-mc name: pai-mc-sender selector: app: pai-mc
- 新建pai-mc 的deployment及Service
- 路由调整
pai-gateway-prod.yaml
- id: pai-mc uri: lb://pai-mc predicates: - Path=/mc-api/** filters: - StripPrefix=1 - id: pai-mc-sender uri: lb://pai-mc predicates: - Path=/mc-sender-api/** filters: - StripPrefix=1
pai-operate
- pai-console已合并到pai-operate
- 将pai_console数据库的数据导入pai_operate(1.x升级才需要)
- 删除pai-console的deployment
- 将pai-console的Service指向pai-operate
kind: Service name: pai-console selector: app: pai-operate
- 路由调整
pai-gateway-prod.yaml
- id: pai-console uri: lb://pai-operate predicates: - Path=/console-api/** filters: - StripPrefix=1
pai-pay
- pai-pay-gateway、pai-pay-vsp、pai-pay-wallet、pai-pay-yunst合并为pai-wallet-allinpay
- 删除合并前的deployment及Service
- 调整路由
- id: pai-pay-gateway uri: lb://pai-wallet-allinpay predicates: - Path=/pay-gateway-api/** filters: - StripPrefix=1 - id: pai-wallet-allinpay uri: lb://pai-wallet-allinpay predicates: - Path=/wallet-allinpay-api/** filters: - StripPrefix=1
被合并工程Service处理
除了将被合并工程的Service.spec.selector.app
指向合并后的工程,Service.metadata.labels
也得加上register: enable
被合并服务兼容旧版本需将服务代理注册到nacos,参阅服务代理注册,区别之处为,代理目标命名空间为prod
前端合并
pai-console-ui、pai-approve-ui、pai-auth-ui、pai-app-design-ui、pai-dp-screen-ui、pai-screen-ui、pai-dp-table-ui、pai-jetlinks-ui、pai-operate-ui、pai-rule-ui、pai-workbench-ui、pai-workflow-ui、pai-pay-ui、pai-openapi-ui、pai-developer-ui、pai-work-order-ui 合并到pai-lingyun-ui
CDN 因资源过大,及图标库有特殊处理,暂不纳入
- 除pai-jetlinks-ui的Ingress单独处理,其余路由皆须指向到pai-lingyun-ui
执行迁移数据脚本(若是新环境则不需执行)
- console_insert_operate.sql
- sn_icon_into_config
- workflow_transfer
登录提示参数无效
文档更新时间: 2023-08-11 18:26 作者:管理员