browserless

by iCoreTech, Inc.

Helm chartv0.25.4App v2.64.4MITVerified publisher

Browserless v2 browser automation service for Kubernetes

About this chart

Browserless Helm Chart

Deploy Browserless on Kubernetes with Browserless v2 defaults, token authentication enforcement, and image presets for multiple browsers.

Features

  • Browserless v2-focused defaults (CONCURRENT, QUEUED, TIMEOUT, etc.)
  • Token authentication required (config.token, config.tokenSecretRef, or extraEnv with TOKEN)
  • Multi-browser image presets via image.browser (chromium, chrome, firefox, multi)
  • Optional image repository override for custom/private registries
  • Configurable readiness/liveness probes, HPA, service type, and scheduling knobs

Prerequisites

  • Kubernetes 1.24+
  • Helm 3.10+

Install

helm repo add icoretech https://icoretech.github.io/helm
helm repo update
helm upgrade --install browserless icoretech/browserless \
  -n browserless --create-namespace \
  --set config.token="replace-me"

OCI:

helm upgrade --install browserless oci://ghcr.io/icoretech/charts/browserless \
  -n browserless --create-namespace \
  --set config.token="replace-me"

Token via Secret (recommended)

config:
  token: null
  tokenSecretRef:
    name: browserless-auth
    key: token

Browser presets

image:
  browser: firefox
  # repository: ghcr.io/browserless/firefox # optional explicit override
  # tag: "" # defaults to the chart appVersion; set a tag to override

Strict Token Authentication

Set config.strictTokenUse=true to require the configured token on HTTP and WebSocket routes that normally opt out of authentication, including direct page connections. Static files remain public so debugger and DevTools assets can load. Leaving this field unset preserves upstream's default (false).

config:
  token: null
  tokenSecretRef:
    name: browserless-auth
    key: token
  strictTokenUse: true

The default readiness probe and Helm test already use the authenticated /pressure endpoint and work with strict mode. Custom probes, management clients, and direct page WebSocket clients must also supply a valid token. Strict mode requires a token at application startup; the chart's existing token validation remains in effect.

Session Scratch Storage

Each browser session gets an owned directory under config.scratchDir, passed to the browser as TMPDIR and removed when the session ends. Unset config.scratchDir uses browserless-scratch-dirs under the container's temporary directory.

Use a writable, pod-local emptyDir for a dedicated scratch mount. Size it for your session concurrency and workload; this example limits it to 1 GiB and grants the published image's group (999) write access. Keep scratch separate from reusable browser profiles in config.dataDir, and use short paths to stay within Chromium's Unix socket path-length limit.

config:
  scratchDir: /scratch/browserless
podSecurityContext:
  fsGroup: 999
volumes:
  - name: browser-scratch
    emptyDir:
      sizeLimit: 1Gi
volumeMounts:
  - name: browser-scratch
    mountPath: /scratch

Multiple Replicas

Active browsers and session/reconnect identifiers live inside the replica that created them. An established WebSocket stays on its replica, but reconnect and session-management requests must reach that same replica through affinity or explicit routing. A shared volume does not share running browser processes. Account for active sessions before scaling down or rolling out pods, and keep scratch storage local to each pod.

Flux Example

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: icoretech
  namespace: flux-system
spec:
  type: oci
  interval: 30m
  url: oci://ghcr.io/icoretech/charts
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: browserless
  namespace: browserless
spec:
  interval: 5m
  chart:
    spec:
      chart: browserless
      version: ">=0.1.1"
      sourceRef:
        kind: HelmRepository
        name: icoretech
        namespace: flux-system
  values:
    image:
      browser: chromium
    config:
      tokenSecretRef:
        name: browserless-auth
        key: token

Configuration reference

Values

KeyTypeDefaultDescription
affinityobject{}Affinity.
autoscaling.enabledboolfalseEnable HPA.
autoscaling.maxReplicasint20Maximum replicas.
autoscaling.minReplicasint1Minimum replicas.
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage.
autoscaling.targetMemoryUtilizationPercentagestringnilTarget memory utilization percentage.
configobject{"allowFileProtocol":null,"allowGet":null,"concurrent":4,"corsAllowMethods":null,"corsAllowOrigin":null,"corsMaxAge":null,"cpuEmaAlpha":null,"cpuOverloadHysteresis":null,"cpuSampleIntervalMs":null,"dataDir":null,"debug":"-*","downloadDir":null,"enableCors":null,"errorAlertUrl":null,"external":null,"host":"0.0.0.0","machineStatsSource":null,"maxCpuPercent":null,"maxMemoryPercent":null,"metricsJsonPath":null,"port":3000,"queued":10,"scratchDir":null,"strictTokenUse":null,"timeout":600000,"token":"change-me","tokenSecretRef":null}Browserless configuration mapped to environment variables.
config.allowFileProtocolstringnilAllow file:// protocol.
config.allowGetstringnilAllow GET requests.
config.concurrentint4Max concurrent sessions.
config.corsAllowMethodsstringnilCORS allowed methods.
config.corsAllowOriginstringnilCORS allowed origins.
config.corsMaxAgestringnilCORS max age (seconds).
config.cpuEmaAlphastringnilCPU exponential moving average alpha for overload smoothing.
config.cpuOverloadHysteresisstringnilCPU overload hysteresis in percentage points.
config.cpuSampleIntervalMsstringnilCPU sampler interval in milliseconds for overload smoothing.
config.dataDirstringnilData directory path.
config.debugstring"-*"Debug selector (e.g. "-*" to reduce logs).
config.downloadDirstringnilDownload directory path.
config.enableCorsstringnilEnable CORS.
config.errorAlertUrlstringnilCallback URL for Browserless runtime errors.
config.externalstringnilExample: https://browserless.example.com
config.hoststring"0.0.0.0"Bind host.
config.machineStatsSourcestringnilMachine stats source for overload checks (auto, host, or cgroup).
config.maxCpuPercentstringnilOverload protection CPU threshold percentage.
config.maxMemoryPercentstringnilOverload protection memory threshold percentage.
config.metricsJsonPathstringnilMetrics JSON path.
config.portint3000Bind port.
config.queuedint10Max queued sessions.
config.scratchDirstringnilRoot for Browserless-owned per-session temporary files. Null uses the upstream temporary directory; keep this separate from reusable browser profiles.
config.strictTokenUseboolnilRequire TOKEN on all routes, including routes that normally opt out of authentication. Static files remain public. Null preserves the upstream default (false).
config.timeoutint600000Max session timeout in milliseconds.
config.tokenstring"change-me"Change this in production.
config.tokenSecretRefstringnilkey: token
envFromlist[]Extra envFrom entries.
extraEnvlist[]Additional environment variables.
fullnameOverridestring""Override fully-qualified release name.
image.browserstring"chromium"Supported presets: chromium, chrome, firefox, multi.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring""Image repository override. When empty, defaults to ghcr.io/browserless/.
image.tagstring""Image tag override. Defaults to Chart appVersion.
imagePullSecretslist[]List of image pull secrets.
livenessProbeobject{"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"tcpSocket":{"port":"http"},"timeoutSeconds":1}Liveness probe.
nameOverridestring""Override chart name.
nodeSelectorobject{}Node selector.
podAnnotationsobject{}Pod annotations.
podLabelsobject{}Pod labels.
podSecurityContextobject{}Pod security context.
readinessProbeobject{"exec":{"command":["/bin/sh","-ec","wget -qO- \"http://127.0.0.1:${PORT:-3000}/pressure?token=${TOKEN}\" >/dev/null"]},"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}Readiness probe.
replicaCountint1Number of replicas.
resourcesobject{}Container resources.
securityContextobject{}Container security context.
service.annotationsobject{}Service annotations.
service.externalTrafficPolicystringnilExternal traffic policy.
service.loadBalancerIPstringnilOptional LoadBalancer IP.
service.loadBalancerSourceRangeslist[]Optional CIDRs allowed via LoadBalancer.
service.nodePortstringnilOptional nodePort.
service.portint80Service port.
service.typestring"ClusterIP"Service type.
serviceAccount.annotationsobject{}Service account annotations.
serviceAccount.createbooltrueCreate a service account.
serviceAccount.namestring""Service account name.
tolerationslist[]Tolerations.
volumeMountslist[]Additional volume mounts.
volumeslist[]Additional volumes.

Deploy browserless with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has browserless 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 chartbrowserless is pinned at v0.25.4 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