143 lines
3.8 KiB
YAML
143 lines
3.8 KiB
YAML
image:
|
|
repository: ollama/ollama
|
|
pullPolicy: IfNotPresent
|
|
tag: 0.1.47@sha256:cbfcbf6a755e5bacb6e1a7bf13d9b6d8acd2856f8fe300faf65d8e153cfa9dd3
|
|
rocmImage:
|
|
repository: ollama/ollama
|
|
pullPolicy: IfNotPresent
|
|
tag: 0.1.47-rocm@sha256:163f08b4b571ea97f19244debb65302e2748a24fc9dca983d0ae45a45464029c
|
|
uiImage:
|
|
repository: ghcr.io/open-webui/open-webui
|
|
pullPolicy: IfNotPresent
|
|
tag: latest@sha256:4d89fa0ea85a86e5f1c25dcdac3c810e433ebaf1f77d6a4cb667d07489ad3e7c
|
|
|
|
securityContext:
|
|
container:
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
|
|
service:
|
|
main:
|
|
targetSelector: ui
|
|
ports:
|
|
main:
|
|
protocol: http
|
|
port: 10686
|
|
targetSelector: ui
|
|
api:
|
|
enabled: true
|
|
targetSelector: main
|
|
ports:
|
|
api:
|
|
enabled: true
|
|
protocol: http
|
|
targetPort: 11434
|
|
port: 11434
|
|
targetSelector: main
|
|
|
|
ingress:
|
|
api:
|
|
enabled: false
|
|
targetSelector:
|
|
api: api
|
|
|
|
ollama:
|
|
registration:
|
|
enabled: true
|
|
# admin | user | pending
|
|
def_user_role: "pending"
|
|
stable_diffusion:
|
|
base_url: ""
|
|
whisper:
|
|
model: "base"
|
|
rag:
|
|
# cpu | cuda | mps
|
|
model_device_type: "cpu"
|
|
# embedding model
|
|
model: "all-MiniLM-L6-v2"
|
|
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
imageSelector: image
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
path: /api/version
|
|
port: "{{ .Values.service.api.ports.api.targetPort }}"
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
path: /api/version
|
|
port: "{{ .Values.service.api.ports.api.targetPort }}"
|
|
startup:
|
|
enabled: true
|
|
type: tcp
|
|
port: "{{ .Values.service.api.ports.api.targetPort }}"
|
|
ui:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
containers:
|
|
ui:
|
|
primary: true
|
|
enabled: true
|
|
imageSelector: uiImage
|
|
resources:
|
|
excludeExtra: true
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
path: /
|
|
port: "{{ .Values.service.main.ports.main.port }}"
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
path: /
|
|
port: "{{ .Values.service.main.ports.main.port }}"
|
|
startup:
|
|
enabled: true
|
|
type: tcp
|
|
port: "{{ .Values.service.main.ports.main.port }}"
|
|
env:
|
|
PORT: "{{ .Values.service.main.ports.main.port }}"
|
|
OLLAMA_BASE_URL: '{{ printf "http://%v-api:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.api.ports.api.targetPort }}'
|
|
WEBUI_SECRET_KEY:
|
|
secretKeyRef:
|
|
name: ollama-secrets
|
|
key: WEBUI_SECRET_KEY
|
|
AUTOMATIC1111_BASE_URL: "{{ .Values.ollama.stable_diffusion.base_url }}"
|
|
ENABLE_SIGNUP: "{{ .Values.ollama.registration.enabled }}"
|
|
DEFAULT_USER_ROLE: "{{ .Values.ollama.registration.def_user_role }}"
|
|
WHISPER_MODEL: "{{ .Values.ollama.whisper.model }}"
|
|
RAG_EMBEDDING_MODEL: "{{ .Values.ollama.rag.model }}"
|
|
RAG_EMBEDDING_MODEL_DEVICE_TYPE: "{{ .Values.ollama.rag.model_device_type }}"
|
|
WEBUI_AUTH_TRUSTED_EMAIL_HEADER: "{{ .Values.ollama.registration.trusted_email_header }}"
|
|
# OPENAI_API_BASE_URL
|
|
# OPENAI_API_KEY
|
|
# DEFAULT_MODELS
|
|
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
targetSelector:
|
|
main:
|
|
main:
|
|
mountPath: "/root/.ollama"
|
|
data:
|
|
enabled: true
|
|
targetSelector:
|
|
ui:
|
|
ui:
|
|
mountPath: "/app/backend/data"
|
|
|
|
portal:
|
|
open:
|
|
enabled: true
|