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 MCP server deployment.
-
Local setups only: If you built the docker images locally without pushing them to a registry, load the MCP server image 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 my-mcp-server:latest --name agentregistry
Deploy the MCP server
-
Deploy the MCP server to your cluster.
arctl deployments create user/my-mcp-server \ --type mcp \ --provider-id kubernetes-default \ --namespace default \ --version 0.1.0Example output:
Deploying server... Deployed user/my-mcp-server (v0.1.0) with providerId=local Server deployment recorded. The registry will reconcile containers automatically. Agent Gateway endpoint: http://localhost:21212/mcpIf 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 MCP server is up and running.
kubectl get pods | grep mcpExample output:
NAME READY STATUS RESTARTS AGE user-my-mcp-server-1a1a3db9-9b5fbbd94-5c6k9 1/1 Running 61s -
Optional: Review the MCPServer resource that was created in your cluster.
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>