원클릭으로
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 직업 분류 기준
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
| 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