108 lines
2.8 KiB
YAML
108 lines
2.8 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: server
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: server
|
|
spec:
|
|
containers:
|
|
- name: server
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
tty: true
|
|
env:
|
|
- name: NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: OLLAMA_BASE_URL
|
|
value: http://ollama-server.$(NAMESPACE).svc:11434
|
|
- name: AUDIO_TTS_OPENAI_API_BASE_URL
|
|
value: http://openedai-speech-server.$(NAMESPACE).svc:8000/v1
|
|
- name: AUDIO_TTS_OPENAI_API_KEY
|
|
value: ignored
|
|
- name: RAG_EMBEDDING_ENGINE
|
|
value: ollama
|
|
- name: AUDIO_TTS_ENGINE
|
|
value: openai
|
|
# - name: AUDIO_STT_ENGINE
|
|
# value: openai
|
|
- name: ENABLE_SIGNUP
|
|
value: "false"
|
|
- name: ENABLE_OAUTH_SIGNUP
|
|
value: "true"
|
|
- name: OAUTH_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: server-openid-config
|
|
key: oauth_client_id
|
|
- name: OAUTH_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: server-openid-config
|
|
key: oauth_client_secret
|
|
- name: OPENID_PROVIDER_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: server-openid-config
|
|
key: openid_provider_url
|
|
- name: OAUTH_PROVIDER_NAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: server-openid-config
|
|
key: oauth_provider_name
|
|
# - name: GLOBAL_LOG_LEVEL
|
|
# value: DEBUG
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
volumeMounts:
|
|
- name: server-data-pv
|
|
mountPath: /app/backend/data
|
|
volumes:
|
|
- name: server-data-pv
|
|
persistentVolumeClaim:
|
|
claimName: server-data-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: server-data-pvc
|
|
labels:
|
|
app.kubernetes.io/name: server
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: server
|
|
labels:
|
|
app.kubernetes.io/component: server
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/component: server
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
targetPort: http
|