agentarea-dataplane
by AgentArea
AgentArea data plane for an execution cluster: the platform's data-plane API for MCP servers, optionally an OpenSandbox server for agent sandboxes, and the namespaces, admission and network policy the untrusted workloads of both are confined to.
About this chart
agentarea-dataplane
AgentArea data plane for an execution cluster: the platform's data-plane API for MCP servers, optionally an OpenSandbox server for agent sandboxes, and the namespaces, admission and network policy the untrusted workloads of both are confined to.
The AgentArea control plane runs MCP servers through a data plane: the
platform image's agentarea mcp role in data-plane mode, serving an authenticated HTTP API that
creates, proxies and deletes MCP server workloads. This chart installs one on an
execution cluster -- a cluster whose job is to run untrusted MCP servers,
separate from the one the control plane lives on -- together with everything
that confines those servers:
- a namespace for them, with Pod Security
baselineand no ServiceAccount token; - a ValidatingAdmissionPolicy that refuses any pod there without the sandboxing RuntimeClass (gVisor by default), whatever the data plane asks for;
- NetworkPolicy: only the data plane may reach them; they may reach cluster DNS and the public internet, not each other, the cluster or private networks;
- a Role for the data plane scoped to that namespace.
With sandboxes.enabled it also runs the control plane's agent sandboxes:
an OpenSandbox server on its
Kubernetes runtime, which the control plane creates sandboxes through
(AGENTAREA_SANDBOX_OSB_URL), with the same confinement in a namespace of their
own. Only the server may reach a sandbox, and only on execd's port. The
BatchSandbox CRDs and controller come from the vendored opensandbox-controller
subchart (opensandbox-controller.enabled), one per cluster.
Prerequisites
- Kubernetes 1.30+ (ValidatingAdmissionPolicy)
- A RuntimeClass that points at a sandboxing runtime, e.g.
gvisorwith handlerrunsc. Managed clusters rarely allow registering one; a k3s node does. - A CNI that enforces NetworkPolicy (k3s's default does)
- Nodes that can pull the MCP server images the control plane will ask for
Install
kubectl create namespace agentarea-system
kubectl -n agentarea-system create secret generic mcp-dataplane-token \
--from-literal=token="$MCP_DATAPLANE_TOKEN" # the value the control plane sends
helm install agentarea-dataplane agentarea/agentarea-dataplane \
--namespace agentarea-system \
--set dataPlane.id=my-execution-cluster \
--set dataPlane.auth.existingSecret=mcp-dataplane-token
Then point the control plane at it, in the agentarea chart:
mcpManager:
dataPlane:
url: http://<data plane address>:8090
tokenSecret: <secret holding the same token>
Check it answers, and refuses without the token:
curl -s -o /dev/null -w '%{http_code}\n' http://<address>:8090/healthz # 200
curl -s -o /dev/null -w '%{http_code}\n' http://<address>:8090/dataplane/v1/instances # 401
Single-node host (k3s)
On a single node whose host firewall guards its ports, serve on the node address instead of a Service, and allow the node to reach the MCP servers:
exposure:
hostNetwork:
enabled: true
bindAddress: 10.0.0.10 # the address the control plane routes to
workloads:
networkPolicy:
ingressFromCIDRs: [10.0.0.10/32, <pod bridge gateway>/32]
Agent sandboxes
kubectl -n agentarea-system create secret generic opensandbox-api-key \
--from-literal=api-key="$OPENSANDBOX_API_KEY" # the key the control plane sends
helm upgrade agentarea-dataplane agentarea/agentarea-dataplane --reuse-values \
--namespace agentarea-system \
--set sandboxes.enabled=true \
--set sandboxes.server.auth.existingSecret=opensandbox-api-key \
--set opensandbox-controller.enabled=true \
--set opensandbox-controller.namespaceOverride=agentarea-system
On the host network, give the server a port of its own and let the node reach sandboxes, as for MCP servers:
sandboxes:
server:
port: 8082
networkPolicy:
ingressFromCIDRs: [10.0.0.10/32, <pod bridge gateway>/32]
Then, in the agentarea chart, point sandboxRuntime.opensandbox at
http://<address>:<port> with the same key. The sandbox adapter must name the storage
limit ephemeral-storage: releases that still send disk have every sandbox pod
rejected by the API server.
Parameters
| Key | Type | Default | Description |
|---|---|---|---|
| image.repository | string | "agentarea/agentarea-platform" | Platform image. The data plane is its agentarea mcp role in data-plane mode (AGENTAREA_MCP_MODE=dataplane), the same build as the control plane's. |
| image.tag | string | "" | Defaults to the chart's appVersion. Keep equal to the control plane's tag. |
| image.pullPolicy | string | "IfNotPresent" | Pull policy for the data plane image. |
| imagePullSecrets | list | [] | Pull secrets for the data plane's own image. MCP server images are pulled by the nodes of this cluster; give them registry credentials there. |
| mcpBase.image.repository | string | "agentarea/agentarea-mcp-base" | mcp-base image pre-pulled on every node before package workloads start. |
| mcpBase.image.tag | string | "" | Defaults to the chart's appVersion. |
| dataPlane.id | required | "" | Stamped on every instance this data plane creates. A data plane refuses instances without its own id, so two data planes never claim each other's workloads. |
| dataPlane.auth.existingSecret | string | "" | Secret holding the shared token: the value the control plane sends. |
| dataPlane.auth.existingSecretKey | string | "token" | Key in existingSecret. |
| dataPlane.auth.token | string | "" | Creates the Secret from this value when existingSecret is empty. For development only: a value here lives in your values file and release history. |
| dataPlane.port | int | 8090 | Port the data-plane API listens on. |
| dataPlane.logLevel | string | "INFO" | Data plane log level. |
| exposure.hostNetwork.enabled | bool | false | Serve on the node's own address instead of a Service. For a single-node cluster whose host firewall already guards ports: a NodePort would be DNATed past INPUT, where that firewall lives. |
| exposure.hostNetwork.bindAddress | required with hostNetwork | "" | Node address to bind, e.g. its VPC address. Binding 0.0.0.0 would publish the API on every interface the node has. |
| exposure.service.type | string | "ClusterIP" | Rendered when hostNetwork is off. |
| exposure.service.annotations | object | {} | Annotations for the Service, e.g. a cloud load balancer's internal-only switch. |
| exposure.service.loadBalancerSourceRanges | list | [] | For LoadBalancer: who may reach the API. Name the control plane. |
| workloads.namespace | string | "agentarea-mcp" | Namespace the MCP servers are created in. The data plane gets write access there and nowhere else. |
| workloads.createNamespace | bool | true | Create the namespace. Turn off to manage it yourself; keep its labels. |
| workloads.runtimeClassName | required | "gvisor" | RuntimeClass every MCP server runs with. It must exist on the cluster and point at a sandboxing runtime (runsc for gVisor). |
| workloads.isolationTier | string | "untrusted" | Default isolation tier for instances whose spec names none. |
| workloads.readOnlyRootFilesystem | bool | false | Read-only root for MCP servers. Off by default, as on the Docker data plane: real servers write under their image (Telethon keeps its session in /app). The sandboxing runtime keeps such writes inside the sandbox. |
| workloads.resources | object | {"limits":{"cpu":"1","memory":"512Mi"},"requests":{"cpu":"100m","memory":"128Mi"}} | Per-instance defaults. A spec may ask for less, never more than limits. |
| workloads.podSecurity.enforce | string | "baseline" | Pod Security level enforced on the namespace. baseline rejects host namespaces, hostPath, privileged and added capabilities. |
| workloads.podSecurity.warn | string | "restricted" | Pod Security level that only warns. |
| workloads.admission.requireRuntimeClass | bool | true | Refuse any pod in the namespace that does not use runtimeClassName, through a ValidatingAdmissionPolicy, so no MCP server can reach the host kernel even through a data-plane bug. Needs Kubernetes 1.30+. |
| workloads.networkPolicy.enabled | bool | true | Close MCP servers to each other and to private networks. Needs a CNI that enforces NetworkPolicy (k3s does, through kube-router). |
| workloads.networkPolicy.ingressFromCIDRs | list | [] | Extra sources allowed to reach MCP servers. The data plane itself is allowed automatically when it runs as a pod; with hostNetwork its traffic comes from the node, so list the node address and the pod bridge gateway. |
| workloads.networkPolicy.denyCIDRs | list | ["169.254.0.0/16","10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","100.64.0.0/10"] | Destinations MCP servers may not open connections to. Covers the cloud metadata service, private ranges (including this cluster's pod and service ranges and the network the control plane sits on) and carrier-grade NAT. |
| workloads.networkPolicy.dns | object | {"namespace":"kube-system","podLabels":{"k8s-app":"kube-dns"}} | Labels of the cluster DNS pods MCP servers may query. |
| workloads.networkPolicy.extraEgress | list | [] | Additional egress rules, as NetworkPolicy egress entries, for every MCP server, those labelled agentarea.io/egress included (an in-cluster dependency such as a storage gateway). For a host that REDIRECTs some traffic to a local proxy, allow the redirect target here. |
| workloads.networkPolicy.egressProxy | object | {} | Proxy that MCP servers labelled agentarea.io/egress may reach; those servers get DNS, this proxy and extraEgress only. Shape: {namespaceSelector: {matchLabels: ...}, podSelector: {matchLabels: ...}, port: 3128} |
| sandboxes.enabled | bool | false | Run the sandbox server and confine the sandboxes it creates. |
| sandboxes.server.image.repository | string | "opensandbox/server" | OpenSandbox server image. The platform's adapter is tested against release-1.2.0. |
| sandboxes.server.image.tag | string | "release-1.2.0@sha256:25bebdcf1cf7724eb923faecbdbbf82d4038c6ab35c736151574726d14006f30" | Tag, optionally with a digest. |
| sandboxes.server.image.pullPolicy | string | "IfNotPresent" | Pull policy for the server image. |
| sandboxes.server.port | int | 8081 | Port the sandbox API listens on. |
| sandboxes.server.logLevel | string | "INFO" | Server log level. |
| sandboxes.server.auth.existingSecret | string | "" | Secret holding the API key the control plane sends as OPEN-SANDBOX-API-KEY. |
| sandboxes.server.auth.existingSecretKey | string | "api-key" | Key in existingSecret. |
| sandboxes.server.auth.apiKey | string | "" | Creates the Secret from this value when existingSecret is empty. For development only. |
| sandboxes.server.execdImage | string | "opensandbox/execd:release-1.2.0@sha256:c75836c46ef4302afccec182d5d7339eb2f905f51e3d73b7aa17bb76c832526c" | Image the server copies execd from into every sandbox. The runtime identity the control plane pins (AGENTAREA_SANDBOX_OSB_IDENTITY) names this digest. |
| sandboxes.server.maxSandboxTimeoutSeconds | int | 21600 | Longest lifetime a sandbox may be created with. |
| sandboxes.server.createTimeoutSeconds | int | 120 | How long a create waits for the pod to run, image pull included. The control plane's AGENTAREA_SANDBOX_PROVISION_TIMEOUT should be longer. |
| sandboxes.server.resources | object | {"limits":{"cpu":"1","memory":"1Gi"},"requests":{"cpu":"50m","memory":"128Mi"}} | Resources of the server itself. |
| sandboxes.namespace | string | "agentarea-sandboxes" | Namespace sandboxes are created in. The server gets write access there and nowhere else. |
| sandboxes.createNamespace | bool | true | Create the namespace. Turn off to manage it yourself; keep its labels. |
| sandboxes.runtimeClassName | required | "gvisor" | RuntimeClass every sandbox runs with. |
| sandboxes.secureRuntimeType | string | "gvisor" | What the RuntimeClass is, for the server's own check: gvisor, kata or firecracker. |
| sandboxes.podTemplate | object | {} | Merged into the pod spec of every sandbox, over the chart's defaults (no service links, no service account token, RuntimeDefault seccomp). |
| sandboxes.podSecurity.enforce | string | "baseline" | Pod Security level enforced on the namespace. |
| sandboxes.podSecurity.warn | string | "restricted" | Pod Security level that only warns. |
| sandboxes.admission.requireRuntimeClass | bool | true | Refuse any pod in the namespace without runtimeClassName, as for MCP servers. |
| sandboxes.networkPolicy.enabled | bool | true | Close sandboxes to each other and to private networks. |
| sandboxes.networkPolicy.ingressFromCIDRs | list | [] | Extra sources allowed to reach sandboxes. The server is allowed automatically when it runs as a pod; with hostNetwork list the node address and the pod bridge gateway. |
| sandboxes.networkPolicy.ingressPorts | list | [44772] | Ports the server reaches sandboxes on: execd. |
| sandboxes.networkPolicy.denyCIDRs | list | ["169.254.0.0/16","10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","100.64.0.0/10"] | Destinations sandboxes may not open connections to. |
| sandboxes.networkPolicy.dns | object | {"namespace":"kube-system","podLabels":{"k8s-app":"kube-dns"}} | Labels of the cluster DNS pods sandboxes may query. |
| sandboxes.networkPolicy.extraEgress | list | [] | Additional egress rules, as NetworkPolicy egress entries. |
| opensandbox-base.rbac.create | bool | false | |
| opensandbox-base.fastSandbox.crds.install | bool | true | |
| opensandbox-base.fastSandbox.namespaces.createSystem | bool | false | |
| opensandbox-base.fastSandbox.namespaces.create | bool | false | |
| opensandbox-base.fastSandbox.rbac.create | bool | false | |
| opensandbox-controller.enabled | bool | false | Install |
Deploy agentarea-dataplane with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has agentarea-dataplane on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartagentarea-dataplane is pinned at v0.2.16 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply