Merge pull request #614 from axel7083/docs/quick-start/podman-kube-play

docs(quick-start): adding instructions for Podman Kube Play
This commit is contained in:
Tim Jaeryang Baek
2025-07-14 23:07:32 +04:00
committed by GitHub
2 changed files with 76 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import { TopBanners } from "@site/src/components/TopBanners";
import DockerCompose from './tab-docker/DockerCompose.md';
import Podman from './tab-docker/Podman.md';
import PodmanKubePlay from './tab-docker/PodmanKubePlay.md';
import ManualDocker from './tab-docker/ManualDocker.md';
import DockerSwarm from './tab-docker/DockerSwarm.md';
import DockerUpdating from './tab-docker/DockerUpdating.md';
@@ -59,6 +60,12 @@ Choose your preferred installation method below:
</div>
</TabItem>
<TabItem value="podman-kube-play" label="Podman Kube Play">
<div className='mt-5'>
<PodmanKubePlay />
</div>
</TabItem>
<TabItem value="swarm" label="Docker Swarm">
<div className='mt-5'>
<DockerSwarm />

View File

@@ -0,0 +1,69 @@
# Podman Kube Play Setup
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).
If you don't have Podman installed, check out [Podman's official website](https://podman.io/docs/installation).
## Example `play.yaml`
Here is an example of a Podman Kube Play file to deploy:
```yaml
apiVersion: v1
kind: Pod
metadata:
name: open-webui
spec:
containers:
- name: container
image: ghcr.io/open-webui/open-webui:main
ports:
- name: http
containerPort: 8080
hostPort: 3000
volumeMounts:
- mountPath: /app/backend/data
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: open-webui-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: open-webui-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
```
## Starting
To start your pod, run the following command:
```bash
podman kube play ./play.yaml
```
## Using GPU Support
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:
```yaml
[...]
resources:
limits:
nvidia.com/gpu=all: 1
[...]
```
:::important
To successfully have the open-webui container access the GPU(s),
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).
:::