omni-gateway-install
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInstall Omni Gateway
安装 Omni Gateway
Choose Your Platform
选择平台
Pick the target platform, then read the matching reference file for the full step-by-step
walkthrough. Each reference covers both connected mode (registered with Anypoint Platform) and
local mode (standalone).
mermaid
flowchart TD
Start{Which platform?}
Start -->|Linux Ubuntu/Debian| L[references/linux.md]
Start -->|Docker or Docker Compose| D[references/docker.md]
Start -->|Kubernetes or OpenShift| K[references/kubernetes.md]| Platform | Read | Covers |
|---|---|---|
| Linux (Ubuntu/Debian, APT) | | APT repo setup, |
| Docker / Docker Compose | | Image pull, |
| Kubernetes / OpenShift (Helm) | | Helm repo, |
RHEL, CentOS, and Amazon Linux are not covered by the APT instructions. Contact the MuleSoft gateway team for RPM repository details — do not use the APT repository on RPM-based systems.
After completing the platform walkthrough, return here for connected-mode verification and
troubleshooting.
选择目标平台,然后阅读对应的参考文件以获取完整的分步操作指南。每个参考文件都涵盖连接模式(connected mode,注册到 Anypoint Platform)和本地模式(local mode,独立运行)。
mermaid
flowchart TD
Start{Which platform?}
Start -->|Linux Ubuntu/Debian| L[references/linux.md]
Start -->|Docker or Docker Compose| D[references/docker.md]
Start -->|Kubernetes or OpenShift| K[references/kubernetes.md]| 平台 | 阅读 | 涵盖内容 |
|---|---|---|
| Linux(Ubuntu/Debian,APT) | | APT 仓库设置、 |
| Docker / Docker Compose | | 镜像拉取、 |
| Kubernetes / OpenShift(Helm) | | Helm 仓库、 |
APT 指南未涵盖 RHEL、CentOS 和 Amazon Linux。请联系 MuleSoft Gateway 团队获取 RPM 仓库详情——不要在基于 RPM 的系统上使用 APT 仓库。
完成平台操作指南后,请返回此处进行连接模式验证和故障排查。
Connected mode vs. local mode
连接模式与本地模式
All three platforms support two modes; pick before you start:
- Connected mode — the gateway registers with Anypoint Platform and appears in Runtime Manager. Requires an organization ID and a registration token (expires 24 hours after issue).
- Local mode — the gateway runs standalone with no control-plane connection. Skip the registration step in the platform reference.
Each platform reference spells out which steps to skip for local mode.
所有三个平台都支持两种模式;请在开始前进行选择:
- 连接模式(connected mode)——Gateway 注册到 Anypoint Platform,并显示在 Runtime Manager 中。需要 organization ID 和 registration token(签发 24 小时后过期)。
- 本地模式(local mode)——Gateway 独立运行,不连接控制平面。跳过平台参考文件中的注册步骤。
每份平台参考文件都会明确说明本地模式需要跳过哪些步骤。
Confirm in Anypoint Runtime Manager (connected mode)
在 Anypoint Runtime Manager 中确认(连接模式)
After installation and registration, verify that the gateway is online.
安装并注册后,验证 Gateway 是否在线。
Option 1: Anypoint Platform UI
选项 1:Anypoint Platform UI
- Navigate to Anypoint Platform → Runtime Manager → Flex Gateways
- Find your gateway by name
- Confirm the status shows STARTED (green indicator)
- 导航至 Anypoint Platform → Runtime Manager → Flex Gateways
- 按名称查找 Gateway
- 确认状态显示 STARTED(绿色指示器)
Option 2: Flex Gateway Manager API
选项 2:Flex Gateway Manager API
GET https://anypoint.mulesoft.com/flexgateway/api/v1/organizations/{orgID}/environments/{envID}/gateways/{gatewayID}
Authorization: Bearer <access-token>Expect a 200 response with .
"status": "STARTED"GET https://anypoint.mulesoft.com/flexgateway/api/v1/organizations/{orgID}/environments/{envID}/gateways/{gatewayID}
Authorization: Bearer <access-token>预期返回 200 响应,其中包含 。
"status": "STARTED"Troubleshooting
故障排查
| Problem | Likely Cause | Fix |
|---|---|---|
| Token expired or belongs to a different organization | Generate a fresh token from Runtime Manager → Add Gateway → Self-managed, then re-run registration |
| Organization ID wrong or token scoped to a different organization | Verify org ID in Anypoint Admin Settings and regenerate token in the correct organization |
| Output directory has restrictive permissions | Run |
| A gateway with this name already exists in Anypoint | Use a different |
Status stays | Registration file not in conf.d, or gateway using wrong conf.d path | Verify with |
| | Reinstall flex-gateway or add the installation directory to |
| Container exits immediately (Docker) | Missing or malformed | Run |
| Another process is listening on the mapped port | Change the host-side port (e.g., |
| Node cannot reach Docker Hub or image tag does not exist | Check network egress rules; confirm tag with |
| Missing registration secret, malformed ConfigMap YAML, or OpenShift SCC violation | Run |
| Resource quota or node affinity issues | Run |
| 问题 | 可能原因 | 修复方法 |
|---|---|---|
| 令牌已过期,或属于另一个组织 | 在 Runtime Manager → Add Gateway → Self-managed 中生成新令牌,然后重新运行注册 |
| Organization ID 错误,或令牌的作用范围为另一个组织 | 在 Anypoint Admin Settings 中验证 org ID,并在正确的组织中重新生成令牌 |
| 输出目录权限受限 | 运行 |
| Anypoint 中已存在同名 Gateway | 使用不同的 |
重启后状态仍为 | 注册文件不在 | 使用 |
| | 重新安装 flex-gateway,或将安装目录添加到 |
| 容器启动后立即退出(Docker) | 缺少或格式错误的 | 运行 |
| 其他进程正在占用映射端口 | 更改宿主机端端口(例如 |
| 节点无法访问 Docker Hub,或镜像 tag 不存在 | 检查网络出站规则;使用 |
| 缺少 registration secret、ConfigMap YAML 格式错误,或违反 OpenShift SCC 限制 | 运行 |
Pod 处于 | 资源配额或节点亲和性问题 | 运行 |
Next Steps After Installation
安装后的后续步骤
Once the gateway is installed and running:
- Apply a policy to an API — configure API proxying and security: see .
secure-api - Monitor logs — parse and interpret gateway log output: see .
omni-gateway-logs - Validate your conf.d configuration — check YAML resource files for misconfigurations
before deploying changes: see .
omni-gateway-config
Gateway 安装并运行后:
- 为 API 应用策略——配置 API 代理和安全:参见 。
secure-api - 监控日志——解析和解读 Gateway 日志输出:参见 。
omni-gateway-logs - 验证 conf.d 配置——在部署更改前检查 YAML 资源文件是否存在配置错误:参见 。
omni-gateway-config
Related Jobs
相关 Job
- — Validate conf.d YAML configuration
omni-gateway-config - — Parse and interpret gateway log output
omni-gateway-logs - — End-to-end triage when the gateway returns errors
omni-gateway-diagnose
- ——验证 conf.d YAML 配置
omni-gateway-config - ——解析和解读 Gateway 日志输出
omni-gateway-logs - ——Gateway 返回错误时进行端到端故障分诊
omni-gateway-diagnose