stable-diffusion-k8s

Stable Diffusion on Kubernetes with Helm

Run Stable Diffusion with companion models on a GPU-enabled Kubernetes Cluster - complete with a WebUI and automatic model fetching for a 2 step install that takes less than 2 minutes (excluding download times).

If you are on a restricted internet connection and want to save bandwidth, you can also manually build the dockerfile and push it to a local container registry.

Uses the nvidia/cuda image as a base.

Features

Prerequisites

Setup

Wait for the containers to come up and follow the instructions returned by Helm to connect. This may take a while as it has to download a ~10GiB docker image and ~5Gib of models

Config

By extending your values.yaml you can change the cliArgs key, which contains the arguments that will be passed to the WebUI. By default: --extra-models-cpu --optimized-turbo are given, which allow you to use this model on a 6GB GPU. However, some features might not be available in the mode.

You can find the full list of arguments here

FAQ

Disclaimer

The author(s) of this project are not responsible for any content generated using this interface.

Thanks

Special thanks to everyone behind these awesome projects, without them, none of this would have been possible: