Add Open Web UI deployment, service, and persistent volume claim configurations
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 26s
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 26s
This commit is contained in:
14
clusters/default/tools/open-webui/open-webui-pvc.yml
Normal file
14
clusters/default/tools/open-webui/open-webui-pvc.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: open-webui-longhorn
|
||||
namespace: tools
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
volumeMode: Filesystem
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
16
clusters/default/tools/open-webui/open-webui-svc.yml
Normal file
16
clusters/default/tools/open-webui/open-webui-svc.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: open-webui-service
|
||||
namespace: tools
|
||||
annotations:
|
||||
metallb.io/allow-shared-ip: "shared-ip-1"
|
||||
spec:
|
||||
loadBalancerIP: 192.168.1.230
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: open-webui
|
||||
ports:
|
||||
- port: 8123
|
||||
targetPort: 8080
|
||||
32
clusters/default/tools/open-webui/open-webui.yml
Normal file
32
clusters/default/tools/open-webui/open-webui.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: open-webui
|
||||
namespace: tools
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: open-webui
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: open-webui
|
||||
spec:
|
||||
containers:
|
||||
- name: open-webui
|
||||
image: ghcr.io/open-webui/open-webui:0.6.33
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: OLLAMA_BASE_URL
|
||||
value: "http://ollama.tools.svc.cluster.local:2123"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/backend/data
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: open-webui-longhorn
|
||||
Reference in New Issue
Block a user