Component ยท Shared or other
agent-manager-provisioner
CHOREO CLOUD Service Choreo Cloud service
What it is
agent-manager-provisioner is a stateless Go service that sets up Agent Manager for a customer organization on Choreo Cloud. It creates the organization's component types and the AI gateway for each environment, and registers that gateway with AMS.
Why it exists
Each organization and environment needs its own gateway and templates. Doing it automatically makes sign-up self-service.
How it works
- API on port 8900, health on 8901, with create, ready, delete and upgrade routes under /api/v1/cp/agent-manager.
- Triggered by the orchestrator recipe, by a first-sign-in event on NATS (subscription.activated), or by an operator calling upgrade.
- Create runs 11 steps, including registering the gateway in AMS, storing its token in the secret store, and applying the amp-gateway resource type.
- Replicas default to 0 and are set to 1 only where it is enabled.
Identity and access
It registers gateways in AMS using the client AGENT_MANAGER_GATEWAY_REG, and calls the orchestrator as AGENT_MANAGER_PROVISIONER.
Key facts
- Ports
- 8900 (API), 8901 (health)
- Cluster
- cloud-cp
- Replicas
- 0 by default
- Edition
- Choreo Cloud
- Namespace
- cloud-cp
Talks to (5)
- calls agent-manager-service (AMS) Register gateway, thunder-url, identity providerHTTPS org APIs
- deploys to API Platform Gateway runtime (APG) Per org-env gateway provisioningOC ResourceReleaseBinding amp-gateway ResourceType
- calls orchestrator-api First sign-in starts the agent-manager recipe for each configured environmentHTTP POST /provisioning/environments/{env}/provisions
- calls platform-api (PAS) The provisioner writes the amp-gateway ResourceType, Resource and binding, and reads the environment, through platform-apiHTTPS platform-api CP API proxy /wso2cloud-dp
- calls secret-manager-api The provisioner stores the gateway token and encryption key in the secret store through secret-manager-apiHTTPS /secrets
Used by (3)
- receives telemetry from NATS JetStream WSO2CLOUDEVENTS First-sign-in triggerNATS subscription.activated
- called by orchestrator-api Recipe agent-manager stepHTTP POST /api/v1/cp/agent-manager/{create,ready,delete,upgrade} :8900
- called by Per-org AMP gateway upgrade call (manual) moves one org's gateways onto the new ResourceType and imageHTTP POST via internal gateway
Inside and around
Part of: cloud-cp (cloud control plane)