I configured a new Open WebUI instance on my K8S node and i noticed some points.
Changed
Old naming of the Open WebUI PVC
Added
Sometimes the ENV allocated in the webui-deployment.yaml was overwritten by the OLLAMA_BASE_URL check in backend/config.py and allocated http://host.docker.internal:11434 which wont work on K8S. Added a check to set the right base URL http://ollama-service.open-webui.svc.cluster.local:11434 when running on K8S
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/1299
**Author:** [@jannikstdl](https://github.com/jannikstdl)
**Created:** 3/25/2024
**Status:** ✅ Merged
**Merged:** 3/26/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `k8s-pvc-naming-fix`
---
### 📝 Commits (6)
- [`1d64d31`](https://github.com/open-webui/open-webui/commit/1d64d31275c1c81b5c82ab5a3dcef4afd872d0e2) Updated PVC naming
- [`c91c954`](https://github.com/open-webui/open-webui/commit/c91c95431d0741b69a10d332067f5d9459818fa3) Changed allocation in webui-deployment.yaml
- [`8962d94`](https://github.com/open-webui/open-webui/commit/8962d948cd5fb77dbf0d899fca277055ad832d33) Check if running on K8s to correctly allocate Ollama Base URL
- [`eecc7f3`](https://github.com/open-webui/open-webui/commit/eecc7f3529163dff30aeaa04609323bddedfbe2c) Deleted unused checks
- [`af366cf`](https://github.com/open-webui/open-webui/commit/af366cf7320e72022360ad090b18db80cfbb6d0a) fix
- [`7f405c7`](https://github.com/open-webui/open-webui/commit/7f405c74cd92ad04cc3b069767c6d7680817ffce) refac: rename
### 📊 Changes
**3 files changed** (+7 additions, -5 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/config.py` (+4 -2)
📝 `kubernetes/manifest/base/webui-deployment.yaml` (+1 -1)
📝 `kubernetes/manifest/base/webui-pvc.yaml` (+2 -2)
</details>
### 📄 Description
I configured a new Open WebUI instance on my K8S node and i noticed some points.
**Changed**
- Old naming of the Open WebUI PVC
**Added**
- Sometimes the ENV allocated in the webui-deployment.yaml was overwritten by the `OLLAMA_BASE_URL `check in `backend/config.py` and allocated `http://host.docker.internal:11434` which wont work on K8S. Added a check to set the right base URL `http://ollama-service.open-webui.svc.cluster.local:11434` when running on K8S
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1299
Author: @jannikstdl
Created: 3/25/2024
Status: ✅ Merged
Merged: 3/26/2024
Merged by: @tjbck
Base:
dev← Head:k8s-pvc-naming-fix📝 Commits (6)
1d64d31Updated PVC namingc91c954Changed allocation in webui-deployment.yaml8962d94Check if running on K8s to correctly allocate Ollama Base URLeecc7f3Deleted unused checksaf366cffix7f405c7refac: rename📊 Changes
3 files changed (+7 additions, -5 deletions)
View changed files
📝
backend/config.py(+4 -2)📝
kubernetes/manifest/base/webui-deployment.yaml(+1 -1)📝
kubernetes/manifest/base/webui-pvc.yaml(+2 -2)📄 Description
I configured a new Open WebUI instance on my K8S node and i noticed some points.
Changed
Added
OLLAMA_BASE_URLcheck inbackend/config.pyand allocatedhttp://host.docker.internal:11434which wont work on K8S. Added a check to set the right base URLhttp://ollama-service.open-webui.svc.cluster.local:11434when running on K8S🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.