dsh

by sp-yduck

Helm chartv0.10.0App 0.2.2-rc.3MITVerified publisher

Run the DeepSeek Harness (dsh) coding-agent Web UI on Kubernetes

About this chart

dsh chart values

The chart deploys the DeepSeek Harness Web UI. The repository README explains how to build the image, install the chart, and log in.

Values

ValueDefaultDescription
image.repositoryghcr.io/sp-yduck/dshImage repository.
image.tag""Image tag. An empty value uses the chart version; every chart version publishes its own immutable image, which contains the dsh version in appVersion.
image.pullPolicyIfNotPresentImage pull policy.
imagePullSecrets[]Pull secrets for a private registry.
trustedHosts[]Hosts that the dsh /api host check accepts, as host or host:port. A host without a port matches any port. The chart adds every ingress.hosts[].host when ingress.enabled is true. Each entry becomes a --trusted-host argument.
publicUrl""Root URL that dsh prints in the login URL, such as https://dsh.example.com/. Becomes --public-url. It changes only the printed URL and does not admit a host.
extraArgs[]More arguments for dsh --profile web. Run dsh web --help for the list.
plugins[]Plugin bundles installed with dsh plugin --profile web add before dsh starts, e.g. github:sp-yduck/dsh-ollama-cloud. Pin a commit with #<sha>.
env[]Extra container environment variables, in Kubernetes env format.
envFrom[]Extra environment sources, in Kubernetes envFrom format. Use it to pass API keys from a Secret.
telemetry.enabledtrueOpenTelemetry Session-log export: after in-UI feedback, dsh uploads the Session log to DeepSeek's collector. false sets DSH_TELEMETRY_DISABLED=1.
telemetry.sessionLogtruedsh_session_log request field: attaches the canonical Session log to official DeepSeek API requests. false mounts a --patch overlay that disables it.
service.typeClusterIPService type.
service.loadBalancerClass""loadBalancerClass of a LoadBalancer Service, such as service.k8s.aws/nlb. An empty value uses the cluster default.
service.port3080Service port. The container always listens on 3080.
ingress.enabledfalseCreates an Ingress for the Service.
ingress.className""ingressClassName of the Ingress.
ingress.annotations{}Ingress annotations.
ingress.hosts[{host: dsh.example.com}]Ingress hosts. Each entry routes / to the Service; leave host out for a rule without a host.
ingress.tls[]Ingress tls entries.
persistence.enabledtrueMounts a PersistentVolumeClaim at /data. When false, the chart mounts an emptyDir, and data is lost when the pod is replaced, for example by helm upgrade.
persistence.size10GiSize of the claim that the chart creates.
persistence.storageClass""Storage class of the claim that the chart creates. An empty value uses the cluster default.
persistence.existingClaim""Name of a claim to mount instead of creating one. helm uninstall does not delete it.
resources{}Container resource requests and limits.
podAnnotations{}Extra annotations on the pod.
podLabels{}Extra labels on the pod.
extraVolumes[]Extra pod volumes, in Kubernetes volumes format.
extraVolumeMounts[]Extra mounts for the dsh container, in Kubernetes volumeMounts format.
serviceAccount.createtrueCreates a ServiceAccount for the pod.
serviceAccount.name""ServiceAccount name. Defaults to the release full name, or default when create is false.
serviceAccount.annotations{}ServiceAccount annotations, such as a cloud workload identity.
serviceAccount.automountServiceAccountTokenfalseMounts a Kubernetes API token into the pod. The agent can read anything the pod can, so leave this off unless the agent must call the API.
podSecurityContextnon-root UID/GID 1000, fsGroup 1000, RuntimeDefault seccompPod security context.
securityContextno privilege escalation, all capabilities droppedContainer security context. The root filesystem stays writable because the agent installs toolchains under /usr/local.
runtimeClassName""RuntimeClass, such as gvisor or kata, to run the agent in a sandboxed runtime.
priorityClassName""PriorityClass of the pod.
networkPolicy.enabledtrueCreates a NetworkPolicy. It has no effect when the CNI does not enforce NetworkPolicy.
networkPolicy.ingressFrom[]Peers that may reach port 3080, in NetworkPolicy from format. Empty allows any source, so Ingress controllers, Tailscale proxies, and cloudflared work without changes.
networkPolicy.egress.blockPrivateNetworkstrueAllows egress to the internet and DNS only. Blocks private, CGNAT, link-local (cloud metadata), and loopback ranges, which include the cluster network and the Kubernetes API.
networkPolicy.egress.privateIPv4 / privateIPv6RFC 1918, 100.64.0.0/10, 169.254.0.0/16, ULA, link-localRanges that blockPrivateNetworks excludes.
networkPolicy.egress.extra[]More egress rules, such as an in-cluster model gateway.
nodeSelector{}Pod node selector.
tolerations[]Pod tolerations.
affinity{}Pod affinity.

Validation

values.schema.json validates the values on helm install, helm upgrade, helm template, and helm lint. A misspelled or unknown top-level key, such as ingres, fails instead of being ignored.

Fixed settings

The chart sets these values and does not expose them:

  • One replica with the Recreate update strategy.
  • DSH_HOST set to the pod IP. The image serves dsh on 127.0.0.1 and relays the pod IP to it, because dsh rejects wildcard bind addresses. kubectl port-forward reaches dsh directly on loopback.
  • DSH_PORT set to 3080.
  • fsGroup: 1000, so the node user in the image can write to the volume.
  • fsGroupChangePolicy: OnRootMismatch. dsh exits when .credentials.yaml is readable by its group, and a recursive fsGroup change on each mount would make it so.
  • TCP readiness and liveness probes on port 3080. The liveness probe starts after 30 seconds.

Outbound data

The chart adds no analytics of its own, but dsh can send a Session log out two ways. Both default to dsh's own default, on, so an upgrade does not change what an existing deployment sends:

  • telemetry.enabled — the OpenTelemetry export. Capture is feedback-only: dsh uploads the Session log to https://dsh-otel-collector.deepseeksvc.com/v1/logs after someone records feedback (a rating or a note) in the UI, for every model provider. false sets DSH_TELEMETRY_DISABLED=1 on the container. dsh reads any non-empty value as an opt-out, including 0 and false, and constructs no exporter, so feedback stays in the volume.
  • telemetry.sessionLog — the dsh_session_log request field. dsh attaches the canonical Session log, the whole conversation, to requests it sends through the official DeepSeek API. Requests to other providers, including an in-cluster gateway or a vendor added through plugins, never carry it. false mounts a ConfigMap and passes --patch, which dsh applies after the profile layer: the Web UI's "Upload Session Log when using the official model API" switch can then no longer re-enable the upload, and the setting comes back after an in-place upgrade of an existing volume.
helm upgrade dsh helm/dsh --reuse-values \
  --set telemetry.enabled=false --set telemetry.sessionLog=false

Neither switch covers model traffic: prompts and responses still go to whichever provider you configure, so the provider's own retention applies. The anonymous installation id in /data/.dsh/.anonymous-user-id continues to correlate feedback, telemetry, and official DeepSeek requests, and deleting that file mints a new one at the next start. If you must enforce this at the network layer instead, restrict egress in networkPolicy.egress.extra; the default policy allows the internet so that model APIs work.

Volume layout

PathContent
/data/.dshDSH_HOME. Settings, profiles, sessions, and .credentials.yaml.
/data/workspaceWorking directory of the dsh process.

Deploy dsh with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dsh 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 chartdsh is pinned at v0.10.0 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