The Orchestrator provides APIs for provisioning teams with optional Kubernetes resources.
POST /api/v1/admin/provision/team
Authorization: Bearer <ADMIN_TOKEN>
Content-Type: application/json
{
"org_id": "extend",
"team_node_id": "platform-sre",
"slack_channel_ids": ["C12345"],
"pipeline_schedule": "0 2 * * *", # Optional: AI Pipeline CronJob
"deployment_mode": "dedicated" # Optional: Dedicated agent pod
}If pipeline_schedule is provided:
# Created CronJob name pattern
ai-pipeline-{org_id}-{team_node_id}
# Example
kubectl get cronjob ai-pipeline-extend-platform-sre -n incidentfoxPurpose: Scheduled learning from Slack conversations
If deployment_mode=dedicated:
# Created resources:
# 1. Deployment: agent-dedicated-{org_id}-{team_node_id}
# 2. Service: agent-dedicated-{org_id}-{team_node_id}
# Example
kubectl get deployment agent-dedicated-extend-platform-sre -n incidentfox
kubectl get service agent-dedicated-extend-platform-sre -n incidentfoxPurpose: Isolated agent runtime for enterprise customers
Service URL stored in team config:
{
"agent": {
"dedicated_service_url": "http://agent-dedicated-extend-platform-sre.incidentfox.svc.cluster.local:8000"
}
}POST /api/v1/admin/deprovision/team
Authorization: Bearer <ADMIN_TOKEN>
Content-Type: application/json
{
"org_id": "extend",
"team_node_id": "platform-sre",
"delete_k8s_resources": true
}Deletes:
- CronJob (if exists)
- Dedicated Deployment + Service (if exists)
- Team config in Config Service (optional)
| Mode | Description | When to Use |
|---|---|---|
| Shared (default) | All teams use shared agent pod | Most teams, cost-effective |
| Dedicated | Team gets isolated agent pod | Enterprise, compliance requirements |
Shared Mode:
- Lower cost (shared resources)
- Faster scaling (pod already running)
- Multi-tenant by design
Dedicated Mode:
- Isolated runtime (namespace separation)
- Custom resource limits
- SLA guarantees
- Network isolation
/orchestrator/docs/ARCHITECTURE.md- Orchestrator design/orchestrator/docs/MULTI_TENANT_DESIGN.md- Multi-tenant patterns/docs/MULTI_TENANT_DESIGN.md- System-wide tenancy design