Configuration¶
Every value of the Helm chart (charts/hearth/values.yaml), with its default. Set them with
-f values.yaml or --set key=value; with hearth up local, pass --set key=value.
Images¶
| Value | Default | Meaning |
|---|---|---|
image.registry |
ghcr.io/test-zeus-ai |
Registry of the Hearth images |
image.tag |
"" |
Tag of hearth-gateway and hearth-operator; empty means the chart's appVersion |
image.pullPolicy |
IfNotPresent |
Pull policy of the gateway and operator |
Gateway¶
| Value | Default | Meaning |
|---|---|---|
gateway.replicas |
2 |
Gateway replicas. They are stateless; any replica serves any session. Above 1, the chart adds a PodDisruptionBudget (minAvailable: 1) |
gateway.service.type |
ClusterIP |
NodePort or LoadBalancer to expose the gateway directly |
gateway.service.port |
80 |
Service port |
gateway.service.nodePort |
null |
Fixed node port when type: NodePort |
gateway.drainSeconds |
3600 |
How long a stopping gateway keeps serving open sessions. The pod's termination grace period is this plus 30 s |
gateway.resources |
requests 250m CPU, 128Mi; limit 512Mi |
Gateway container resources |
gateway.ingress.enabled |
false |
Create an Ingress for the gateway |
gateway.ingress.className |
"" |
ingressClassName |
gateway.ingress.host |
"" |
Host name |
gateway.ingress.tls |
[] |
Ingress tls entries |
gateway.ingress.annotations |
{} |
Ingress annotations, e.g. longer proxy timeouts for WebSockets |
Exposing the gateway¶
The gateway speaks plain HTTP and WebSocket on port 8080. Every request needs an API key, so put TLS in front of it whenever it leaves your machine or private network.
| Option | Values | Notes |
|---|---|---|
| Port-forward | (none) | kubectl -n hearth port-forward svc/hearth-gateway 8080:80; fine for one person |
| Load balancer | gateway.service.type=LoadBalancer, gateway.service.annotations, gateway.service.loadBalancerSourceRanges |
What hearth up aws/gcp sets. Restrict the source ranges; terminate TLS on the load balancer with your cloud's certificate annotations |
| Ingress | gateway.ingress.enabled=true, className, host, tls, annotations |
With cert-manager for certificates. The ingress must allow WebSocket upgrades and long-lived connections (sessions last up to an hour) |
With TLS in front, clients use https:// and wss:// URLs; nothing else changes.
Operator¶
| Value | Default | Meaning |
|---|---|---|
operator.resources |
requests 50m CPU, 64Mi; limit 256Mi |
Operator container resources |
The operator always runs one replica; its loop is idempotent, so a restart just picks up.
Browser pods¶
| Value | Default | Meaning |
|---|---|---|
browser.image |
"" |
Image for Playwright pools; {version} becomes the pool's Playwright version. Empty means <registry>/hearth-browser:{version} |
browser.webdriverImage |
"" |
Image for WebDriver (Selenium) pools. Empty means <registry>/hearth-browser-webdriver:<tag> |
browser.pullPolicy |
"" |
Pull policy of browser and emulator pods; empty means image.pullPolicy |
browser.networkPolicy.enabled |
true |
Limit browser and emulator pods to the gateway, DNS and public addresses (see Security) |
browser.networkPolicy.allowCIDRs |
[] |
Private ranges browser pods may still reach, e.g. a staging app in your VPC |
A pool's own image field overrides browser.image and browser.webdriverImage.
Pools¶
pools is a list; each entry becomes a BrowserPool with the entry's name and every other key
copied into spec. Field reference: Pools and scaling.
pools:
- name: chromium
engine: chromium
playwrightVersion: "1.65"
warm: 2
maxSessions: 50
- name: firefox
engine: firefox
playwrightVersion: "1.65"
warm: 1
maxSessions: 20
- name: webkit
engine: webkit
playwrightVersion: "1.65"
warm: 1
maxSessions: 20
- name: selenium-chrome
engine: chromium
protocol: webdriver
warm: 1
maxSessions: 20
- name: selenium-firefox
engine: firefox
protocol: webdriver
warm: 0
maxSessions: 10
Setting pools replaces the whole list, so copy the entries you want to keep.
Device pools and agents¶
| Value | Default | Meaning |
|---|---|---|
devicePools |
[] |
Each entry becomes a DevicePool (name plus spec). See Mobile devices |
agents |
[] |
Hosts configured in the values (the older way; add Macs from the farm instead): - host: mac-1. Each gets a token in the Secret <release>-agent-<host>. See Device agents on hosts |
android.image |
"" |
Image for in-cluster Android emulators; empty means <registry>/hearth-android:35 (published for linux/amd64) |
The chart always creates one more agent token, <release>-agent-cluster, for in-cluster emulator
pods.
Teams¶
| Value | Default | Meaning |
|---|---|---|
teams |
one team, default |
Each entry makes a Team and a key Secret <release>-key-<name> |
teams[].name |
Team name | |
teams[].maxSessions |
0 |
Sessions at once; 0 means no limit |
teams[].admin |
false (true for the chart's default team) |
Its keys can add and manage hosts (Add a Mac) |
teams[].key |
"" |
Empty generates a key on first install and keeps it; set it to use your own (at least 32 characters, or the chart refuses to render) |
See Teams and keys.
helm upgrade --reuse-values and admin teams
--reuse-values keeps the teams list of the earlier install, which had no admin field, so no
team is admin afterwards and hearth hosts answers not_admin. Add
--set 'teams[0].name=default' --set 'teams[0].admin=true' to the upgrade, or run
hearth keys create <team> --admin.
Redis¶
| Value | Default | Meaning |
|---|---|---|
redis.enabled |
true |
Run a bundled Valkey (one pod, no persistence) |
redis.url |
"" |
Your own Redis, e.g. redis://my-redis:6379; required when enabled: false |
redis.prefix |
hearth |
Prefix of every key, so several farms can share one Redis |
redis.image |
valkey/valkey:8.1-alpine |
Bundled Valkey image |
redis.resources |
requests 50m CPU, 64Mi; limit 512Mi |
Bundled Valkey resources |
Hearth needs Lua scripting (EVAL), which every Redis and Valkey has. Only the gateway and the
operator connect to Redis. The bundled Valkey requires a password, generated once into the Secret
<release>-redis (key password) and kept on upgrades; for your own Redis, put the password in
redis.url (redis://:<password>@host:6379).
Storage¶
| Value | Default | Meaning |
|---|---|---|
storage.bundled.enabled |
true |
Run a bundled SeaweedFS serving the S3 API |
storage.bundled.image |
chrislusf/seaweedfs:4.56 |
SeaweedFS image |
storage.bundled.size |
20Gi |
Size of its volume |
storage.bundled.storageClass |
"" |
Storage class; empty uses the cluster default |
storage.s3.bucket |
hearth |
Bucket for artifacts and apps (the bundled store creates it) |
storage.s3.endpoint |
"" |
S3-compatible endpoint; empty means AWS S3. Ignored with the bundled store |
storage.s3.region |
us-east-1 |
Region |
storage.s3.credentialsSecret |
"" |
Secret with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY; ignored with the bundled store |
See Artifacts.
Metrics¶
| Value | Default | Meaning |
|---|---|---|
metrics.serviceMonitor.enabled |
false |
A Prometheus Operator ServiceMonitor for the gateway's /metrics (needs the Prometheus Operator's CRDs) |
metrics.serviceMonitor.interval |
30s |
Scrape interval |
metrics.dashboard.enabled |
false |
A ConfigMap with the Grafana dashboard, labelled grafana_dashboard: "1" for Grafana's sidecar |
See Operations.
Telemetry¶
| Value | Default | Meaning |
|---|---|---|
telemetry.enabled |
true |
Send usage telemetry (errors, session timing, an hourly farm snapshot). false sends nothing; agents follow it |
telemetry.organization |
"" |
Your company or team, sent so TestZeus knows whose farm it is |
telemetry.contact |
"" |
An email TestZeus may contact about Hearth |
telemetry.dsn |
"" |
Your own Sentry DSN instead of TestZeus's |
telemetry.tracesSampleRate |
1.0 |
Share of session allocations traced, 0 to 1 |
telemetry.environment |
production |
Sentry environment |
telemetry.snapshotSeconds |
3600 |
How often the farm snapshot is sent |
See Telemetry for exactly what is and is not sent.
Settings that are not Helm values¶
Some settings exist in the binaries but the chart does not expose them yet. They are listed here so you know the defaults:
| Setting | Default | Where |
|---|---|---|
Operator reconcile interval (HEARTH_RECONCILE_SECS) |
3 s | operator |
WebDriver idle timeout (HEARTH_IDLE_TIMEOUT_SECS) |
300 s | browser pods |
Time a claimed pod waits for its client (HEARTH_CLAIM_TIMEOUT_SECS) |
60 s | browser pods |
Virtual screen (HEARTH_SCREEN_WIDTH, HEARTH_SCREEN_HEIGHT) |
1280 x 800 | browser pods |
Video frame rate (HEARTH_VIDEO_FPS) |
10 | browser pods |
Log format (HEARTH_LOG_FORMAT=json) and level (RUST_LOG) |
text, info |
every binary |
And some fixed times, set in the code:
| What | Time |
|---|---|
| A pod that has not registered is replaced | after 10 minutes (90 s for a pod from an older template) |
| A queued request whose gateway is gone is failed | after 20 minutes |
| A browser pod or device whose heartbeat is older than this is not handed out | 15 seconds |
| Finished session records are kept | 7 days |
Custom resources¶
The chart ships three CRDs in charts/hearth/crds/: BrowserPool (bpool), DevicePool
(dpool) and Team, all in the hearth.testzeus.com/v1alpha1 group. Helm installs CRDs on first install
but never upgrades them; apply them yourself before upgrading the chart:
helm show crds oci://ghcr.io/test-zeus-ai/charts/hearth | kubectl apply --server-side --force-conflicts -f -
kubectl explain browserpool.spec describes every field.