Skip to content

feat: 集成内置 Plugin Server 并升级版本至 2.2.1#254

Merged
johnlanni merged 2 commits into
higress-group:mainfrom
lexburner:feat/plugin-server-and-version-upgrade
Mar 22, 2026
Merged

feat: 集成内置 Plugin Server 并升级版本至 2.2.1#254
johnlanni merged 2 commits into
higress-group:mainfrom
lexburner:feat/plugin-server-and-version-upgrade

Conversation

@lexburner
Copy link
Copy Markdown
Collaborator

Summary

Changes

Plugin Server 集成

  • All-in-One 镜像新增 plugin-server 阶段,安装 nginx 并拷贝 WASM 插件文件
  • 新增 plugin-server/nginx.conf 配置,监听 8002 端口,提供静态文件服务和 /healthz 健康检查
  • supervisord 新增 plugin-server 进程管理,通过 USE_PLUGIN_SERVER 环境变量控制启停
  • Docker Compose 新增 plugin-server 服务,配置健康检查和 profile 控制
  • consolecontroller 服务通过环境变量配置 WASM 插件的 HTTP 加载地址
  • configure.sh 新增 --use-plugin-server / --no-plugin-server 参数
  • prepare.sh 新增 checkPluginServer 函数,自动生成默认 nginx 配置

版本升级

  • HIGRESS_CONTROLLER_TAGHIGRESS_PILOT_TAGHIGRESS_GATEWAY_TAGHIGRESS_CONSOLE_TAGHIGRESS_ENVOY_TAG2.1.11 升级至 2.2.1
  • All-in-One Dockerfile 中 CORE_VERSIONCONSOLE_VERSIONENVOY_VERSION 同步升级

配置优化

  • 修复 COMPOSE_PROFILES 判断逻辑,从精确匹配改为包含匹配(== "nacos"== *"nacos"*),支持多 profile 场景
  • 新增 .gitignore 忽略 .idea/ 目录
  • README 增加 Plugin Server 和 All-in-One 模式文档说明

Test plan

  • 使用 Docker Compose 部署并验证 plugin-server 服务正常启动和健康检查通过
  • 验证 Console 可以正常加载插件列表(无白屏问题)
  • 验证通过 HTTP 方式正确加载 WASM 插件
  • 验证 --no-plugin-server 参数可正确禁用 Plugin Server
  • 验证 All-in-One 镜像构建和启动正常
  • 验证 podman 环境下 gateway 服务正常运行(无 user 权限问题)

🤖 Generated with [Qoder][https://qoder.com]

- 新增 all-in-one 镜像内 Plugin Server 组件及其 nginx 配置
- 在 superviosrd 中新增 plugin-server 启动管理
- 通过环境变量 USE_PLUGIN_SERVER 控制 Plugin Server 启用与否
- 调整启动脚本以支持根据 USE_PLUGIN_SERVER 配置加载 WASM 插件方式
- 配置脚本增加 --use-plugin-server 与 --no-plugin-server 参数支持
- docker-compose 添加 plugin-server 服务及相关环境变量
- 支持 All-in-One 模式通过环境变量灵活开启或关闭内置 Plugin Server
- README 增加 All-in-One 发布模式文档说明使用 Plugin Server 配置
- 调整默认配置,启用 Plugin Server 并更新相关镜像标签和地址
- 增加 gitignore 忽略插件服务器生成及 IDE 配置文件
- 将 all-in-one 中插件服务器及相关组件版本从 2.1.11 升级至 2.2.1
- 优化插件服务器 nginx 配置,新增健康检查接口 /healthz
- 修改 docker-compose 健康检查命令以适配新的健康检查路径
- 清理根目录 .gitignore 文件,简化忽略规则
- all-in-one/.gitignore 修正.idea 文件忽略配置
- compose/scripts/prepare.sh 脚本新增插件服务器配置检查和默认 nginx 配置写入功能
Copy link
Copy Markdown
Contributor

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnlanni johnlanni merged commit 8e34c41 into higress-group:main Mar 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants