draw-things

by obeone

Helm chartv0.2.2App latestVerified publisher

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.

Prerequisites

  • Helm 3
  • A Kubernetes cluster matching the chart's kubeVersion constraint (see Chart.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

RepositoryNameVersion
https://bjw-s-labs.github.io/helm-chartscommon5.1.0

Values

KeyTypeDefaultDescription
controllers.main.containers.main.args[0]string"/grpc-models"
controllers.main.containers.main.command[0]string"gRPCServerCLI"
controllers.main.containers.main.image.pullPolicystring"IfNotPresent"
controllers.main.containers.main.image.repositorystring"drawthingsai/draw-things-grpc-server-cli"
controllers.main.containers.main.image.tagstring"{{ .Chart.AppVersion }}"
controllers.main.containers.main.resources.limits."nvidia.com/gpu"int1
controllers.main.containers.main.resources.requests."nvidia.com/gpu"int1
controllers.main.replicasint1
controllers.main.strategystring"Recreate"
defaultPodOptionsobject{}
ingress.main.annotationsobject{}
ingress.main.classNamestring""
ingress.main.enabledboolfalse
ingress.main.hosts[0].hoststring"draw-things.local"
ingress.main.hosts[0].paths[0].pathstring"/"
ingress.main.hosts[0].paths[0].pathTypestring"Prefix"
ingress.main.hosts[0].paths[0].service.identifierstring"main"
ingress.main.hosts[0].paths[0].service.portstring"grpc"
ingress.main.tls[0].hosts[0]string"draw-things.local"
ingress.main.tls[0].secretNamestring"draw-things-tls"
persistence.models.accessModestring"ReadWriteOnce"
persistence.models.enabledbooltrue
persistence.models.globalMounts[0].pathstring"/grpc-models"
persistence.models.sizestring"50Gi"
persistence.models.typestring"persistentVolumeClaim"
routeobject{"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.enabledboolfalseEnable the HTTPRoute. Mutually exclusive with ingress.main.enabled.
route.main.hostnameslist["draw-things.local"]Hostnames served by this route.
route.main.kindstring"HTTPRoute"Route kind. HTTPRoute, GRPCRoute, TCPRoute, TLSRoute or UDPRoute.
route.main.parentRefslist[{"name":"gateway","namespace":"gateway-system"}]Gateways this route attaches to.
route.main.ruleslist[{"backendRefs":[{"identifier":"main"}],"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]Routing rules. identifier refers to a Service defined above.
service.main.controllerstring"main"
service.main.ports.grpc.portint7859
service.main.ports.grpc.protocolstring"TCP"
service.main.ports.grpc.targetPortint7859
service.main.typestring"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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdraw-things is pinned at v0.2.2 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