You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Podman supports Kubernetes like-syntax for deploying resources such as pods, volumes without having the overhead of a full Kubernetes cluster. [More about Kube Play](https://docs.podman.io/en/latest/markdown/podman-kube-play.1.html).
4
+
5
+
If you don't have Podman installed, check out [Podman's official website](https://podman.io/docs/installation).
6
+
7
+
## Example `play.yaml`
8
+
9
+
Here is an example of a Podman Kube Play file to deploy:
10
+
11
+
```yaml
12
+
apiVersion: v1
13
+
kind: Pod
14
+
metadata:
15
+
name: open-webui
16
+
spec:
17
+
containers:
18
+
- name: container
19
+
image: ghcr.io/open-webui/open-webui:main
20
+
ports:
21
+
- name: http
22
+
containerPort: 8080
23
+
hostPort: 3000
24
+
volumeMounts:
25
+
- mountPath: /app/backend/data
26
+
name: data
27
+
volumes:
28
+
- name: data
29
+
persistentVolumeClaim:
30
+
claimName: open-webui-pvc
31
+
---
32
+
apiVersion: v1
33
+
kind: PersistentVolumeClaim
34
+
metadata:
35
+
name: open-webui-pvc
36
+
spec:
37
+
accessModes:
38
+
- ReadWriteOnce
39
+
resources:
40
+
requests:
41
+
storage: 5Gi
42
+
```
43
+
44
+
## Starting
45
+
46
+
To start your pod, run the following command:
47
+
48
+
```bash
49
+
podman kube play ./play.yaml
50
+
```
51
+
52
+
## Using GPU Support
53
+
54
+
For Nvidia GPU support, you need to replace the container image with `ghcr.io/open-webui/open-webui:cuda` and need to specify the device (GPU) required in the pod resources limits as followed:
55
+
56
+
```yaml
57
+
[...]
58
+
resources:
59
+
limits:
60
+
nvidia.com/gpu=all: 1
61
+
[...]
62
+
```
63
+
64
+
:::important
65
+
66
+
To successfully have the open-webui container access the GPU(s),
67
+
you will need to have the Container Device Interface (CDI) for the GPU you wish to access installed in your Podman Machine. You can check [Podman GPU container access](https://podman-desktop.io/docs/podman/gpu).
0 commit comments