Adds OpenWebUI app.
This commit is contained in:
76
apps/open-webui/deployment.yaml
Normal file
76
apps/open-webui/deployment.yaml
Normal file
@@ -0,0 +1,76 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: open-webui
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
component: web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
component: web
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: open-webui
|
||||
image: {{ .apps.openWebui.image }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: false
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .apps.openWebui.port }}
|
||||
env:
|
||||
- name: WEBUI_AUTH
|
||||
value: "{{ .apps.openWebui.enableAuth }}"
|
||||
- name: ENABLE_SIGNUP
|
||||
value: "{{ .apps.openWebui.enableSignup }}"
|
||||
- name: OPENAI_API_BASE_URL
|
||||
value: "{{ .apps.openWebui.vllmApiUrl }}"
|
||||
- name: OPENAI_API_KEY
|
||||
value: "sk-placeholder" # Required but not used with vLLM
|
||||
- name: WEBUI_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: open-webui-secrets
|
||||
key: apps.openWebui.secretKey
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/backend/data
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 2Gi
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: open-webui-data
|
||||
24
apps/open-webui/ingress.yaml
Normal file
24
apps/open-webui/ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: open-webui
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/target: "{{ .apps.openWebui.domain }}"
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
|
||||
spec:
|
||||
rules:
|
||||
- host: "{{ .apps.openWebui.domain }}"
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: open-webui
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- secretName: wildcard-wild-cloud-tls
|
||||
hosts:
|
||||
- "{{ .apps.openWebui.domain }}"
|
||||
15
apps/open-webui/kustomization.yaml
Normal file
15
apps/open-webui/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: open-webui
|
||||
labels:
|
||||
- includeSelectors: true
|
||||
pairs:
|
||||
app: open-webui
|
||||
managedBy: kustomize
|
||||
partOf: wild-cloud
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
17
apps/open-webui/manifest.yaml
Normal file
17
apps/open-webui/manifest.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: openWebui
|
||||
description: Open WebUI is a comprehensive, open-source web interface for AI models. Features a user-friendly design, supports various LLM runners, and operates entirely offline. Perfect for creating a ChatGPT-like experience with local or hosted models.
|
||||
version: 0.4.5
|
||||
icon: https://docs.openwebui.com/assets/logo-dark.png
|
||||
requires: []
|
||||
defaultConfig:
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
port: 8080
|
||||
storage: 10Gi
|
||||
domain: chat.{{ .cloud.domain }}
|
||||
# vLLM integration - connect to existing vLLM service
|
||||
vllmApiUrl: http://vllm-service.llm.svc.cluster.local:8000/v1
|
||||
# Authentication settings
|
||||
enableAuth: true
|
||||
enableSignup: false
|
||||
requiredSecrets:
|
||||
- apps.openWebui.secretKey
|
||||
4
apps/open-webui/namespace.yaml
Normal file
4
apps/open-webui/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: open-webui
|
||||
10
apps/open-webui/pvc.yaml
Normal file
10
apps/open-webui/pvc.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: open-webui-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .apps.openWebui.storage }}
|
||||
12
apps/open-webui/service.yaml
Normal file
12
apps/open-webui/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: open-webui
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
component: web
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
Reference in New Issue
Block a user