Reorganized for new stable/waypoint versioning design.
This commit is contained in:
33
open-webui/versions/0/README.md
Normal file
33
open-webui/versions/0/README.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Open WebUI
|
||||
|
||||
Open WebUI is a comprehensive, open-source web interface for AI models. It features a user-friendly design similar to ChatGPT and can connect to local or hosted LLM backends.
|
||||
|
||||
## Dependencies
|
||||
|
||||
None required, but works best with a local LLM backend like **vLLM** deployed on your cluster.
|
||||
|
||||
## Configuration
|
||||
|
||||
Key settings configured through your instance's `config.yaml`:
|
||||
|
||||
- **domain** - Where the UI will be accessible (default: `chat.{your-cloud-domain}`)
|
||||
- **vllmApiUrl** - URL of your LLM backend (default: connects to vLLM on the cluster)
|
||||
- **enableSignup** - Whether to allow new account creation (default: `false`)
|
||||
- **storage** - Persistent volume size (default: `10Gi`)
|
||||
|
||||
## Access
|
||||
|
||||
After deployment, Open WebUI will be available at:
|
||||
- `https://chat.{your-cloud-domain}`
|
||||
|
||||
## First-Time Setup
|
||||
|
||||
1. Deploy a local LLM backend (e.g., vLLM) if you haven't already
|
||||
|
||||
2. Add and deploy the app:
|
||||
```bash
|
||||
wild app add open-webui
|
||||
wild app deploy open-webui
|
||||
```
|
||||
|
||||
3. Create your account and start chatting with your local AI models
|
||||
86
open-webui/versions/0/deployment.yaml
Normal file
86
open-webui/versions/0/deployment.yaml
Normal file
@@ -0,0 +1,86 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: open-webui
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
component: web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
component: web
|
||||
spec:
|
||||
securityContext:
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: open-webui
|
||||
image: ghcr.io/open-webui/open-webui:v0.9.5
|
||||
imagePullPolicy: IfNotPresent
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: false
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
env:
|
||||
- name: WEBUI_AUTH
|
||||
value: "true"
|
||||
- name: ENABLE_SIGNUP
|
||||
value: "false"
|
||||
- name: OPENAI_API_BASE_URL
|
||||
value: "{{ .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: secretKey
|
||||
- name: WEBUI_ADMIN_EMAIL
|
||||
value: "{{ .adminEmail }}"
|
||||
- name: WEBUI_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: open-webui-secrets
|
||||
key: adminPassword
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /app/backend/data
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 512Mi
|
||||
limits:
|
||||
cpu: 1
|
||||
memory: 2Gi
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 10
|
||||
failureThreshold: 18
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: http
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: http
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: open-webui-data
|
||||
25
open-webui/versions/0/ingress.yaml
Normal file
25
open-webui/versions/0/ingress.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: open-webui
|
||||
annotations:
|
||||
external-dns.alpha.kubernetes.io/target: {{ .externalDnsDomain }}
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
|
||||
traefik.ingress.kubernetes.io/router.middlewares: crowdsec-crowdsec-bouncer@kubernetescrd,crowdsec-rate-limit@kubernetescrd
|
||||
spec:
|
||||
rules:
|
||||
- host: {{ .domain }}
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: open-webui
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- secretName: wildcard-wild-cloud-tls
|
||||
hosts:
|
||||
- {{ .domain }}
|
||||
15
open-webui/versions/0/kustomization.yaml
Normal file
15
open-webui/versions/0/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
|
||||
12
open-webui/versions/0/manifest.yaml
Normal file
12
open-webui/versions/0/manifest.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
version: 0.9.5-1
|
||||
requires: []
|
||||
defaultConfig:
|
||||
namespace: open-webui
|
||||
externalDnsDomain: '{{ .cloud.domain }}'
|
||||
storage: 10Gi
|
||||
domain: chat.{{ .cloud.domain }}
|
||||
vllmApiUrl: http://vllm-service.llm.svc.cluster.local:8000/v1
|
||||
adminEmail: '{{ .operator.email }}'
|
||||
defaultSecrets:
|
||||
- key: secretKey
|
||||
- key: adminPassword
|
||||
4
open-webui/versions/0/namespace.yaml
Normal file
4
open-webui/versions/0/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: "{{ .namespace }}"
|
||||
10
open-webui/versions/0/pvc.yaml
Normal file
10
open-webui/versions/0/pvc.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: open-webui-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .storage }}
|
||||
12
open-webui/versions/0/service.yaml
Normal file
12
open-webui/versions/0/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