Deploy a published version of an agent in Cloudera Agent Studio so that the agent runs on the cluster and users can invoke it.
You can start a deployment from the Deployments page or from the actions menu of a published agent in the agent catalog. Agent Studio deploys a versioned, immutable artifact from the registry. To change the configuration of a deployed agent, publish a new version of the agent, and then deploy that version.
- You must have the Admin role. Only the Admin role can deploy agents. For more information, see User roles and capabilities.
- You must publish the agent to the catalog. The Deploy action is available only for published agents. For more information, see Saving drafts and publishing an agent to the catalog.
- You must register a large language model (LLM) endpoint for the agent to use. For more information, see Managing LLM endpoints.
- The agent configuration must not contain secrets. Every user who has the User role for the instance can view the configuration of a deployment.
-
Launch the Cloudera Agent Studio console.
-
In the left navigation pane, click Deployments.
The Deployments page is displayed.
-
Click Deploy agent.
The Deploy Agent dialog box is displayed. If you start from the Deploy item in the actions menu of a published agent in the agent catalog, the dialog opens with the agent and the version already selected. You cannot change the agent or the version in this case.
-
In Agent, select the agent to deploy.
-
In Version, select the version to deploy.
The list shows the published versions of the agent, newest first. The latest version has the label (latest). By default, the dialog selects the latest version.
-
In Display name, enter a name for the deployed agent.
-
Optional: To change the session settings, edit the following fields.
- Idle TTL: The default is
15m.
- Max session age: The default is
4h.
- Creation timeout: The default is
60s.
- Max concurrent sessions: The default is
50. Enter a number from 1 to 500.
-
Optional: To allow the tools of the agent to reach any host without the egress proxy, enable the Disable egress proxy (not recommended) checkbox.
By default, the egress proxy blocks all outbound traffic from agent sandbox tools except for hosts listed in egressRules. Enabling this setting gives the sandbox direct internet access and displays the Egress proxy disabled warning. Cloudera recommends that you disable this setting.
-
Click Deploy.
To close the dialog without deploying the agent, click Cancel.
If Agent Studio cannot read the keys and the egress rules of the version, or if the deployment fails, the dialog shows a message that contains the error text.
When the request succeeds, the dialog closes, and the message Agent deployment created successfully is displayed.
The Deployments page displays the deployment. Because Agent Studio creates deployments asynchronously, the status updates while the agent starts. Click
to update the list. When the agent is ready, the Status column displays Running, and the Replicas column shows the ready and desired counts.
If you already own a deployment of the same agent, Agent Studio does not create a duplicate deployment or apply the new settings. The dialog closes and displays a warning message stating that the agent is already deployed. To apply new settings, delete the existing deployment and deploy the agent again. For information on deleting a deployment, see Deleting a deployment.