comfyui

by m11s

Helm chartv0.14.3App 0.43.0-cudaVerified publisher

Deploy ComfyUI, a node-based visual AI engine for image and video generation on GPU nodes

About this chart

comfyui Helm Chart

ComfyUI is a modular, node-based visual AI engine — image, video, audio, and 3D generation, not just Stable Diffusion. Upstream publishes no official container image, so this chart deploys m11s/comfyui, built from ComfyUI source with CUDA or ROCm dependencies.

This chart targets a single GPU-bound replica per release and uses the Recreate update strategy by default, which is suited to nodes with one GPU.

The default image is generic CUDA ComfyUI, without bundled community plugins. Select extensions through customNodes; GGUF users upgrading from earlier chart versions must explicitly configure ComfyUI-GGUF as shown below.

Optional Comfy MCP HTTP service

Set comfyMcp.enabled=true to add an MCP sidecar to the ComfyUI Pod. It exposes Streamable HTTP at /mcp, connects directly to the colocated ComfyUI, and does not request another GPU. Set comfyMcp.httpRoute.enabled=true to expose that endpoint through a Gateway API HTTPRoute.

Installation

helm repo add m11s https://m11s-io.github.io/helm-charts
helm repo update
helm install comfyui m11s/comfyui -n comfyui --create-namespace \
  --set runtimeClassName=nvidia \
  --set-string nodeSelector."workload\.example\.io/comfyui"=true \
  --set resources.limits."nvidia\.com/gpu"=1 \
  --set resources.requests."nvidia\.com/gpu"=1

GPU scheduling (runtimeClassName, nodeSelector, tolerations, resources) is left empty by default since it's cluster-specific — set it to match how your cluster labels and isolates GPU nodes.

Configuration

ParameterDescriptionDefault
hostUsersSet spec.hostUsers for user namespaces (requires a userns-capable cluster/runtime; stable in Kubernetes 1.37)null
image.repositoryContainer image repositorym11s/comfyui
image.tagTag or tag-and-digest override; empty uses chart appVersionPinned generic CUDA image
image.digestImage digest override; takes precedence over the tag""
customNodes.enabledInstall pinned plugins before startupfalse
customNodes.repositoriesPlugin names, HTTPS repositories, commit revisions, optional requirements and expected node classes[]
customNodes.resourcesInstaller CPU/memory requests and limitsSee values.yaml
customNodes.environmentInstaller package-index/proxy settings{}
customNodes.envFromInstaller environment from existing Secrets or ConfigMaps[]
replicaCountNumber of pod replicas1
strategyDeployment update strategy{type: Recreate}
service.typeKubernetes Service typeClusterIP
service.portPort the Service listens on8188
runtimeClassNamePod RuntimeClass; set to nvidia on clusters where GPU access requires it""
resourcesCPU/memory/GPU requests and limits (e.g. nvidia.com/gpu: "1"){}
persistence.enabledCreate (or reuse) a PVC for the models directoryfalse
persistence.existingClaimReuse an existing PVC instead of creating one""
persistence.storageClassNameStorageClass for the created PVC; null uses cluster default, "" disables dynamic provisioningnull
persistence.accessModesPVC access modes[ReadWriteOnce]
persistence.sizePVC storage request200Gi
persistence.mountPathWhere the models volume is mounted/app/models
outputPersistence.*Optional PVC for generated images; supports enabled, existingClaim, storageClassName, accessModes, size, and mountPathdisabled; /app/output
userPersistence.*Optional PVC for user settings and workflows; supports the same fieldsdisabled; /app/user
inputPersistence.*Optional PVC for uploaded workflow inputs; supports the same fieldsdisabled; /app/input
tempPersistence.*Optional PVC for intermediate execution files and previews; supports the same fieldsdisabled; /app/temp
modelDownload.enabledCreate a Job to download models into the persistent PVCfalse
modelDownload.imageOptional downloader image; empty uses the ComfyUI workload image""
modelDownload.huggingFaceToken.existingSecretOptional existing Secret with an HF read token""
modelDownload.huggingFaceToken.keyKey in that Secret containing the tokentoken
modelDownload.backoffLimitMaximum downloader Job retries3
modelDownload.modelsModel entries with relative destination, HF repo/file/revision, and SHA-256 hash[]
modelDownload.pruneAfter successful downloads, remove model files not listed in modelsfalse
modelDownload.resourcesCPU and memory requests/limits for the downloader Job{requests: ..., limits: ...}
modelDownload.ttlSecondsAfterFinishedOptional TTL for completed Jobsnull
httpRoute.enabledEnable a Gateway API HTTPRoutefalse
httpRoute.parentRefsGateways the HTTPRoute attaches to; required when enabled[]
httpRoute.hostnamesHostnames the HTTPRoute matches[]
nodeSelectorNode labels to constrain scheduling{}
tolerationsTolerations, e.g. for a GPU node taint[]

Persistence

persistence retains models, LoRAs, and checkpoints at /app/models. Four independent optional stores can retain ComfyUI runtime data: outputPersistence for generated images, userPersistence for settings and workflows, inputPersistence for uploaded files, and tempPersistence for intermediate files and previews. All are disabled by default, so only configured paths receive a PVC; input and temp normally stay ephemeral.

persistence:
  enabled: true
  storageClassName: local-path
  size: 200Gi

# For an S3/MinIO CSI-backed claim, reuse the claim rather than create one.
outputPersistence:
  enabled: true
  existingClaim: comfyui-output-s3

userPersistence:
  enabled: true
  storageClassName: local-path
  size: 5Gi

Downloading models into the PVC

modelDownload creates a one-shot Kubernetes Job that uses the official hf download CLI to fetch model files into the persistent models PVC. Each destination is relative to persistence.mountPath. Pin every revision to the source repository's 40-character commit SHA and provide its SHA-256 hash.

modelDownload.prune is disabled by default. When enabled, the Job removes undeclared model files within the categories listed in modelDownload.models, after all configured downloads complete successfully.

For private or gated repositories, or to use Hugging Face's authenticated rate limit, create a fine-grained read token in a Kubernetes Secret outside Helm and configure its name and key.

modelDownload:
  huggingFaceToken:
    existingSecret: comfyui-hf-token
    key: token
persistence:
  enabled: true

modelDownload:
  enabled: true
  prune: true
  models:
    - destination: diffusion_models/example.safetensors
      repo: example-org/example-model
      revision: 0123456789abcdef0123456789abcdef01234567
      file: split_files/diffusion_models/example.safetensors
      sha256: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef

Hugging Face proxy downloads

modelDownload.environment configures the download Job independently of the ComfyUI container's environment setting. Values must be strings:

modelDownload:
  environment:
    HF_ENDPOINT: https://nexus.example.com/repository/huggingface-proxy
    HF_HUB_DISABLE_XET: "1"
    HF_HUB_DOWNLOAD_TIMEOUT: "300"
    HF_HUB_ETAG_TIMEOUT: "1800"

Keep credentials in modelDownload.huggingFaceToken, not environment. When using an authenticated Nexus endpoint, that Secret must contain a Nexus-issued token, not an upstream Hugging Face token. Model revisions and SHA-256 checks are unchanged. Changing Job environment, image or token Secret reference creates a new Job name. Rotating the contents of the same Secret does not create a Job.

Probes

ComfyUI can take several minutes to load models. The default probes allow for that cold start before liveness checks begin.

Example: GPU node with dedicated model storage

runtimeClassName: nvidia

nodeSelector:
  workload.example.io/comfyui: "true"

tolerations:
  - key: nvidia.com/gpu
    operator: Equal
    value: "true"
    effect: NoSchedule

resources:
  requests:
    cpu: "2"
    memory: 6Gi
    nvidia.com/gpu: "1"
  limits:
    memory: 10Gi
    nvidia.com/gpu: "1"

persistence:
  enabled: true
  storageClassName: local-path
  size: 200Gi

Custom nodes

The chart can install pinned custom-node repositories before ComfyUI starts:

customNodes:
  enabled: true
  repositories:
    - name: ComfyUI-GGUF
      repository: https://github.com/city96/ComfyUI-GGUF.git
      revision: 6ea2651e7df66d7585f6ffee804b20e92fb38b8a
      requirements: requirements.txt
      expectedNodes: [UnetLoaderGGUF, CLIPLoaderGGUF]

Repository names must be unique safe directory names and revisions full Git commit hashes. Omit requirements for plugins requiring no additional packages. A same-image, non-root init container fetches repositories and installs declared requirements together into a shared virtual environment. Existing image package versions and locations are protected; incompatible requirements stop startup. Plugins needing additional OS libraries require an image containing them.

Repositories and the environment use an emptyDir: they are rebuilt for every new Pod, so startup requires access to Git and package indexes. Container retries clear the previous partial installation. No plugin PVC or Manager is needed. The image must provide /app/main.py, /app/custom_nodes, and /opt/venv/bin/python. Bundled nodes remain available; installing a repository already present under the same directory name is rejected. Do not combine a GGUF image with declared GGUF.

customNodes.environment configures installer-only proxy/package-index settings; customNodes.envFrom accepts existing Secret references for credentials. Do not put credentials in repository URLs or plaintext values. Plugin requirements and normal prestartup/import code are executable third-party code. The installer does not separately invoke install.py or initialize submodules. Source commits are pinned; transitive dependency resolution is not a complete lockfile.

When expectedNodes is supplied, readiness requires all listed class names in /object_info. The default HTTP startup/liveness checks remain unchanged. The readiness action is replaced while its configured timing is retained; custom readiness actions must be removed before enabling expectedNodes. Changing repository configuration or installer code triggers a Pod rollout.

Use customNodes.resources for installer CPU/memory limits. No GPU is requested by the installer. Removing a repository and replacing the Pod removes its files and dependencies automatically. Helm rollback reconstructs the previous values.

AMD ROCm

Use ci/rocm-values.yaml as a starting point. It selects an explicitly pinned, published ROCm image, requests amd.com/gpu, and leaves runtimeClassName empty. Adapt its node selector and toleration to your cluster. Download the example locally, then install it as a separate release:

helm upgrade --install comfyui-amd m11s/comfyui \
  --namespace comfyui-amd --create-namespace \
  -f rocm-values.yaml

The same customNodes configuration works with either backend, including GGUF; there is no separate GGUF image variant. image.digest takes precedence over image.tag for both inference and model downloads. Update the digest when selecting another image; clear it to deliberately use a tag without a digest.

Do not carry over NVIDIA runtime classes or GPU requests. The pod remains non-root; set podSecurityContext.supplementalGroups only if the target AMD device ownership requires extra groups, using the observed group IDs. Use independent models, output, and user PVCs when running alongside NVIDIA. The model-download Job follows the release's image and node placement and requests CPU/memory without reserving a GPU.

Image publication validates packaging and CPU startup, not target AMD GPU inference. Verify device access and a representative workflow on that hardware.

Source

Image tags follow the upstream ComfyUI version, with -cuda for the default backend. The optional MCP sidecar follows the upstream Comfy MCP version. The main image follows appVersion; the MCP sidecar tracks rebuilds through digest updates.

Deploy comfyui with OpenTenant

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