From 035c2e05000dbb5b27f29d3f5670b4cdc4d1053f Mon Sep 17 00:00:00 2001 From: Gene Kuo Date: Sat, 24 Feb 2024 03:14:17 +0900 Subject: [PATCH] Fix Kubernetes Manifest for Web UI There are currently 2 issues with the Kubernetes manifest: - open-webui-deployment refers to ollama-webui-pvc but not included in kustomization.yaml, causing issue if using GPU deployment - ollama-webui-pvc is using the wrong namespace This commit fixes both issue. --- kubernetes/manifest/base/webui-pvc.yaml | 2 +- kubernetes/manifest/kustomization.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kubernetes/manifest/base/webui-pvc.yaml b/kubernetes/manifest/base/webui-pvc.yaml index 285dfeef..5c75283a 100644 --- a/kubernetes/manifest/base/webui-pvc.yaml +++ b/kubernetes/manifest/base/webui-pvc.yaml @@ -4,7 +4,7 @@ metadata: labels: app: ollama-webui name: ollama-webui-pvc - namespace: ollama-namespace + namespace: open-webui spec: accessModes: ["ReadWriteOnce"] resources: diff --git a/kubernetes/manifest/kustomization.yaml b/kubernetes/manifest/kustomization.yaml index f581839e..907bff3e 100644 --- a/kubernetes/manifest/kustomization.yaml +++ b/kubernetes/manifest/kustomization.yaml @@ -5,6 +5,7 @@ resources: - base/webui-deployment.yaml - base/webui-service.yaml - base/webui-ingress.yaml +- base/webui-pvc.yaml apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization