# deploy-example **Repository Path**: zhangyanxian/deploy-example ## Basic Information - **Project Name**: deploy-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-03 - **Last Updated**: 2026-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 部署 kgateway控制面 / agentgateway数据面 的步骤 #### 介绍 **以下是部署 kgateway控制面 / agentgateway数据面 的步骤** 部署 Kgateway控制面/agentgateway数据面,基于K8s环境部署,必须要先搭建好基础k8s环境,包括master节点和各个worker节点,使用前必须注意: 1. 部署kgateway控制面镜像必须先导入(master和所有worker节点都要导入) [root@k8smaster128 deploy-example]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE agentgateway-controller master 062bd69dbc67 3 days ago 599MB 1. 部署agentgateway数据面镜像必须先导入(master和所有worker节点都要导入) [root@k8smaster128 deploy-example]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE agentgateway-proxy master b20bad45dffc 6 days ago 325MB 2. 如果配置mcp或者a2a业务,模拟镜像也必须先导入(master和所有worker节点都要导入) [root@k8smaster128 deploy-example]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE tiangolo/uvicorn-gunicorn-fastapi latest 1facbe5f2fad 6 weeks ago 1.17GB 3. 安装或者卸载脚本,只用在master上执行即可,其它节点不需要 #### 软件架构 软件架构说明 #### 环境变量定义说明 1. 固定Namespace说明 kgateway控制面 / agentgateway数据面 安装部署在同一个namespace,统一定义为:"agentgateway-system" 2. kgateway控制面名称 名称统一定义为:"agentgateway-controller" 使用的Docker镜像统一为:agentgateway-controller:master ,这个是由kgateway代码(Golang)编译出来的镜像 3. agentgateway数据面名称 名称统一定义为:"agentgateway-proxy" 使用的Docker镜像统一为:agentgateway-proxy:master ,这个agentgateway代码(Rust)编译出来的镜像,由其它团队单独提供,可以通过tag标签来固定 #### 安装教程(只用在master上执行) 1. 安装 agentgateway的自定义资源 CRDS 执行脚本:: ./agentgateway-crds/install-agentgateway-crds.sh 2. 安装 kgateway控制面(agentgateway controller) 执行脚本:: ./kgateway/install-kgateway.sh 3. 安装 agentgateway数据面(agentgateway proxy) 执行脚本:: ./agentgateway-proxy/install-agentgateway-proxy.sh 4. 部署业务案例(mcp或者a2a) a2a业务:: ./a2a-deploy/install-a2a.sh mcp业务:: ./mcp-deploy/install-mcp.sh #### 卸载教程(只用在master上执行) 1. 卸载业务案例(mcp或者a2a) a2a业务:: ./a2a-deploy/uninstall-a2a.sh mcp业务:: ./mcp-deploy/uninstall-mcp.sh 2. 卸载 agentgateway数据面(agentgateway proxy) 执行脚本:: ./agentgateway-proxy/uninstall-agentgateway-proxy.sh 3. 卸载 kgateway控制面(agentgateway controller) 执行脚本:: ./kgateway/uninstall-kgateway.sh 4. 卸载 agentgateway的自定义资源 CRDS 执行脚本:: ./agentgateway-crds/install-agentgateway-crds.sh #### 使用说明 1. 部署前,各个Docker镜像需要提前导入,master和所有worker节点都要导入 2. 部署命令,只用在master节点执行 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)