Self-hostGet running
Kubernetes
The chart in deploy/helm/holtkeeper runs every role from one image: web pods that serve the panel and run the scheduler, worker pods that take jobs, and optional pieces for a dedicated scheduler, write tasks, an egress proxy, autoscaling and NetworkPolicies. It needs Postgres and an S3-compatible bucket you provide.
flowchart LR ingress[Ingress] --> web[web Deployment: web,scheduler] web --> pg[(Postgres)] web --> s3[(S3 bucket)] worker[worker Deployment or KEDA ScaledJob] --> pg worker --> s3 worker -- job traffic --> proxy[egress proxy] write[write worker: --pool write] -- all traffic --> proxy proxy -- rules --> web proxy --> internet[GitLab, registries, AI provider]
What the chart renders
Section titled “What the chart renders”| Object | When | Notes |
|---|---|---|
ConfigMap holtkeeper.config.ts |
always | config.content, else the chart’s files/holtkeeper.config.ts; or config.existingConfigMap. Pods restart when it changes. |
web Deployment and Service |
always | Roles web,scheduler; optional Ingress, HPA on CPU, PodDisruptionBudget. |
worker Deployment |
always | Headless Service for metrics, PDB; one Deployment per entry of worker.pools. |
scheduler Deployment |
scheduler.enabled |
The web pods then run web only. |
write-worker Deployment |
writeWorker.enabled |
See Write workers. |
| Egress proxy | egressProxy.enabled |
See Egress. |
| ServiceMonitor, KEDA ScaledObject or ScaledJob, NetworkPolicies | opt-in | |
| ServiceAccount | always | No Role and no token mounted: nothing talks to the Kubernetes API. |
extraObjects |
when set | Anything else, such as an ExternalSecret or a database cluster. |
Every pod runs as uid 10001 with a read-only root filesystem, no capabilities and the RuntimeDefault seccomp profile. /tmp (also HOME, tmpSizeLimit default 8Gi), /workspace and /mise are emptyDirs. Probes: startup and liveness on /healthz, readiness on /readyz.
Install
Section titled “Install”-
Create a Secret with the environment every container needs:
holtkeeper.env HOLTKEEPER_VAULT_KEY=...HOLTKEEPER_SESSION_SECRET=...HOLTKEEPER_WEBHOOK_SECRET=...HOLTKEEPER_DATABASE_URL=postgres://holtkeeper:...@postgres.example.internal:5432/holtkeeperHOLTKEEPER_S3_BUCKET=holtkeeperHOLTKEEPER_S3_ENDPOINT=https://s3.example.comHOLTKEEPER_S3_REGION=eu-north-1HOLTKEEPER_S3_ACCESS_KEY_ID=...HOLTKEEPER_S3_SECRET_ACCESS_KEY=...Terminal kubectl create secret generic holtkeeper --from-env-file=holtkeeper.env -
Write your values:
values.yaml existingSecret: holtkeeperimage:tag: '<version>' # a release such as 1.4.0, or a commit SHAenv:- { name: HOLTKEEPER_AUTH, value: users }- { name: HOLTKEEPER_PUBLIC_URL, value: https://holtkeeper.example.com }- { name: HOLTKEEPER_ADMIN_EMAIL, value: admin@example.com }web:ingress:enabled: truehosts:- host: holtkeeper.example.compaths: ['/'] -
Install the chart:
Terminal helm install holtkeeper deploy/helm/holtkeeper -f values.yaml -
Read the admin’s setup link from the web pod log and register a passkey (Sign-in):
Terminal kubectl logs deploy/holtkeeper-web -
Add the GitLab forge, its token credential and its fleet in Settings › Integrations, then teams on Repos › Teams. The chart’s config has no forge.
The image defaults to ghcr.io/holtkeeper/holtkeeper at the chart’s appVersion; set image.tag to the release you run. Every container gets HOLTKEEPER_VERSION (from version, else image.tag, else appVersion), which the panel shows in the Settings footer. values.schema.json validates the values.
Roles and scaling
Section titled “Roles and scaling”-
Web is stateless: scale with
web.replicas(default 2) orweb.hpa. Only one pod runs the scheduler at a time, under a lease in the store. -
Workers:
worker.replicas×worker.concurrency(summed over pools) is how many jobs run at once.worker.concurrencyempty meansjobs.concurrencyfrom the config (2 in the chart’s config). -
Pools split workers by node class, each pool a Deployment
<release>-worker-<name>with its own fields on top ofworker:values.yaml worker:pools:- { name: small, replicas: 3, concurrency: 2, spread: true, claimDelay: 15s }- {name: big,replicas: 1,concurrency: 4,nodeSelector: { kubernetes.io/hostname: big-node },}claimDelaymakes a pool take only jobs nobody else claimed within that time, so pools without one fill first.spread: truekeeps a pool’s pods on different nodes. A pool pinned to a node without room for a second pod needsstrategy: { rollingUpdate: { maxSurge: 0, maxUnavailable: 1 } }, or its rollout waits forever for CPU the old pod holds. -
KEDA:
keda.enabledscales the worker Deployment onmax(holtkeeper_jobs_queued)from Prometheus,keda.thresholdqueued jobs per replica (default2).
More in Scaling.
Caches on volumes
Section titled “Caches on volumes”| Value | Default | Use a PVC when |
|---|---|---|
worker.mirrorCache.type |
workspace (in the emptyDir) |
New pods should not clone every repository again. pvc (50Gi, ReadWriteMany) is shared by workers with a lock file per mirror; NFS works. |
worker.miseCache.type |
emptyDir (10Gi) |
Workers should share installed tools (pvc, ReadWriteMany). |
worker.workspace.sizeLimit |
20Gi |
— |
Workers report what these caches use, and Settings › System shows it per worker (a shared volume once).
Isolation: one job per pod
Section titled “Isolation: one job per pod”Jobs run analyzers and repository tooling inside the worker pod. For repositories you do not fully trust, give every job a fresh pod:
keda.scaledJob.enabled: true(withkeda.enabled): one Kubernetes Job per queued job, running--max-jobs 1, never reused.activeDeadlineSeconds(default 7200) bounds a pod that found no job.- Without KEDA,
worker.maxJobs: 1restarts the container after each job. The emptyDirs survive the restart and kubelet backs off repeated restarts, so this is weaker and slower.
Job commands do not inherit the worker’s secrets: nothing named HOLTKEEPER_* reaches them. That stops accidental leaks, not a hostile command: commands run as the worker’s uid and can still read /proc/<worker pid>/environ, the config file and other checkouts in /workspace, and reach whatever the worker’s NetworkPolicy allows.
NetworkPolicies
Section titled “NetworkPolicies”networkPolicy.enabled restricts traffic:
- web pods accept traffic only from
webIngressFrom(your ingress controller; empty means anyone); - worker and scheduler pods accept only metrics scrapes from
metricsFrom, and reach only DNS,workerEgress(ports 443, 80 and 22 to0.0.0.0/0by default: GitLab, package registries, the AI provider, Slack) andextraEgress, where you list Postgres and the object store.
networkPolicy: enabled: true webIngressFrom: - namespaceSelector: { matchLabels: { kubernetes.io/metadata.name: ingress-nginx } } extraEgress: - to: [{ ipBlock: { cidr: 10.20.0.0/24 } }] # Postgres and the object store ports: [{ port: 5432 }, { port: 443 }]If you narrow workerEgress.cidrs, keep GitLab, the registries, your AI provider and slack.com reachable. See Egress.
Write workers
Section titled “Write workers”Write tasks let an agent edit a checkout, run the repository’s checks, push a branch and open a draft merge request. Only workers of the write pool claim them. writeWorker.enabled (needs egressProxy.enabled) adds that pool:
writeWorker: enabled: true replicas: 1 concurrency: 1egressProxy: enabled: true ca: certManager: truenetworkPolicy: enabled: true extraEgress: [] # Postgres and the object store, as for the other workers- The Deployment
<release>-write-workerruns--role worker --pool write. Fields it does not set come fromworker. It has no KEDA scaling. - All of its traffic — GitLab API, git over HTTPS, the AI provider, the agent’s commands and package installs — goes through the egress proxy, which adds the registry tokens it holds. With NetworkPolicies it reaches only DNS, the proxy,
networkPolicy.extraEgressandwriteWorker.extraEgress. Git over SSH needs port 22 to GitLab inwriteWorker.extraEgress; otherwise use HTTPS. - Write workers refuse to start while
jobs.execution.modeishost. The chart’s config usesmise. - Write tasks stay refused until an admin turns on the
tasks.writesetting in the panel (Ops › Tasks).
Keep writeWorker.replicas × concurrency small: the agent’s commands run as the worker’s uid, with the same /proc caveat as other jobs.
Webhooks behind the Ingress
Section titled “Webhooks behind the Ingress”GitLab posts to https://holtkeeper.example.com/api/webhooks/<forge>. Set HOLTKEEPER_PUBLIC_URL so the hooks Holtkeeper registers point at the Ingress host, allow request bodies of a few MB (for ingress-nginx, nginx.ingress.kubernetes.io/proxy-body-size), and add GitLab’s addresses to webIngressFrom when NetworkPolicies are on. Any web pod can take a webhook.
Related
Section titled “Related”- Egress — the proxy, registry tokens and the download cache.
- Scaling — pools, KEDA and limits.
- Upgrades — image tags and migrations.
- Deployment reference — every chart option.