| Files | Last commit | Last update |
|---|---|---|
fix(deploy): pin ingress-nginx worker processes to 8 worker-processes defaults to "auto", which starts one worker per host CPU. On a 256-core host a config reload briefly runs two sets of 256 workers with about 33 threads each, which exceeds the kubelet podPidsLimit (10000). Only some of the new workers start, but reuseport still opens one listening socket per configured worker, so connections hashed to the sockets without a worker hang. Use a fixed count of 8 workers. k8s-deploy.sh skips the ingress install when the controller already exists, so existing clusters keep the old ConfigMap until this manifest is applied again. | 1 month ago | |
fix(deploy): install grpc_health_probe in orchestrator image, build.sh --download fixed, yse localbusybox image path in edge.yaml | 2 months ago | |
feat(deploy): pass the settings read by e2b-infra 2026.30 binaries When the e2b-infra 2026.30 package is installed over KASandbox, the deployment keeps the KASandbox scripts and charts. Pass the settings the 2026.30 binaries need; the KASandbox binaries ignore all of them: - COMPRESS_ENABLED/TYPE/LEVEL in .env, passed to the template-manager and orchestrator for template storage compression (off by default); - MINIO_SECRET_KEY for the orchestrator (2026.30 has no minioadmin default); - API_INTERNAL_GRPC_ADDRESS for the edge, the 2026.30 name of API_GRPC_ADDRESS, without which paused sandboxes are not resumed on access; - VOLUME_TOKEN_ENABLED=false for the api, and on K8s the kubernetes service discovery settings that find the orchestrator pods; - the /fc-busybox host directory, from which 2026.30 template builds take busybox. | 29 days ago | |
feat(deploy): pass the settings read by e2b-infra 2026.30 binaries When the e2b-infra 2026.30 package is installed over KASandbox, the deployment keeps the KASandbox scripts and charts. Pass the settings the 2026.30 binaries need; the KASandbox binaries ignore all of them: - COMPRESS_ENABLED/TYPE/LEVEL in .env, passed to the template-manager and orchestrator for template storage compression (off by default); - MINIO_SECRET_KEY for the orchestrator (2026.30 has no minioadmin default); - API_INTERNAL_GRPC_ADDRESS for the edge, the 2026.30 name of API_GRPC_ADDRESS, without which paused sandboxes are not resumed on access; - VOLUME_TOKEN_ENABLED=false for the api, and on K8s the kubernetes service discovery settings that find the orchestrator pods; - the /fc-busybox host directory, from which 2026.30 template builds take busybox. | 29 days ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): enhance k8s deploy flow with cri-multiplex and static node discovery - build.sh: add post-deploy health self-check, make Harbor certs idempotent, start orchestrator before api, cle an redundant exports - k8s-deploy.sh: auto-generate e2b bridge CNI conflist in /etc/cni/net-e2b.d, switch kubelet endpoint on cri-mu ltiplex deploy, sync help output - api: discover orchestrators via ORCHESTRATOR_STATIC_NODES env for k8s mode - docs: add CNI bridge config and capacity planning to user guide | 1 month ago | |
build: support single-image build with -i and remove e2b-webhook private download - build.sh: -i/--images accepts optional image name list (api/orchestrator/client-proxy/e2b-webhook, webhook as alias), builds only selected images and docker-saves them to bin/<arch>/images/<name>.tar - deploy/build.sh: drop the gitcode.com private e2b-webhook.tar download; webhook image is now built locally - deploy/check-env.sh: drop the dep/e2b-webhook.tar pre-check - docs/zh/e2b_user_guide.md: replace private-repo download table with local build instructions | 1 month ago | |
feat(deploy): enhance k8s deploy flow with cri-multiplex and static node discovery - build.sh: add post-deploy health self-check, make Harbor certs idempotent, start orchestrator before api, cle an redundant exports - k8s-deploy.sh: auto-generate e2b bridge CNI conflist in /etc/cni/net-e2b.d, switch kubelet endpoint on cri-mu ltiplex deploy, sync help output - api: discover orchestrators via ORCHESTRATOR_STATIC_NODES env for k8s mode - docs: add CNI bridge config and capacity planning to user guide | 1 month ago | |
fix(deploy): let create_sandbox.py run without an access token Like create_template.py: the e2b-infra 2026.30 seed-db writes an empty accessToken into /root/.e2b/config.json, and create_sandbox.py exited on it. Require only teamApiKey and set E2B_ACCESS_TOKEN when there is one. | 29 days ago | |
fix(deploy): let deployment run without an access token The seed-db of e2b-infra 2026.30 creates only a team API key and prints no access token. With pipefail the Nomad path stopped on the empty grep, the K8s path refused the missing token, and create_template.py required it. Take the access token when it is there and require only the team ID and API key; with the KASandbox seed-db the token is still written and used. | 29 days ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): enhance k8s deploy flow with cri-multiplex and static node discovery - build.sh: add post-deploy health self-check, make Harbor certs idempotent, start orchestrator before api, cle an redundant exports - k8s-deploy.sh: auto-generate e2b bridge CNI conflist in /etc/cni/net-e2b.d, switch kubelet endpoint on cri-mu ltiplex deploy, sync help output - api: discover orchestrators via ORCHESTRATOR_STATIC_NODES env for k8s mode - docs: add CNI bridge config and capacity planning to user guide | 1 month ago | |
feat(deploy): pass the settings read by e2b-infra 2026.30 binaries When the e2b-infra 2026.30 package is installed over KASandbox, the deployment keeps the KASandbox scripts and charts. Pass the settings the 2026.30 binaries need; the KASandbox binaries ignore all of them: - COMPRESS_ENABLED/TYPE/LEVEL in .env, passed to the template-manager and orchestrator for template storage compression (off by default); - MINIO_SECRET_KEY for the orchestrator (2026.30 has no minioadmin default); - API_INTERNAL_GRPC_ADDRESS for the edge, the 2026.30 name of API_GRPC_ADDRESS, without which paused sandboxes are not resumed on access; - VOLUME_TOKEN_ENABLED=false for the api, and on K8s the kubernetes service discovery settings that find the orchestrator pods; - the /fc-busybox host directory, from which 2026.30 template builds take busybox. | 29 days ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): enhance k8s deploy flow with cri-multiplex and static node discovery - build.sh: add post-deploy health self-check, make Harbor certs idempotent, start orchestrator before api, cle an redundant exports - k8s-deploy.sh: auto-generate e2b bridge CNI conflist in /etc/cni/net-e2b.d, switch kubelet endpoint on cri-mu ltiplex deploy, sync help output - api: discover orchestrators via ORCHESTRATOR_STATIC_NODES env for k8s mode - docs: add CNI bridge config and capacity planning to user guide | 1 month ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): enhance k8s deploy flow with cri-multiplex and static node discovery - build.sh: add post-deploy health self-check, make Harbor certs idempotent, start orchestrator before api, cle an redundant exports - k8s-deploy.sh: auto-generate e2b bridge CNI conflist in /etc/cni/net-e2b.d, switch kubelet endpoint on cri-mu ltiplex deploy, sync help output - api: discover orchestrators via ORCHESTRATOR_STATIC_NODES env for k8s mode - docs: add CNI bridge config and capacity planning to user guide | 1 month ago | |
feat(deploy): make redis/edge/postgres optional and tolerate missing Redis in API - Add ENABLE_REDIS / ENABLE_EDGE / ENABLE_POSTGRES deploy switches (default true) to skip the corresponding images, helm resources and nomad jobs when disabled - Inject an empty REDIS_URL and force SANDBOX_STORAGE_BACKEND=memory when Redis is disabled - Add nil-client guards in the API RedisCache, populate_redis shadow writes and orchestrator storage so the API starts cleanly without Redis (single-instance deployments only) | 2 months ago | |
fix: add sdk patch | 3 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago | |
feat(deploy): support systemd-managed orchestrator - add e2b-orchestrator.service and orchestrator-run.sh launcher; ORCHESTRATOR_TYPE selects containerized (nomad job / k8s DaemonSet) or node-level systemd hosting - API StaticDiscovery: static node list with gRPC health probing (ORCHESTRATOR_STATIC_NODES), injected via helm static Endpoints for k8s or E2B_STATIC_ALLOCATIONS for nomad api job - support systemd launcher in nomad deploys and close review gaps (DEPLOY_TYPE:ORCHESTRATOR_TYPE combo validation, empty static list warning, template-manager nomad job skipped under systemd) | 2 months ago |
E2B 部署工具
本目录包含 E2B 基础设施部署、Kubernetes 集群初始化、节点配置和沙箱模板工具。
使用说明
完整的安装、部署、升级、验证、故障排查和模板操作说明请参阅:
开始使用前:
- 复制并填写部署环境配置:
.env - 按
USAGE.md中的部署模式选择 Nomad 或 Kubernetes 流程 - 不要将包含密码、Token 或 API Key 的本地配置提交到仓库
主要入口
| 文件 | 用途 |
|---|---|
build.sh |
主机依赖、服务和部署流程入口 |
k8s-deploy.sh |
使用 KubeKey 初始化 Kubernetes 集群 |
deploy-worker.sh |
初始化 Kubernetes Worker 节点 |
deploy.sh |
部署 E2B 服务和 Helm Chart |
build_prod.py |
构建 E2B 沙箱模板 |
create_sandbox.py |
创建沙箱实例 |
create_template.py |
创建模板 |
配置
.env 仅用于本地部署,不应提交。模板和变量说明见用户指南(docs/zh/e2b_user_guide.md)的配置章节。
常用的敏感配置包括:
POSTGRES_CONNECTION_STRINGHARBOR_PASSWORDNOMAD_ACL_TOKENE2B_ACCESS_TOKENE2B_API_KEY
目录结构
deploy/
├── build.sh # 主管理脚本
├── deploy.sh # K8S 部署执行脚本
├── k8s-deploy.sh # KubeKey 集群初始化
├── deploy-worker.sh # K8S Worker 节点部署
├── remote-worker-setup.sh # Worker 远程安装(分发至目标节点执行)
├── common.sh # 公共函数(日志输出等)
├── check-env.sh # 部署前环境检查
├── .env # 环境变量配置
├── e2b-orchestrator.service # orchestrator systemd unit
├── orchestrator-run.sh # orchestrator systemd wrapper
├── install-/run-/start-/init-/uninstall-*.sh # Nomad/Consul 生命周期脚本
├── build_prod.py
├── create_sandbox.py
├── create_template.py
├── nomad/ # Nomad Job 定义
├── dockerfiles/ # 镜像构建 Dockerfile
└── dep/ # 部署资源(镜像包/证书/Ingress 配置)
├── harbor.cnf
├── ingress-nginx.yaml
├── wildcard-ingress.yaml
└── openclaw.yaml