44 lines
954 B
YAML
44 lines
954 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: app
|
|
namespace: openwebui
|
|
labels:
|
|
app: owu
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: owu
|
|
template:
|
|
metadata:
|
|
annotations: {}
|
|
labels:
|
|
app: owu
|
|
spec:
|
|
nodeSelector:
|
|
region: us
|
|
containers:
|
|
- name: app
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
ports:
|
|
- containerPort: 4000
|
|
name: web
|
|
env:
|
|
- name: OFFLINE_MODE
|
|
value: "true"
|
|
- name: ENABLE_IMAGE_GENERATION
|
|
value: "true"
|
|
- name: ENABLE_RAG_WEB_SEARCH
|
|
value: "true"
|
|
- name: TZ
|
|
value: "Asia/Shanghai"
|
|
volumeMounts:
|
|
- name: owu-data
|
|
mountPath: /app/backend/data
|
|
volumes:
|
|
- name: owu-data
|
|
persistentVolumeClaim:
|
|
claimName: owu-local-vkus1-pvc
|
|
|