Originally created by @waterloo2018 on GitHub (Apr 25, 2024).
Open WebUI: Server Connection Error
Open WebUI: Server Connection Error in the kubernetes cluster environment. Bug Summary:
Open WebUI: Server Connection Error in the kubernetes cluster environment.
Steps to Reproduce: kubernetes/manifest/base/webui-deployment.yaml
apiVersion: apps/v1 kind: Deployment metadata: name: open-webui-deployment namespace: open-webui spec: replicas: 1 selector: matchLabels: app: open-webui template: metadata: labels: app: open-webui spec: containers: - name: open-webui image: ghcr.io/open-webui/open-webui:main ports: - containerPort: 8080 resources: requests: cpu: "500m" memory: "500Mi" limits: cpu: "1000m" memory: "1Gi" env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434" tty: true volumeMounts: - name: webui-volume mountPath: /app/backend/data volumes: - name: webui-volume persistentVolumeClaim: claimName: open-webui-pvc
Expected Behavior: wish to utilize Open WebUI with Ollama in the kubernetes clusters.
Actual Behavior:
solutions:
kubernetes/manifest/base/webui-deployment.yaml
apiVersion: apps/v1 kind: Deployment metadata: name: open-webui-deployment namespace: open-webui spec: replicas: 1 selector: matchLabels: app: open-webui template: metadata: labels: app: open-webui spec: containers: - name: open-webui image: ghcr.io/open-webui/open-webui:main ports: - containerPort: 8080 resources: requests: cpu: "500m" memory: "500Mi" limits: cpu: "1000m" memory: "1Gi" env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434/api" tty: true volumeMounts: - name: webui-volume mountPath: /app/backend/data volumes: - name: webui-volume persistentVolumeClaim: claimName: open-webui-pvc
in the yaml file, the ollama_base_url is not correct, it works if I change "env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434/"" to "env: - name: OLLAMA_BASE_URL value: "http://ollama-service.open-webui.svc.cluster.local:11434/api".
No dependencies set.
The note is not visible to the blocked user.
Originally created by @waterloo2018 on GitHub (Apr 25, 2024).
Bug Report
Open WebUI: Server Connection Error
Description
Open WebUI: Server Connection Error in the kubernetes cluster environment.
Bug Summary:
Open WebUI: Server Connection Error in the kubernetes cluster environment.
Steps to Reproduce:
kubernetes/manifest/base/webui-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: open-webui-deployment
namespace: open-webui
spec:
replicas: 1
selector:
matchLabels:
app: open-webui
template:
metadata:
labels:
app: open-webui
spec:
containers:
- name: open-webui
image: ghcr.io/open-webui/open-webui:main
ports:
- containerPort: 8080
resources:
requests:
cpu: "500m"
memory: "500Mi"
limits:
cpu: "1000m"
memory: "1Gi"
env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434"
tty: true
volumeMounts:
- name: webui-volume
mountPath: /app/backend/data
volumes:
- name: webui-volume
persistentVolumeClaim:
claimName: open-webui-pvc
Expected Behavior:
wish to utilize Open WebUI with Ollama in the kubernetes clusters.
Actual Behavior:
Open WebUI: Server Connection Error
Note
solutions:
kubernetes/manifest/base/webui-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: open-webui-deployment
namespace: open-webui
spec:
replicas: 1
selector:
matchLabels:
app: open-webui
template:
metadata:
labels:
app: open-webui
spec:
containers:
- name: open-webui
image: ghcr.io/open-webui/open-webui:main
ports:
- containerPort: 8080
resources:
requests:
cpu: "500m"
memory: "500Mi"
limits:
cpu: "1000m"
memory: "1Gi"
env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434/api"
tty: true
volumeMounts:
- name: webui-volume
mountPath: /app/backend/data
volumes:
- name: webui-volume
persistentVolumeClaim:
claimName: open-webui-pvc
in the yaml file, the ollama_base_url is not correct, it works if I change "env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434/"" to "env:
- name: OLLAMA_BASE_URL
value: "http://ollama-service.open-webui.svc.cluster.local:11434/api".