ワンクリックで
worker-api-gateway
API Gateway routing, Nginx configuration, and request flow patterns
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
API Gateway routing, Nginx configuration, and request flow patterns
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | worker-api-gateway |
| description | API Gateway routing, Nginx configuration, and request flow patterns |
| disable-model-invocation | true |
Browser → Nginx (port 80) → API Gateway (port 9000) → Backend Service
Location: /etc/nginx/sites-enabled/flowmaster on the dev server
/ → frontend-nextjs ClusterIP (look up live)/api/ → api-gateway ClusterIP (look up live) — preserves /api/ prefix/ws/ → websocket-gateway ClusterIP (look up live)Nginx preserves the /api/ prefix when proxying to the API Gateway:
GET /api/v1/processesGET /api/v1/processes (prefix intact)Tech Stack: Python/FastAPI (NOT Node.js)
Port: 9000
Health Endpoint: /health
Gateway routes are stored in ConfigMap: gateway-config (routes.yaml)
Routing Pattern:
/v1/{service}/* → rewrites to /api/v1/{path} on target service
Example Routes:
- path: /v1/process-design/*
target: process-design:9003
rewrite: /api/v1/processes/$1
- path: /v1/execution/*
target: execution-engine:9005
rewrite: /api/v1/execution/$1
- path: /v1/scheduling/*
target: scheduling:9008
rewrite: /api/v1/schedules/$1
GET /api/v1/processesapi-gateway:9000/api/v1/processes/api/v1/processes, matches route /v1/process-design/*/api/v1/processes and proxies to process-design:9003process-design handles /api/v1/processesssh dev-01-root "kubectl get cm gateway-config -n flowmaster -o yaml"
ssh dev-01-root "kubectl get cm gateway-config -n flowmaster -o jsonpath='{.data.routes\.yaml}'"
ssh dev-01-root "kubectl edit cm gateway-config -n flowmaster"
ssh dev-01-root "kubectl rollout restart -n flowmaster deploy/api-gateway"
WARNING: ClusterIPs are dynamic and will change if services are recreated. Always look them up live:
ssh dev-01-root "kubectl -n flowmaster get svc"
kubectl -n flowmaster get svc/etc/nginx/sites-enabled/flowmastersystemctl reload nginxConfigMap Data Keys:
routes.yaml - Service routing rulesmiddleware.yaml - Request/response middleware (if present)auth.yaml - Authentication/authorization rules (if present)ssh dev-01-root "kubectl exec -n flowmaster deploy/api-gateway -- wget -qO- http://localhost:9000/health"
ssh dev-01-root "kubectl logs -n flowmaster deploy/api-gateway --tail=50"
ssh dev-01-root "cat /etc/nginx/sites-enabled/flowmaster"kubectl logs -n flowmaster deploy/api-gatewaykubectl get cm gateway-config -n flowmaster -o yamlkubectl -n flowmaster get pods | grep <service-name>kubectl port-forward -n flowmaster svc/<service-name> 9003:9003/api/ prefix in the proxying stepFor live ClusterIPs and service endpoints, use commander-mcp: get_context_services, get_context_ports
Load CI/CD pipeline configuration and deployment information when working with automation or deployments
Load database relationships, shared resources, and schema information when working with data models or database configuration
Load development environment information including folder structure, OrbStack setup, and system configuration
Load port mappings for all projects when working with networking, docker-compose, or service configuration
Load GitHub/GitLab repository information when working with git, CI/CD, or repository management
Load server information, infrastructure details, and access patterns when working with deployment or server configuration