From 7ff2e6409441b72bc84fd44f84a10173f555ecb5 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Fri, 7 Nov 2025 11:56:52 +0100 Subject: [PATCH] ollama and web-ui in one pod --- README.md | 5 +++++ ollama-open-webui.yaml | 3 --- ollama.yaml | 49 ------------------------------------------ open-webui.yaml | 28 ------------------------ 4 files changed, 5 insertions(+), 80 deletions(-) delete mode 100644 ollama.yaml delete mode 100644 open-webui.yaml diff --git a/README.md b/README.md index 7ced3cf..529e64c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ # podman podman playground yamls + + +# Ollama and open-webui pod + +`podman kube play ollama-open-webui.yaml ` diff --git a/ollama-open-webui.yaml b/ollama-open-webui.yaml index 4b0dd3b..d5a00a8 100644 --- a/ollama-open-webui.yaml +++ b/ollama-open-webui.yaml @@ -21,7 +21,6 @@ spec: value: "10.3.0" ports: - containerPort: 11434 - hostPort: 11434 volumeMounts: - name: ollama-data-pvc mountPath: /root/.ollama @@ -39,7 +38,6 @@ spec: image: ghcr.io/open-webui/open-webui:main ports: - containerPort: 8080 - hostPort: 3000 volumeMounts: - name: open-webui-pvc mountPath: /app/backend/data @@ -66,4 +64,3 @@ spec: hostPath: path: /dev/kfd type: CharDevice -b \ No newline at end of file diff --git a/ollama.yaml b/ollama.yaml deleted file mode 100644 index d3f3dca..0000000 --- a/ollama.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# podman run -d --replace --name ollama \ -# --device /dev/kfd --device /dev/dri \ -# --group-add keep-groups -e HSA_OVERRIDE_GFX_VERSION="10.3.0" \ -# -v ollama-data:/root/.ollama -p 11434:11434 ollama/ollama:0.12.3-rocm - -# RODO: GPU issues: https://github.com/ollama/ollama/issues/12893 ---- -apiVersion: v1 -kind: Pod -metadata: - annotations: - run.oci.keep_original_groups: "1" - cdi.k8s.io/DeviceName.0: "podman.io/device=/dev/kfd" - cdi.k8s.io/DeviceName.1: "podman.io/device=/dev/dri" - labels: - app: ollama - name: ollama -spec: - containers: - - args: - - serve - env: - - name: HSA_OVERRIDE_GFX_VERSION - value: 10.3.0 - image: docker.io/ollama/ollama:0.12.3-rocm - name: ollama - ports: - - containerPort: 11434 - hostPort: 11434 - volumeMounts: - - mountPath: /root/.ollama - name: ollama-data-pvc - - name: dev-dri - mountPath: /dev/dri - - name: dev-kfd - mountPath: /dev/kfd - volumes: - - name: ollama-data-pvc - persistentVolumeClaim: - claimName: ollama-data - - name: dev-dri - hostPath: - path: /dev/dri - type: Directory - - name: dev-kfd - hostPath: - path: /dev/kfd - type: CharDevice - diff --git a/open-webui.yaml b/open-webui.yaml deleted file mode 100644 index 62a1a2b..0000000 --- a/open-webui.yaml +++ /dev/null @@ -1,28 +0,0 @@ -# podman run -d --replace --network=slirp4netns:allow_host_loopback=true \ -# --name=open-webui -p 3000:8080 -v open-webui:/app/backend/data \ -# ghcr.io/open-webui/open-webui:main - ---- -apiVersion: v1 -kind: Pod -metadata: - creationTimestamp: "2025-11-06T17:34:58Z" - labels: - app: open-webui - name: open-webui -spec: - containers: - - image: ghcr.io/open-webui/open-webui:main - name: open-webui - ports: - - containerPort: 8080 - hostPort: 3000 - securityContext: {} - volumeMounts: - - mountPath: /app/backend/data - name: open-webui-pvc - volumes: - - name: open-webui-pvc - persistentVolumeClaim: - claimName: open-webui -