Adds OpenWebUI app.

This commit is contained in:
2025-09-24 04:33:45 -07:00
parent 8a569a1720
commit 80b9d14ec4
7 changed files with 158 additions and 0 deletions

View 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

View 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 }}"

View 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

View 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

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: open-webui

10
apps/open-webui/pvc.yaml Normal file
View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: open-webui-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: {{ .apps.openWebui.storage }}

View 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