browserless

by alekc

Helm chartv1.10.4App 2.64.4Verified publisher

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

NameEmailUrl
alekc[email protected]https://blog.alekc.org

Source Code

Gotchas

  • The readiness probe assumes env.simple.TOKEN matches whatever token browserless itself is configured with. It calls /pressure?token=$TOKEN ($TOKEN from the container's own environment), so if browserless requires a token and env.simple.TOKEN is unset or wrong, the probe fails permanently and the pod never becomes Ready. Set the same value browserless expects.
  • autoscaling.enabled renders an autoscaling/v2 HorizontalPodAutoscaler. Earlier releases of this chart used the now-removed autoscaling/v2beta1, which fails outright on any cluster running Kubernetes 1.26 or later.
  • The chart sets no resources by default, per upstream Helm convention (see the comment in values.yaml). browserless itself is memory-hungry under load (each concurrent Chrome instance is its own process), size resources.limits.memory for your expected env.simple.CONCURRENT.
  • networkPolicy.enabled restricts egress to DNS plus whatever extraEgress adds. Puppeteer/Playwright scripts navigate to arbitrary destinations, so enabling this without a real networkPolicy.extraEgress entry will silently break navigation, not fail loudly.
  • metrics.serviceMonitor.enabled only 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.enabled is only meaningful once replicaCount (or autoscaling.minReplicas) is greater than 1. With a single replica, a PDB with minAvailable: 1 blocks 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

KeyTypeDefaultDescription
additionalManifestsobject{}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.
affinityobject{}Affinity rules applied to the pod.
autoscaling.annotationsobject{}Annotations to add to the HorizontalPodAutoscaler
autoscaling.enabledboolfalseRenders a HorizontalPodAutoscaler instead of a fixed replicaCount.
autoscaling.maxReplicasint100Maximum replicas.
autoscaling.minReplicasint1Minimum replicas.
autoscaling.targetCPUUtilizationPercentageint80Target average CPU utilization percentage.
commonAnnotationsobject{}Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated .annotations field.
commonLabelsobject{}Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate.
deploymentAnnotationsobject{}Annotations added to the Deployment object itself.
envobject{"full":[],"simple":{"CONCURRENT":10}}environment values
env.fulllist[]full envs, they will be rendered as written here. Useful if you need to use secrets/cm
env.simpleobject{"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.
extraContainerslist[]Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends.
fullnameOverridestring""Overrides the chart's fullname, used to name every resource it renders.
gateway.annotationsobject{}Annotations to add to the HTTPRoute
gateway.enabledboolfalseRenders 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.hostnameslist[]Hostnames this HTTPRoute matches. Leave empty to inherit the Gateway's own.
gateway.namestring""Name of the existing Gateway to attach the HTTPRoute to.
gateway.namespacestring""Namespace of the existing Gateway. Defaults to this release's namespace.
gateway.ruleslist[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]HTTPRoute rules, each needs at least matches, see the Gateway API spec.
gateway.sectionNamestring""Optional listener sectionName on the Gateway to bind to.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"ghcr.io/browserless/chrome"Container image repository.
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Image pull secrets, for a private registry mirror.
ingress.annotationsobject{}Annotations merged onto the Ingress.
ingress.classNamestring""IngressClass name.
ingress.enabledboolfalseRenders an Ingress for the Service.
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress host and path rules.
ingress.tlslist[]Ingress TLS entries.
initContainerslist[]Extra init containers appended to the pod spec, templated with tpl.
metrics.serviceMonitor.additionalLabelsobject{}Additional labels merged onto the ServiceMonitor itself (for a Prometheus Operator serviceMonitorSelector).
metrics.serviceMonitor.annotationsobject{}Annotations to add to the ServiceMonitor
metrics.serviceMonitor.enabledboolfalseRenders 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.intervalstring"30s"Scrape interval.
metrics.serviceMonitor.pathstring"/metrics"Metrics path.
nameOverridestring""Overrides the chart's name in the fullname template.
networkPolicy.annotationsobject{}Annotations to add to the NetworkPolicy
networkPolicy.enabledboolfalseRender 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.extraEgresslist[]Additional raw egress rules, appended as-is under spec.egress.
networkPolicy.extraIngresslist[]Additional raw ingress rules, appended as-is under spec.ingress.
nodeSelectorobject{}Node selector applied to the pod.
persistence.accessModestring"ReadWriteOnce"Access mode for the created PVC.
persistence.annotationsobject{}Annotations to add to the PersistentVolumeClaim
persistence.enabledboolfalseRender 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.existingClaimstring""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.mountPathstring"/data"Path inside the container to mount the volume at.
persistence.sizestring"1Gi"Requested size for the created PVC.
persistence.storageClassstring""StorageClass for the created PVC. Empty uses the cluster default.
podAnnotationsobject{}Annotations added to the pod template.
podDisruptionBudget.annotationsobject{}Annotations to add to the PodDisruptionBudget
podDisruptionBudget.enabledboolfalseRender a PodDisruptionBudget. Only meaningful once replicaCount (or autoscaling.minReplicas) is greater than 1, see Gotchas.
podDisruptionBudget.maxUnavailablestring""Maximum unavailable pods during a voluntary disruption.
podDisruptionBudget.minAvailablestring""Minimum available pods during a voluntary disruption. Mutually exclusive with maxUnavailable.
podSecurityContextobject{}Pod-level securityContext.
replicaCountint1Pod replica count, ignored when autoscaling.enabled is true.
resourcesobject{}Container resource requests/limits.
revisionHistoryLimitint3limit the number of replicasets (default 3)
securityContextobject{}Container-level securityContext.
service.annotationsobject{}Annotations merged onto the Service.
service.portint3000Service port.
service.typestring"ClusterIP"Service type.
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]Tolerations applied to the pod.
volumeMountslist[]define additional volumeMounts
volumeslist[]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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbrowserless is pinned at v1.10.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