Create an Agent Gateway
This guide walks you through deploying an instance of the AgentGateway custom resource.
| Before following this guide, make sure you have some kind of Agent Gateway Operator installed. See Install the Agent Gateway KrakenD Operator for one example. |
Create an AgentGateway Resource
-
Create an
AgentGatewayresource file:apiVersion: runtime.agentic-layer.ai/v1alpha1 kind: AgentGateway metadata: name: agent-gateway namespace: agent-gateway spec: replicas: 1 timeout: 5m0s -
Apply the configuration:
kubectl apply -f my-agentgateway.yaml
Verify the Deployment
-
Check the AgentGateway status:
kubectl get agentgateways agent-gateway -n agent-gateway -
Verify the created resources:
# Check the deployment created by the operator kubectl get deployments -l app=agent-gateway -A # Check the service kubectl get services -l app=agent-gateway -A -
Check the pod logs to ensure the gateway started successfully:
kubectl logs -l app=agent-gateway -n agent-gateway