Skip to content

Commit

Permalink
chart gpu-driver readme and test manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmilos77 committed Feb 13, 2025
1 parent 87c51d8 commit d70c5a6
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 211 deletions.
24 changes: 18 additions & 6 deletions charts/gpu-driver/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
# GPU Driver Helm chart

## Installation

Helm repo is not yet established. Clone the repository and `cd charts/gpu-driver`.
## Usage

[Helm](https://helm.sh) must be installed to use the charts. Please refer to
Helm's [documentation](https://helm.sh/docs) to get started.

Once Helm has been set up correctly, add the repo as follows:

```shell
kubectl create ns gpu-driver
helm upgrade --install -n gpu-driver gpu-driver .
helm repo add kyma-gpu-driver https://kyma-project.github.io/gpu-driver
```

## Uninstallation
If you had already added this repo earlier, run `helm repo update` to retrieve
the latest versions of the packages. You can then run
`helm search repo kyma-gpu-driver` to see the charts.

To install the `gpu-driver` chart:

```shell
helm uninstall -n gpu-driver gpu-driver
helm install my-gpu-driver kyma-gpu-driver/gpu-driver
```

To uninstall the chart:

```shell
helm uninstall my-gpu-driver
```
58 changes: 0 additions & 58 deletions resources/charts/scripts/files/Dockerfile

This file was deleted.

40 changes: 0 additions & 40 deletions resources/manifests/01-gardenlinux-compile.yaml

This file was deleted.

70 changes: 0 additions & 70 deletions resources/manifests/pod.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions resources/manifests/storage.yaml

This file was deleted.

37 changes: 9 additions & 28 deletions resources/test/manifest.yaml → resources/test/gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,51 +29,32 @@ spec:
apiVersion: v1
kind: Pod
metadata:
name: image-generator-5
name: image-generator
spec:
containers:
- name: image-generator
image: ghcr.io/pbochynski/diffusers-k8s:0.0.5
command:
- "python3"
- "generate_image.py"
- "--device=cuda"
- "/bin/bash"
- "-c"
- "--"
args:
- 'python3 generate_image.py --device=cuda && echo "Image geenrated" && echo "Done" && sleep infinity'
ports:
- containerPort: 8000
volumeMounts:
- name: storage
mountPath: /root/.cache/huggingface
subPath: r005/model-cache
subPath: model-cache
- name: storage
mountPath: /app/output
subPath: output
- name: storage
mountPath: /mnt/storage
resources:
limits:
nvidia.com/gpu: "1" # Ensure GPU is requested
volumes:
- name: storage
persistentVolumeClaim:
claimName: model-cache-pvc
---
apiVersion: v1
kind: Pod
metadata:
name: image-viewer
spec:
containers:
- name: image-generator
image: ghcr.io/pbochynski/diffusers-k8s:0.0.5
command:
- "python3"
- "-m"
- "http.server"
- "8000"
ports:
- containerPort: 8000
volumeMounts:
- name: storage
mountPath: /app/storage
volumes:
- name: storage
persistentVolumeClaim:
claimName: model-cache-pvc

0 comments on commit d70c5a6

Please sign in to comment.