Installation
This guide provides step-by-step instructions for installing and running the agent-sandbox controller on kind (Kubernetes in Docker) for local development and testing.
Before You Begin
Ensure you have the following prerequisites installed:
Required Tools:
Verify installations:
docker --version
kind --version
kubectl version --client
Create a Kind cluster
Create a kind cluster with:
kind create cluster --name agent-sandbox
Deploy Agent-Sandbox to kind
Clone the Repository
git clone https://github.com/kubernetes-sigs/agent-sandbox.git
cd agent-sandbox
Deploy to kind
With kubectl install the controller:
export VERSION=v0.1.0
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${VERSION}/manifest.yaml
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${VERSION}/extensions.yaml
This command will:
- Create a kind cluster named
agent-sandbox(if it doesn’t exist) - Build the controller container image
- Load the image into the kind cluster
- Deploy the controller to the cluster in the
agent-sandbox-systemnamespace
Verify Installation
Check that the controller is running:
# Check controller pod status
kubectl get pods -n agent-sandbox-system
# Verify CRDs are installed
kubectl get crds | grep agents.x-k8s.io
# Check controller logs
kubectl logs -n agent-sandbox-system -l control-plane=controller-manager -f
You should see the controller pod in Running state.
Uninstall
Remove agent-sandbox from your cluster:
# Delete all sandbox resources
kubectl delete sandboxes --all
# Remove the controller and namespace
kubectl delete namespace agent-sandbox-system
# Delete CRDs
kubectl delete crd sandboxes.agents.x-k8s.io
Delete the kind cluster:
kind delete cluster --name agent-sandbox
Troubleshooting
Controller pod not starting:
- Check logs:
kubectl logs -l app=agent-sandbox-controller - Verify RBAC permissions:
kubectl get clusterroles,clusterrolebindings | grep agent-sandbox - Check if CRDs are properly installed:
kubectl get crds | grep agents - Verify the image is correct:
kubectl get statefulset agent-sandbox-controller -o yaml | grep image:
Storage issues:
- kind uses local Docker storage - ensure Docker has enough disk space
- Check Docker disk usage:
docker system df - Clean up unused images:
docker system prune - Verify PVC is bound:
kubectl get pvc
Out of memory errors:
- kind uses Docker resources - check Docker resource limits in Docker Desktop settings
- Increase Docker memory allocation (recommend 8GB+ for development)
- Reduce sandbox resource requests if needed
Building the Controller Binary:
To build just the controller binary:
make build
Binary will be at bin/manager.
Regenerating CRDs and RBAC:
After modifying api/ or controllers/ directories:
make all
Additional Resources
- Agent-Sandbox GitHub Repository
- Agent-Sandbox Development Guide
- kind Documentation
- Kubernetes SIG-Apps
Feedback
Was this page helpful?