Before you begin, get an OpenHands Enterprise license
and review the installation prerequisites.
After preparing this cluster, return to Install with Helm
to deploy OpenHands using the provider-specific values on this page.
Cluster Requirements
Set
runtime-api.env.STORAGE_CLASS to your gp3 class.
Node Pools
We recommend using two separate node pools: a general pool for the OpenHands application services and cluster add-ons, and a Sysbox pool for the agent sandboxes. Keeping sandboxes on their own pool isolates the untrusted sandbox workload from your services, and lets the sandbox pool scale independently, since sandboxes are created and torn down far more frequently than the services.- General pool: Use standard EKS nodes on the Amazon Linux 2023 AMI, with on-demand or Spot capacity.
- Sysbox pool: Sandboxes need the Sysbox runtime, which requires an Ubuntu AMI, at least 4 vCPU per node, and on-demand capacity. See Installing Sysbox.
sysbox-runc RuntimeClass. Keep the
OpenHands services and add-ons on the general pool with a node selector.
Karpenter for the Sysbox Pool
Follow this section if you use Karpenter to provision Sysbox nodes. Use thesysbox-install=yes
label to select sandbox nodes. A startup taint keeps sandbox pods off new nodes until the Sysbox
installer finishes.
Configure the NodePool
Create an EC2NodeClass namedsysbox-ubuntu
with an EKS-optimized Ubuntu AMI for your
cluster version. Use amiFamily: Custom with a pinned AMI and the AMI’s EKS bootstrap in user
data. During bootstrap, register the node with the karpenter.sh/unregistered:NoExecute taint.
Configure the NodeClass with your cluster’s subnets, security groups, and node IAM role.
Use this NodePool as a starting point. Choose instance types and a CPU limit for your expected
sandbox demand. This example keeps idle nodes running and disables age-based expiry. Set a
finite consolidateAfter with consolidationPolicy: WhenEmpty to reclaim empty nodes automatically.
sysbox-install=yes nodes, tolerates the startup taint, and removes it when installation
completes. Karpenter can provision for a pending sandbox while Kubernetes holds that sandbox off
the tainted node. If you previously added sysbox-runtime: running to the NodePool template,
remove that label and let the installer manage it.
See Karpenter startup taints.
Configure the RuntimeClass and Helm values
Override the installer manifest’ssysbox-runc RuntimeClass with the stable pool selector below.
Keep the override in your installer manifest or deployment configuration so it survives updates.
The RuntimeClass is cluster-wide. Ensure every node matched by the selector uses this readiness
gate or already has a working Sysbox runtime.
RUNTIME_TOLERATIONS. The example was tested with
OpenHands Helm chart 0.90.1 (Runtime API 0.11.1). Confirm the pod settings in a test cluster
when using a different release or node AMI.
Add the following values to your OpenHands Helm configuration. SET_HOST_USERS enables native
Kubernetes user namespaces for sandboxes. Use an Ubuntu worker AMI and containerd that support
native user namespaces. The empty JSON list overrides the Runtime API’s default Sysbox
toleration. If your sandbox pool requires other tolerations, include them in the JSON list and
leave out sysbox-runtime=not-running:NoSchedule. Check the tolerations on both the RuntimeClass
and the admitted sandbox pods. Set STORAGE_CLASS to your EBS CSI StorageClass with
WaitForFirstConsumer volume binding.
Verify scale-up and replacement
-
In a test cluster with sandbox DNS and TLS configured,
start an OpenHands sandbox with zero nodes in the runtime pool. Watch for a NodeClaim.
-
Check the sandbox pod’s events and the new node’s taints. The pod should stay unscheduled
while
sysbox-runtime=not-running:NoScheduleis present. After the installer clears it, confirm the pod runs with thesysbox-runcRuntimeClass, its workspace volume is bound, and the sandbox reachesrunningin the Runtime API. - Stop the test sandbox and remove its now-idle NodeClaim. Start a new sandbox and verify the same sequence on a different node.
Sizing the Sandbox Nodes
Per-sandbox CPU, memory, and ephemeral storage are set on the Resource Limits page. Size your Sysbox nodes around the values you choose there. With the defaults (0.5 vCPU, 3 GiB memory, 10 GiB ephemeral), memory is usually the binding constraint, som-family instances (4 GiB per vCPU) pack most
efficiently:
Recompute these counts whenever you change the sandbox size. Also size for two more things:
- Root volume: ephemeral scratch is the per-sandbox ephemeral request × sandboxes per node. At
the default 10 GiB, a full
m6i.4xlargeneeds ~190 GiB, so give Sysbox nodes a large root volume (200 GiB or more), or prefer more, smaller nodes. - Warm capacity: a new sandbox otherwise waits for a node to boot, which takes a few minutes. Keeping a small pool of spare capacity (for example a low-priority placeholder Deployment sized to one sandbox) lets sessions start instantly. Size it to your expected burst.
Object Storage
OpenHands stores conversation and session state in a file store. For production, we recommend using S3:- Create a bucket in the cluster’s region.
- Grant access with either an IAM user access key scoped to the bucket, or IRSA / EKS Pod Identity to avoid a long-lived credential.
- For the access-key approach, store the credentials in a secret:
Database
Use an external Amazon RDS for PostgreSQL instance rather than the bundled database. Place it in the cluster’s VPC, reachable from the nodes on port 5432. See External PostgreSQL for the values.Ingress
Install an ingress controller on the general pool and expose it with an AWS Network Load Balancer, provisioned directly from Service annotations (no AWS Load Balancer Controller required). Both Traefik and NGINX are supported:- Traefik (recommended): set
ingress.class: traefikin your OpenHands values. Its defaultTLSStorelets one wildcard certificate serve every host. - NGINX: set
ingress.class: nginxand usenginx.ingress.kubernetes.io/*annotations for per-ingress tuning.
*.openhands.example.com at the NLB with an alias A record. Then follow
DNS and TLS to set up the wildcard certificate.
For Amazon Bedrock model configuration with Helm, see the
AWS Bedrock gateway guide.
FAQ
Why does my Route 53 hosted zone have so many sandbox records?
If ExternalDNS watches Ingresses, it creates a record for each sandbox. With theupsert-only
policy, it doesn’t delete those records when the sandboxes stop.
Exclude the sandbox resources from ExternalDNS,
then clean up the stale sandbox records.
Next Steps
Installing Sysbox
Install the sandbox runtime on your Sysbox pool.
DNS and TLS
Configure wildcard DNS, TLS, and ExternalDNS.
Install with Helm
Deploy OpenHands once the cluster is ready.
Resource Limits
Size memory, CPU, and replicas for production.

