Kubernetes
Deploy your agent to a Kubernetes cluster.
Before you begin
-
Follow the Get started guide to set up agentregistry and start the agentregistry daemon.
-
Create a Kubernetes cluster. For example, you can use the following command to create a
kindcluster.kind create cluster --name agentregistry -
Make sure that your current kubeconfig context points to the cluster that you want to use.
kubectl config get-contexts -
Follow the Quickstart in the kagent OSS documentation. Agentregistry uses kagent for bootstrapping during an agent deployment.
-
Local setups only: If you built the docker images locally without pushing them to a registry, load the agent and MCP server images to your kind or minikube cluster. The following command assumes that you use kind and that your cluster is named agentregistry.
kind load docker-image ghcr.io/myagent:latest --name agentregistry kind load docker-image my-mcp-server:latest --name agentregistry
Deploy the agent
-
Deploy the agent to your cluster.
arctl deployments create myagent \ --type agent \ --provider-id kubernetes-default \ --namespace defaultExample output:
Waiting for agent 'myagent' to become ready... Agent 'myagent' version 'latest' deployed to providerId=kubernetes-default in namespace 'default'If the deployment fails, a deployment entry is still created in the database and set to failed. You can view failed deployments by using thearctl deployments listcommand. Note that you cannot re-deploy a failed deployment to fix it. Instead, remove the failed deployment witharctl deployments delete <deployment-ID>and then re-run thearctl deployments createcommand. -
Verify that the agent is up and running.
kubectl get pods | grep myagentExample output:
NAME READY STATUS RESTARTS AGE myagent-latest-687c4c88b9-xwjzx 1/1 Running 0 10s -
Optional: Verify the Agent and, if applicable, the MCPServer resources that were deployed to your cluster.
kubectl get agent -o yaml kubectl get mcpserver -o yaml
Cleanup
You can remove a deployment from the UI or CLI.
- Open the agentregistry UI and go to the Deployed view.
- Find the MCP server deployment that you want to remove and click the trash icon.
-
List the deployments in your environment and find the one that you want to delete.
arctl deployments list -
Remove the deployment.
arctl deployments delete <deployment-ID>