AWS and Google Cloud in one command¶
hearth up aws and hearth up gcp create a cluster that grows and shrinks with your test load,
install the farm, put the gateway behind the cloud's load balancer, and save the farm so hearth
status, hearth connect and the rest work at once.
Both ask before creating anything that costs money (--yes skips the question), and both accept
--dry-run to print the exact plan first. Start there:
Restrict who can reach the gateway
The load balancer is public. API keys protect every call, but restrict it to your office or CI
ranges with --allow-cidr 203.0.113.0/24 (repeat for several), and put TLS in front of it for
anything beyond a trial (see Configuration).
AWS (EKS)¶
Needs eksctl, aws (signed in to the account and region you want), helm and kubectl.
What it does, in order:
- Writes an eksctl cluster config and runs
eksctl create cluster(about 20 minutes). The cluster has OIDC, the VPC CNI, CoreDNS, kube-proxy and the EBS CSI driver (the bundled artifact store needs a volume), a smallsystemnode group, and abrowsersnode group of--node-type(defaultm6i.2xlarge) from--min-nodes(1) to--max-nodes(10). - Adds the cluster to your kubeconfig as context
hearth-aws-<name>. - Installs the cluster autoscaler: when browser pods are pending, nodes are added up to
--max-nodes; idle nodes are removed. Busy browser pods are marked so a node with a running session is not taken away. - Installs the farm with the gateway behind an internet-facing Network Load Balancer, and waits for its address.
| Option | Default | Meaning |
|---|---|---|
--name |
hearth |
Cluster name |
--region |
$AWS_REGION or us-east-1 |
Region |
--kubernetes-version |
1.33 |
EKS version |
--node-type |
m6i.2xlarge |
Browser node instance type (about 6 Chromium sessions per node at the default 1 CPU / 2 GiB) |
--min-nodes, --max-nodes |
1, 10 | Browser node group size |
--existing-cluster |
Install on the current kubectl context instead | |
--allow-cidr |
anyone | Ranges allowed to reach the load balancer |
Android emulators in the cluster need nodes with KVM (bare-metal instances, or instance types with
nested virtualisation); add such a node group yourself and set devicePools[].cluster. Agents on
Macs and other hosts work as they are.
Tear down: hearth down deletes the farm and the cluster (--keep-cluster keeps the cluster).
Google Cloud (GKE Autopilot)¶
Needs gcloud (signed in, with a project set or --project), helm and kubectl.
What it does:
gcloud container clusters create-auto(about 10 minutes). Autopilot adds and removes nodes as browser pods come and go; you pay for the pods, not idle nodes.gcloud container clusters get-credentials(contextgke_<project>_<region>_<name>).- Installs the farm with the gateway behind a load balancer and waits for its IP.
| Option | Default | Meaning |
|---|---|---|
--name |
hearth |
Cluster name |
--project |
gcloud's project | Project |
--region |
us-central1 |
Region |
--existing-cluster |
Install on the current kubectl context instead (GKE Standard, for example) | |
--allow-cidr |
anyone | Ranges allowed to reach the load balancer |
Autopilot does not allow privileged pods, so Android emulators in the cluster need a GKE Standard
cluster with nested virtualisation (--existing-cluster). Browsers, Selenium, and agents on hosts
work on Autopilot.
Tear down: hearth down.
Any other cluster¶
Point kubectl at it and run hearth up aws --existing-cluster or hearth up gcp --existing-cluster
(the only difference is the load balancer annotations), or install the chart yourself with Helm (see
Getting started).