browserless
by alekc
Headless Chrome/Chromium browser automation service for Puppeteer, Playwright, and the DevTools protocol, running on Kubernetes.
About this chart
browserless
Headless Chrome/Chromium browser automation service for Puppeteer, Playwright, and the DevTools protocol, running on Kubernetes.
browserless runs a pool of headless Chrome/Chromium instances behind a single HTTP endpoint, so Puppeteer, Playwright, or any DevTools-protocol client can drive a browser without managing Chrome itself. This chart runs it as a Deployment with an optional Ingress and HorizontalPodAutoscaler.
Quick start
From the classic chart repository:
helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-browserless alekc/browserless \
--set env.simple.TOKEN=changeme
Or directly from the OCI registry, no helm repo add needed:
helm install my-browserless oci://charts.alekc.dev/browserless --version 1.0.0 \
--set env.simple.TOKEN=changeme
Verifying the signature
curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/browserless --version 1.0.0 --verify --keyring pubring.gpg
Maintainers
| Name | Url | |
|---|---|---|
| alekc | [email protected] | https://blog.alekc.org |
Source Code
Gotchas
- The readiness probe assumes
env.simple.TOKENmatches whatever token browserless itself is configured with. It calls/pressure?token=$TOKEN($TOKENfrom the container's own environment), so if browserless requires a token andenv.simple.TOKENis unset or wrong, the probe fails permanently and the pod never becomes Ready. Set the same value browserless expects. autoscaling.enabledrenders anautoscaling/v2HorizontalPodAutoscaler. Earlier releases of this chart used the now-removedautoscaling/v2beta1, which fails outright on any cluster running Kubernetes 1.26 or later.- The chart sets no
resourcesby default, per upstream Helm convention (see the comment invalues.yaml). browserless itself is memory-hungry under load (each concurrent Chrome instance is its own process), sizeresources.limits.memoryfor your expectedenv.simple.CONCURRENT. networkPolicy.enabledrestricts egress to DNS plus whateverextraEgressadds. Puppeteer/Playwright scripts navigate to arbitrary destinations, so enabling this without a realnetworkPolicy.extraEgressentry will silently break navigation, not fail loudly.metrics.serviceMonitor.enabledonly tells Prometheus where to scrape. browserless/chrome does not expose a Prometheus metrics endpoint natively as of this writing, this option only helps if your image or edition adds one.podDisruptionBudget.enabledis only meaningful oncereplicaCount(orautoscaling.minReplicas) is greater than 1. With a single replica, a PDB withminAvailable: 1blocks voluntary node draining entirely, since there is no second pod to take over first.
Upgrade notes
1.0.0: first stable release. Earlier 0.x releases were unedited
helm create scaffolding with no real defaults for this app; nothing in
this group ever depended on them.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalManifests | object | {} | Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends. |
| affinity | object | {} | Affinity rules applied to the pod. |
| autoscaling.annotations | object | {} | Annotations to add to the HorizontalPodAutoscaler |
| autoscaling.enabled | bool | false | Renders a HorizontalPodAutoscaler instead of a fixed replicaCount. |
| autoscaling.maxReplicas | int | 100 | Maximum replicas. |
| autoscaling.minReplicas | int | 1 | Minimum replicas. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Target average CPU utilization percentage. |
| commonAnnotations | object | {} | Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated .annotations field. |
| commonLabels | object | {} | Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate. |
| deploymentAnnotations | object | {} | Annotations added to the Deployment object itself. |
| env | object | {"full":[],"simple":{"CONCURRENT":10}} | environment values |
| env.full | list | [] | full envs, they will be rendered as written here. Useful if you need to use secrets/cm |
| env.simple | object | {"CONCURRENT":10} | simple key: val based env vars. Set TOKEN here to enable browserless's own auth; the readiness probe already reads it, see the README's Gotchas section. |
| extraContainers | list | [] | Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends. |
| fullnameOverride | string | "" | Overrides the chart's fullname, used to name every resource it renders. |
| gateway.annotations | object | {} | Annotations to add to the HTTPRoute |
| gateway.enabled | bool | false | Renders an HTTPRoute attached to an existing Gateway, instead of (or alongside) Ingress. Requires the Gateway API CRDs and a Gateway already provisioned elsewhere, this chart never creates the Gateway itself. |
| gateway.hostnames | list | [] | Hostnames this HTTPRoute matches. Leave empty to inherit the Gateway's own. |
| gateway.name | string | "" | Name of the existing Gateway to attach the HTTPRoute to. |
| gateway.namespace | string | "" | Namespace of the existing Gateway. Defaults to this release's namespace. |
| gateway.rules | list | [{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}] | HTTPRoute rules, each needs at least matches, see the Gateway API spec. |
| gateway.sectionName | string | "" | Optional listener sectionName on the Gateway to bind to. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "ghcr.io/browserless/chrome" | Container image repository. |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | Image pull secrets, for a private registry mirror. |
| ingress.annotations | object | {} | Annotations merged onto the Ingress. |
| ingress.className | string | "" | IngressClass name. |
| ingress.enabled | bool | false | Renders an Ingress for the Service. |
| ingress.hosts | list | [{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}] | Ingress host and path rules. |
| ingress.tls | list | [] | Ingress TLS entries. |
| initContainers | list | [] | Extra init containers appended to the pod spec, templated with tpl. |
| metrics.serviceMonitor.additionalLabels | object | {} | Additional labels merged onto the ServiceMonitor itself (for a Prometheus Operator serviceMonitorSelector). |
| metrics.serviceMonitor.annotations | object | {} | Annotations to add to the ServiceMonitor |
| metrics.serviceMonitor.enabled | bool | false | Renders a ServiceMonitor for the Prometheus Operator. Requires the monitoring.coreos.com CRDs. browserless/chrome does not expose a Prometheus metrics endpoint natively as of this writing, this only helps if your image/edition adds one, see Gotchas. |
| metrics.serviceMonitor.interval | string | "30s" | Scrape interval. |
| metrics.serviceMonitor.path | string | "/metrics" | Metrics path. |
| nameOverride | string | "" | Overrides the chart's name in the fullname template. |
| networkPolicy.annotations | object | {} | Annotations to add to the NetworkPolicy |
| networkPolicy.enabled | bool | false | Render a NetworkPolicy restricting ingress to the Service port and egress to DNS plus whatever extraEgress adds. Puppeteer/Playwright scripts navigate to arbitrary destinations, so most deployments need a real extraEgress entry once this is enabled, see Gotchas. |
| networkPolicy.extraEgress | list | [] | Additional raw egress rules, appended as-is under spec.egress. |
| networkPolicy.extraIngress | list | [] | Additional raw ingress rules, appended as-is under spec.ingress. |
| nodeSelector | object | {} | Node selector applied to the pod. |
| persistence.accessMode | string | "ReadWriteOnce" | Access mode for the created PVC. |
| persistence.annotations | object | {} | Annotations to add to the PersistentVolumeClaim |
| persistence.enabled | bool | false | Render a PersistentVolumeClaim and mount it into the container, e.g. for a downloads/profile directory that should survive pod restarts. Off by default, browserless is otherwise stateless. |
| persistence.existingClaim | string | "" | Use an existing PVC instead of creating one. When set, enabled still gates whether the volume is mounted, but no PVC is created here. |
| persistence.mountPath | string | "/data" | Path inside the container to mount the volume at. |
| persistence.size | string | "1Gi" | Requested size for the created PVC. |
| persistence.storageClass | string | "" | StorageClass for the created PVC. Empty uses the cluster default. |
| podAnnotations | object | {} | Annotations added to the pod template. |
| podDisruptionBudget.annotations | object | {} | Annotations to add to the PodDisruptionBudget |
| podDisruptionBudget.enabled | bool | false | Render a PodDisruptionBudget. Only meaningful once replicaCount (or autoscaling.minReplicas) is greater than 1, see Gotchas. |
| podDisruptionBudget.maxUnavailable | string | "" | Maximum unavailable pods during a voluntary disruption. |
| podDisruptionBudget.minAvailable | string | "" | Minimum available pods during a voluntary disruption. Mutually exclusive with maxUnavailable. |
| podSecurityContext | object | {} | Pod-level securityContext. |
| replicaCount | int | 1 | Pod replica count, ignored when autoscaling.enabled is true. |
| resources | object | {} | Container resource requests/limits. |
| revisionHistoryLimit | int | 3 | limit the number of replicasets (default 3) |
| securityContext | object | {} | Container-level securityContext. |
| service.annotations | object | {} | Annotations merged onto the Service. |
| service.port | int | 3000 | Service port. |
| service.type | string | "ClusterIP" | Service type. |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | [] | Tolerations applied to the pod. |
| volumeMounts | list | [] | define additional volumeMounts |
| volumes | list | [] | define 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbrowserless is pinned at v1.10.4 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