Installation
Install Holtdroid on Kubernetes with the Helm chart.
Цей контент ще не доступний вашою мовою.
-
Pick a sign-in mode — see Authentication. Every mode except
header/noneneeds a session signing key:Terminal window kubectl create namespace holtdroidkubectl -n holtdroid create secret generic holtdroid \--from-literal=SESSION_KEY="$(openssl rand -base64 48)"Add whatever else your config references with
env:(OIDC client secret, shared password, S3 keys) to the same Secret. External Secrets Operator, Sealed Secrets and friends work just as well — the chart only needs the Secret’s name. -
Write your values.
values.yaml publicURL: https://android.example.comexistingSecret: holtdroidconfig:auth:mode: anonymoussessionKey: env:SESSION_KEYproviders:emulator:enabled: truenodeSelector: { holtdroid/sessions: "true" } # nodes with binder and a GPU, dedicated to sessionsslotsPerNode: 4# vpn: { locations: [...] } # see the emulator provider pageingress:enabled: truehost: android.example.com -
Install the chart, from a release:
Terminal window helm install holtdroid oci://ghcr.io/holtdroid/charts/holtdroid -n holtdroid -f values.yamlor straight from git, pinning the image to the checked-out commit:
Terminal window git clone https://github.com/holtdroid/holtdroidhelm install holtdroid holtdroid/deploy/helm/holtdroid -n holtdroid -f values.yaml \--set image.tag="$(git -C holtdroid rev-parse HEAD)" -
Open the URL and upload an APK with the Upload button, or drop files into the
localsource directly:Terminal window kubectl -n holtdroid cp app.apk "$(kubectl -n holtdroid get pod -l app.kubernetes.io/component=api -o name | cut -d/ -f2)":/var/lib/holtdroid/apks/For builds that arrive from CI or Slack, point a sync job at an S3 bucket and add it as a source.
-
Add Chromium and WebView builds (optional). The project’s chromium-builds releases carry Chromium browser and WebView APKs for every milestone from 83 on, x86_64 and arm64. Copy them into a bucket with the
chromium-buildsjob of the holtdroid-sync chart:chromium-builds-sync.yaml job: chromium-buildsexistingSecret: holtdroid-chromium-builds-sync # S3_ACCESS_KEY, S3_SECRET_KEYconfig:target:type: s3s3:endpoint: https://s3.example.combucket: holtdroidprefix: chromium-buildsaccessKey: env:S3_ACCESS_KEYsecretKey: env:S3_SECRET_KEYTerminal window git clone https://github.com/holtdroid/holtdroid-synchelm install holtdroid-chromium-builds-sync holtdroid-sync/deploy/helm/holtdroid-sync \-n holtdroid -f chromium-builds-sync.yaml --set image.tag="$(git -C holtdroid-sync rev-parse HEAD)"The job writes the browsers to
chromium-builds/browserand the WebViews tochromium-builds/webview. Add the first as a read-only source, so Chromium shows up in the build list like any app, and the second as the WebView catalog, so the launch dialog offers Chromium WebView versions:values.yaml config:sources:- name: local # listing sources replaces the default one; keep it for uploadstype: filesystemfilesystem: { dir: /var/lib/holtdroid/apks }- name: chromiumtype: s3readOnly: trues3:endpoint: https://s3.example.combucket: holtdroidprefix: chromium-builds/browseraccessKey: env:S3_ACCESS_KEYsecretKey: env:S3_SECRET_KEYwebview:storage:type: s3s3:endpoint: https://s3.example.combucket: holtdroidprefix: chromium-builds/webviewaccessKey: env:S3_ACCESS_KEYsecretKey: env:S3_SECRET_KEYAll releases take about 55 GB. Without a cluster job, run it once from any computer with Docker, or upload single browser APKs from a release page with Upload; see Chromium versions and WebView versions for what the builds can and can’t do.
Tracking main with Argo CD
Section titled “Tracking main with Argo CD”Every commit to main publishes ghcr.io/holtdroid/holtdroid:<commit sha>. An Argo CD Application can follow the
branch and use the synced commit as the image tag, so new commits roll out on their own:
apiVersion: argoproj.io/v1alpha1kind: Applicationmetadata: name: holtdroid namespace: argocdspec: project: default destination: server: https://kubernetes.default.svc namespace: holtdroid source: repoURL: https://github.com/holtdroid/holtdroid.git targetRevision: main path: deploy/helm/holtdroid helm: parameters: - name: image.tag value: $ARGOCD_APP_REVISION valuesObject: publicURL: https://android.example.com existingSecret: holtdroid # …the rest of your values syncPolicy: automated: { prune: true, selfHeal: true } syncOptions: [CreateNamespace=true]Keep it a single-source Application so $ARGOCD_APP_REVISION is the holtdroid commit. Extra manifests (an
ExternalSecret, a Traefik Middleware, …) can go into the chart’s extraObjects value. Right after a push the new
pod may wait in ImagePullBackOff for a few minutes until that commit’s image is built.
Chart values
Section titled “Chart values”| Value | Default | Meaning |
|---|---|---|
image.repository / tag |
ghcr.io/holtdroid/holtdroid |
Tag defaults to the chart’s appVersion |
publicURL |
– | External URL; needed for OIDC and secure cookies |
existingSecret |
– | Secret exposed as env to every component (for env: references) |
config |
anonymous, filesystem | Merged into the api config, see Configuration |
api.replicas |
1 |
Safe to raise with a shared sessionKey |
api.cacheVolume |
emptyDir 25Gi |
Volume for storage.type: filesystem |
api.persistence.* |
RWO PVC, 10Gi | Mounted at /var/lib/holtdroid: the default local source and uploads |
providers.fake.enabled |
false |
Simulated devices |
providers.emulator.* |
disabled | Emulator sessions, see Emulator provider |
providers.physical.* |
disabled | Phones on USB, see Phone provider |
extraProviders |
[] |
Out-of-tree providers: [{name, url}] |
ingress.* |
disabled | Standard Ingress |
telemetry.* |
off | Prometheus metrics and tracing, see Monitoring |
audit.* |
stdout | Audit log of the api and ssh-gateway, same page |
extraObjects |
[] |
Extra manifests, rendered with tpl |