Skip to content

Commit

Permalink
Add Screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
amithkk committed Sep 1, 2022
1 parent 917274d commit 4bf7672
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Run Stable Diffusion with companion models on a GPU-enabled Kubernetes Cluster - complete with a [WebUI](https://github.com/hlky/stable-diffusion-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](./docker/stable-diffusion-serving.Dockerfile) and push it to a local container registry.

Uses the `nvidia/cuda` image as a base.

![Screenshot of the Stable Diffusion UI](img/screenshot.png)

### Features

- Automatic Model Fetching
Expand All @@ -23,11 +23,12 @@ Uses the `nvidia/cuda` image as a base.
## Setup

- Add the helm repo with `helm repo add amithkk-sd https://amithkk.github.io/stable-diffusion-k8s`
- Fetch latest charts with `helm repo update`
- (Optional) Create your own [`values.yaml`](./charts/stable-diffusion/values.yaml) with customized settings
- Some things that you might want to change could include the `nodeAffinity`, `cliArgs` (see below) and `ingress` settings (that will allow you to access this externally without needing to `kubectl port-forward`)
- Install with `helm install amithkk-sd/stable-diffusion -f <your-values.yaml>`
- Install with `helm install --generate-name amithkk-sd/stable-diffusion -f <your-values.yaml>`

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
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 ~5GiB docker image and ~5GiB of models

## Config

Expand Down
2 changes: 1 addition & 1 deletion charts/stable-diffusion/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: "1.0.4"
version: "1.0.5"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 1 addition & 8 deletions charts/stable-diffusion/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ spec:
volumeMounts:
- mountPath: /models
name: {{ include "stable-diffusion.fullname" . }}-model-store
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
# Todo - Implement an efficient readiness and liveness check
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
Binary file added img/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4bf7672

Please sign in to comment.