116 lines
2.9 KiB
YAML
116 lines
2.9 KiB
YAML
image:
|
|
repository: ollama/ollama
|
|
pullPolicy: IfNotPresent
|
|
tag: 0.1.29@sha256:75fb97cdd8f435756d26eb7783599122b814c4b97da2012dc21ebc0efbd90fef
|
|
uiImage:
|
|
repository: ghcr.io/open-webui/open-webui
|
|
pullPolicy: IfNotPresent
|
|
tag: latest@sha256:74b95a7fcbb4dc50fab0aa0fd939514d93e7c4c660a279c9d0cf133913359ec1
|
|
|
|
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
|
|
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
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
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
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 }}"
|
|
DATA_DIR: "{{ .Values.persistence.data.mountPath }}"
|
|
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
|
|
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
targetSelector:
|
|
main:
|
|
main:
|
|
mountPath: "/root/.ollama"
|
|
data:
|
|
enabled: true
|
|
targetSelector:
|
|
ui:
|
|
ui:
|
|
mountPath: "/app/backend/data"
|
|
|
|
portal:
|
|
open:
|
|
enabled: true
|