agents-sandbox-manager

by OpenKruise

Helm chartv0.6.0App v0.6.0

The Helm chart for Agent Sandbox Manager

About this chart

Agent Sandbox Manager v0.6.0

Configuration Parameters

The following tables list the configurable parameters of the agents-sandbox-manager chart and their default values.

Common Parameters

ParameterDescriptionDefault
replicaCountNumber of sandbox-manager replicas2
image.registryRegistry prepended to every image in this chartdocker.io
imagePullSecretsImage pull secrets list{}
controller.repositorysandbox-manager controller image repositoryopenkruise/sandbox-manager
controller.tagsandbox-manager controller image tagv0.6.0
controller.pullPolicyController container image pull policyIfNotPresent
controller.resources.cpuController container CPU resource2
controller.resources.memoryController container memory resource4Gi
e2b.domainE2B protocol domain (required)"your.domain.com"
e2b.enableAuthWhether to enable E2B authenticationtrue
e2b.adminApiKeyE2B admin API key (required)""
service.portEnvoy proxy service port7788
ingress.classNameIngress class name (required)""
ingress.annotationsIngress annotations{}
prometheus.enabledCreate a ServiceMonitor for manager and gateway metricsfalse
gateway.replicaCountNumber of sandbox-gateway replicas2
gateway.image.repositorysandbox-gateway image repositoryopenkruise/sandbox-gateway
gateway.image.tagsandbox-gateway image tagv0.6.0
gateway.image.pullPolicysandbox-gateway image pull policyIfNotPresent
gateway.resources.cpusandbox-gateway container CPU resources2
gateway.resources.memorysandbox-gateway container memory resources4Gi

Advanced Parameters

All remaining parameters are optional. Sensible defaults apply and most installs do not need to change them.

ParameterDescriptionDefault
controller.logLevelController log level5
controller.infraSandbox manager infrastructure typesandbox-cr
controller.hostNetworkWhether controller uses host networkfalse
controller.maxClaimWorkersMaximum claim worker threads100
controller.maxCreateQPSMaximum QPS for creating sandboxes200
controller.extProcMaxConcurrencyMaximum concurrency for external processors10000
controller.enableShortSandboxIdEnable short, human-friendly sandbox identifierstrue
controller.shortSandboxIdPrefixOptional prefix for short sandbox ids; only applied when non-empty""
e2b.extraDomainsExtra domains added to the Ingress host list alongside e2b.domain[]
e2b.maxTimeoutE2B maximum timeout (seconds)2592000
e2b.keyStorage.modeWhere E2B API keys are stored: secret (the e2b-key-store Secret) or mysqlsecret
e2b.keyStorage.mysql.dsnMySQL DSN; required (non-empty) when keyStorage.mode=mysql, validated at startup""
e2b.keyStorage.mysql.hashPepperMySQL key-hash pepper; required (non-empty) when keyStorage.mode=mysql, validated at startup""
quota.enabledEnable Redis-backed quota accountingfalse
quota.redis.addrRedis address for quota; only passed to the manager when enabled""
quota.redis.dbRedis database number for quota0
quota.redis.usernameRedis username (rendered into the manager Secret)""
quota.redis.passwordRedis password (rendered into the manager Secret)""
service.typesandbox-manager service typeClusterIP
ingress.dataplaneServiceDataplane backend service name for Ingresssandbox-gateway
ingress.certSecretNameIngress TLS certificate Secret namesandbox-manager-tls
nameOverrideOverride Chart name""
fullnameOverrideOverride full name""
serviceAccount.automountWhether to automount ServiceAccount Tokentrue
serviceAccount.annotationsServiceAccount annotations{}
serviceAccount.nameServiceAccount name to use""
podAnnotationsPod annotations{}
podLabelsPod labels{}
podSecurityContextPod security context{fsGroup: 2000, seccompProfile: {type: RuntimeDefault}}
securityContextContainer security context{capabilities: {drop: [ALL], add: [NET_BIND_SERVICE]}, readOnlyRootFilesystem: true, allowPrivilegeEscalation: false, runAsNonRoot: true, runAsUser: 65532}
nodeSelectorNode selector for Pod scheduling{}
tolerationsTolerations for Pod scheduling[]
affinityAffinity for Pod schedulingPreferred Pod anti-affinity
gracefulShutdown.preStopSleepSecondsSleep in the preStop hook before termination; also raises terminationGracePeriodSeconds when > 00
gateway.imagePullSecretsGateway image pull secrets list[]
gateway.nameOverrideOverride gateway name""
gateway.serviceAccount.annotationsGateway ServiceAccount annotations{}
gateway.serviceAccount.nameGateway ServiceAccount name to use""
gateway.podAnnotationsGateway pod annotations{}
gateway.podSecurityContextGateway pod security context{}
gateway.securityContextGateway container security context{}
gateway.initContainer.enabledWhether to enable gateway initContainerfalse
gateway.initContainer.image.repositoryinitContainer image repositorybusybox
gateway.initContainer.image.taginitContainer image tag1.36.1
gateway.initContainer.image.pullPolicyinitContainer image pull policyIfNotPresent
gateway.initContainer.securityContextinitContainer security context{capabilities: {drop: [ALL], add: [SYS_ADMIN]}}
gateway.service.typesandbox-gateway service typeClusterIP
gateway.service.portsandbox-gateway service port7788
gateway.service.targetPortsandbox-gateway service target port7788
gateway.service.annotationsGateway service annotations{}
gateway.service.labelsGateway service labels{}
gateway.nodeSelectorNode selector for gateway pod scheduling{}
gateway.tolerationsTolerations for gateway pod scheduling[]
gateway.affinityAffinity for gateway pod scheduling{}
gateway.livenessProbeGateway liveness probe (TCP on port 7788)initialDelay: 10s, period: 10s, timeout: 5s, failureThreshold: 3
gateway.readinessProbeGateway readiness probe (TCP on port 7788)initialDelay: 5s, period: 5s, timeout: 3s, failureThreshold: 3
gateway.podAntiAffinityGateway pod anti-affinitysoft, weight: 100, topologyKey: kubernetes.io/hostname
gateway.envoy.admin.addressEnvoy admin interface address127.0.0.1
gateway.envoy.admin.portEnvoy admin interface port9901
gateway.envoy.prometheus.enabledExpose Envoy Prometheus metrics externally (proxies admin /stats/prometheus)false
gateway.envoy.prometheus.addressEnvoy Prometheus listener address0.0.0.0
gateway.envoy.prometheus.portEnvoy Prometheus listener port9902
gateway.envoy.prometheus.pathEnvoy Prometheus metrics path/metrics
gateway.envoy.listener.addressEnvoy listener address0.0.0.0
gateway.envoy.listener.portEnvoy listener port7788
gateway.envoy.logLevelEnvoy log levelwarn
gateway.envoy.concurrencyEnvoy worker thread concurrency; empty falls back to gateway.resources.cpu""
gateway.envoy.drainTimeSecondsEnvoy drain time on shutdown30
gateway.envoy.streamIdleTimeoutEnvoy stream idle timeout600s
gateway.envoy.connectTimeoutEnvoy upstream connect timeout5s
gateway.envoy.useDownstreamProtocolConfigApply the downstream protocol config to upstream connectionsfalse
gateway.envoy.perConnectionBufferLimitBytesPer-connection buffer limit1048576
gateway.envoy.circuitBreakersEnvoy circuit-breaker thresholdsenabled: true, maxConnections: 80000, maxPendingRequests: 32768, maxRequests: 80000, maxRetries: 5
gateway.envoy.tcpKeepaliveEnvoy upstream TCP keepaliveenabled: false, keepaliveProbes: 3, keepaliveTime: 60, keepaliveInterval: 10
gateway.envoy.golangFilterGateway golang filter librarylibraryId/pluginName: sandbox-gateway, libraryPath: /etc/envoy/sandbox-gateway.so
gateway.envoy.pluginConfig.hostHeaderNameHeader carrying the upstream hostHost
gateway.envoy.pluginConfig.sandboxHeaderNameHeader carrying the sandbox ide2b-sandbox-id
gateway.envoy.pluginConfig.sandboxPortHeaderHeader carrying the sandbox porte2b-sandbox-port
gateway.envoy.pluginConfig.defaultPortPort used when no sandbox port header is present"49983"
gateway.envoy.pluginConfig.enableAuthEnforce traffic access-token auth in the gateway plugintrue
gateway.envoy.pluginConfig.trafficAccessTokenHeaderHeader carrying the traffic access tokene2b-traffic-access-token
gateway.envoy.pluginConfig.enableJwtAuthEnable OIDC/JWT verification; requires tls.oidc.discoveryUrl to be setfalse
gateway.envoy.pluginConfig.wakeTimeoutSecondsTimeout waiting for a sleeping sandbox to wake60
enableTLSMaster switch for cert-manager/trust-manager TLS. Issues the ingress server certificate, the manager/gateway runtime client certificates, the peer certificates, and turns on runtime mTLS in the gateway envoy config. The shared root CA is owned by the sandbox-controller chart, which must be installed in the same namespacefalse
tls.signingIssuerNameCA Issuer created by the sandbox-controller chart (same namespace); not created heresandbox-signing-issuer
tls.signingIssuerKindKind of the referenced issuerIssuer
tls.caCommonNameIngress certificate common name; also the subject organization on issued certificatessandbox-ca
tls.caOrganizationSubject organization on issued certificatesopenkruise
tls.certDurationLeaf certificate lifetime2160h
tls.certRenewBeforeLeaf certificate renewal window360h
tls.ingressCertNameIngress server Certificate resource; its Secret name must match ingress.certSecretName. Provisioned by enableTLS alone and safe against a plaintext runtimesandbox-manager-ingress-cert
tls.runtime.enabledIssue the manager/gateway runtime client certificates and activate --runtime-client-cert-secret plus the gateway enable-runtime-mtls/transport_socket. Fails against an agent-runtime that does not serve TLS; requires enableTLS; set together with the controller chart's tls.runtime.enabledfalse
tls.managerRuntimeClientCertNameManager runtime client Certificate namesandbox-manager-runtime-client
tls.managerRuntimeClientCertSecretNameManager runtime client certificate Secret namesandbox-manager-runtime-client-cert
tls.managerRuntimeClientCommonNameManager runtime client certificate common namesystem:sandbox-manager
tls.gatewayRuntimeClientCertNameGateway runtime client Certificate namesandbox-gateway-runtime-client
tls.gatewayRuntimeClientCertSecretNameGateway runtime client certificate Secret namesandbox-gateway-runtime-client-cert
tls.gatewayRuntimeClientCommonNameGateway runtime client certificate common namesystem:sandbox-gateway
tls.gatewayRuntimeMtlsDirDirectory where the gateway runtime mTLS Secret is mounted; referenced by the envoy transport_socket/var/run/sandbox-gateway/runtime-mtls
tls.agentRuntimeServerSANSAN the agent-runtime server certificate carries; used as envoy SNI and validated via auto_sni_san_validation. Must match the controller chartagentruntime.sandbox.agents.kruise.io
tls.peer.enabledPeer mTLS + memberlist gossip encryption for the manager↔gateway control-plane cluster. Independent of the agent-runtime data path; requires enableTLS and images including openkruise/agents#967 (older sandbox-manager images crash on the unknown --peer-* flags)false
tls.peer.serverCertName / serverCertSecretNamePeer TLS server certificate shared by manager and gateway (server auth only; SAN fixed to tls.agentRuntimeServerSAN)sandbox-peer-server / sandbox-peer-server-cert
tls.peer.managerClientCertName / managerClientCertSecretName / managerClientCommonNameManager peer client certificate (client auth only)sandbox-peer-manager-client / sandbox-peer-manager-client-cert / system:sandbox-manager
tls.peer.gatewayClientCertName / gatewayClientCertSecretName / gatewayClientCommonNameGateway peer client certificate (client auth only)sandbox-peer-gateway-client / sandbox-peer-gateway-client-cert / system:sandbox-gateway
tls.peer.keySecretNameExisting Secret (data key key, exactly 32 bytes) for memberlist gossip encryption; empty disables. cert-manager cannot create it; provide it out-of-band, referenced by both manager and gateway""
tls.peer.allowedClientCNsOptional comma-separated inbound allow-list matched against the client certificate CN or DNS SANs; empty accepts any client trusted by the peer server CA""
tls.oidc.discoveryUrlAbsolute HTTPS discovery URL of the token issuer; required when JWT auth is enabled, the verifier fails to initialize while empty""
tls.oidc.caConfigMapName / caConfigMapKeyConfigMap holding the CA verifying the issuer's TLS certificate; defaults point at the trust-manager Bundle created by the controller chartsandbox-ca-bundle / ca.crt
`tls.oidc.clo

Deploy agents-sandbox-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has agents-sandbox-manager 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartagents-sandbox-manager is pinned at v0.6.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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