draw-things
by obeone
Draw Things gRPC server — the official CLI image that exposes a gRPC API for Stable Diffusion image generation, intended to be paired with the macOS/iOS Draw Things app for remote inference on a beefier GPU than your phone. This chart packages it with the bjw-s common library so behaviour is driven almost entirely from values.yaml.
About this chart
draw-things
Draw Things gRPC server — the official CLI image that exposes a gRPC API for Stable Diffusion image generation, intended to be paired with the macOS/iOS Draw Things app for remote inference on a beefier GPU than your phone. This chart packages it with the bjw-s common library so behaviour is driven almost entirely from values.yaml.
TL;DR
helm repo add obeone https://charts.obeone.cloud
helm repo update
helm install draw-things obeone/draw-things
About
Draw Things is an image-generation app for Apple devices (macOS, iOS, iPadOS). This chart deploys its gRPC server, the official offload backend: the app connects to it and delegates the heavy diffusion work to a machine with a proper GPU, so your laptop or phone stays cool while the cluster does the sweating.
- Application: drawthings.ai
- Container image:
drawthingsai/draw-things-grpc-server-cli - Chart source:
charts/draw-things
Prerequisites
- Helm 3
- A Kubernetes cluster matching the chart's
kubeVersionconstraint (seeChart.yaml) - A GPU node is strongly recommended: CPU-only generation works but is painfully slow
Configuration
This chart is built on the bjw-s-labs common library.
Most configuration keys (controllers, service, ingress, persistence,
...) follow its schema; see the common library documentation
for everything it supports beyond what is spelled out in values.yaml.
Defaults are meant to work out of the box on any cluster. The full list of
options lives in values.yaml, is validated by
values.schema.json at install time, and is documented
in the Values section below. Override it with your own values file:
helm install draw-things obeone/draw-things -f my-values.yaml
Upgrading
helm repo update
helm upgrade draw-things obeone/draw-things
Each release lists its changes in the Artifact Hub changelog; give it a look before jumping across several chart versions.
Uninstalling
helm uninstall draw-things
PersistentVolumeClaims created by the chart are kept around: delete them manually if you also want the data gone.
Requirements
Kubernetes: >=1.31.0-0
| Repository | Name | Version |
|---|---|---|
| https://bjw-s-labs.github.io/helm-charts | common | 5.1.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| controllers.main.containers.main.args[0] | string | "/grpc-models" | |
| controllers.main.containers.main.command[0] | string | "gRPCServerCLI" | |
| controllers.main.containers.main.image.pullPolicy | string | "IfNotPresent" | |
| controllers.main.containers.main.image.repository | string | "drawthingsai/draw-things-grpc-server-cli" | |
| controllers.main.containers.main.image.tag | string | "{{ .Chart.AppVersion }}" | |
| controllers.main.containers.main.resources.limits."nvidia.com/gpu" | int | 1 | |
| controllers.main.containers.main.resources.requests."nvidia.com/gpu" | int | 1 | |
| controllers.main.replicas | int | 1 | |
| controllers.main.strategy | string | "Recreate" | |
| defaultPodOptions | object | {} | |
| ingress.main.annotations | object | {} | |
| ingress.main.className | string | "" | |
| ingress.main.enabled | bool | false | |
| ingress.main.hosts[0].host | string | "draw-things.local" | |
| ingress.main.hosts[0].paths[0].path | string | "/" | |
| ingress.main.hosts[0].paths[0].pathType | string | "Prefix" | |
| ingress.main.hosts[0].paths[0].service.identifier | string | "main" | |
| ingress.main.hosts[0].paths[0].service.port | string | "grpc" | |
| ingress.main.tls[0].hosts[0] | string | "draw-things.local" | |
| ingress.main.tls[0].secretName | string | "draw-things-tls" | |
| persistence.models.accessMode | string | "ReadWriteOnce" | |
| persistence.models.enabled | bool | true | |
| persistence.models.globalMounts[0].path | string | "/grpc-models" | |
| persistence.models.size | string | "50Gi" | |
| persistence.models.type | string | "persistentVolumeClaim" | |
| route | object | {"main":{"enabled":false,"hostnames":["draw-things.local"],"kind":"HTTPRoute","parentRefs":[{"name":"gateway","namespace":"gateway-system"}],"rules":[{"backendRefs":[{"identifier":"main"}],"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]}} | Gateway API HTTPRoute, mirroring the Ingress above. Disabled by default: pick either Ingress or HTTPRoute, not both. Requires the Gateway API CRDs and an existing Gateway in the cluster. Same gRPC (h2c) caveat as the Ingress applies. |
| route.main.enabled | bool | false | Enable the HTTPRoute. Mutually exclusive with ingress.main.enabled. |
| route.main.hostnames | list | ["draw-things.local"] | Hostnames served by this route. |
| route.main.kind | string | "HTTPRoute" | Route kind. HTTPRoute, GRPCRoute, TCPRoute, TLSRoute or UDPRoute. |
| route.main.parentRefs | list | [{"name":"gateway","namespace":"gateway-system"}] | Gateways this route attaches to. |
| route.main.rules | list | [{"backendRefs":[{"identifier":"main"}],"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}] | Routing rules. identifier refers to a Service defined above. |
| service.main.controller | string | "main" | |
| service.main.ports.grpc.port | int | 7859 | |
| service.main.ports.grpc.protocol | string | "TCP" | |
| service.main.ports.grpc.targetPort | int | 7859 | |
| service.main.type | string | "ClusterIP" |
Verifying the chart signature
Charts in this repository are signed with GPG and every release ships a
provenance file. The public key is available at
charts.obeone.cloud/public_key.gpg,
fingerprint B9FE852F28888D27F8C9A11CD33E04CD22E335CE.
# Import the signing key into a legacy keyring (helm verifies with GnuPG v1 keyrings)
curl -fsSL https://charts.obeone.cloud/public_key.gpg | gpg --import
gpg --export > ~/.gnupg/pubring.gpg
# Pull the chart and check it against its provenance file
helm pull --verify obeone/draw-things
Support
This is a personal chart repository, maintained on a best-effort basis. Bug reports and contributions are welcome on GitHub.
Autogenerated from chart metadata using helm-docs v1.14.2
Deploy draw-things with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has draw-things 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdraw-things is pinned at v0.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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