After you have developed and tested your agent locally, you need to deploy it to a Kubernetes cluster. This page covers deploying agents to the Flyte sandbox for integration testing and to a production cluster.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flyteorg/flyte/llms.txt
Use this file to discover all available pages before exploring further.
Deploying to the Flyte sandbox
The Flyte sandbox (flytectl demo start) is the easiest way to test an agent end-to-end before moving to a production cluster.
Build your agent image
Create a Dockerfile for your agent. The following example is for the Databricks agent:Build and push the image to the sandbox registry:
Deploy the agent image to the cluster
Edit the Find the
flyteagent deployment to use your new image:image key and update its value:Configure secrets
Store agent credentials as Kubernetes secrets. The agent deployment mounts the
flyteagent secret in the flyte namespace. Use the following command to add a secret value (the Databricks token is used here as an example):Secret names must contain only lowercase English letters. Secret values must be Base64-encoded.
Managing secrets
All agent secrets are stored in theflyteagent Kubernetes secret in the flyte namespace. To add a secret for any agent:
Deploying to a production cluster
For production deployments, update theflyteagent deployment’s image directly:
Ensure your FlytePropeller image version is
>= 1.13.0. Propeller 1.13.0+ automatically fetches the list of supported task types from the agent deployment, removing the need to manually specify task types in the configmap.Configuring FlytePropeller to use the agent service
FlytePropeller needs to know the endpoint of the agent service. Configure this in the propeller configmap:Routing task types to custom agent services
If you have multiple agent services (for example, a dedicated service for a custom integration), configure routing rules:Enabling agents in a managed deployment
If you are using a managed Flyte deployment, you cannot modify the agent configuration directly. Contact your deployment administrator to:- Enable the agent plugin package in the agent service image.
- Add any required secrets to the
flyteagentKubernetes secret. - Restart the agent deployment.