mirror of
https://github.com/open-webui/helm-charts
synced 2025-06-26 18:16:14 +00:00
make ollama install work with external urls
This commit is contained in:
parent
aa04934217
commit
827d0f0dee
@ -2,5 +2,5 @@ dependencies:
|
|||||||
- name: ollama
|
- name: ollama
|
||||||
repository: https://otwld.github.io/ollama-helm/
|
repository: https://otwld.github.io/ollama-helm/
|
||||||
version: 0.24.1
|
version: 0.24.1
|
||||||
digest: sha256:5f063bf2874fa7bbf38c3eb34094301f3a818cc13c0eeffb010dd09a42f0371d
|
digest: sha256:81e6126e017a7063c0074cf7b38bca8537d220053255f0669c98a6f67e9360e6
|
||||||
generated: "2024-05-07T12:10:01.451609-07:00"
|
generated: "2024-05-07T13:24:36.081504-07:00"
|
||||||
|
@ -25,4 +25,8 @@ dependencies:
|
|||||||
- name: ollama
|
- name: ollama
|
||||||
repository: https://otwld.github.io/ollama-helm/
|
repository: https://otwld.github.io/ollama-helm/
|
||||||
version: ">=0.24.0"
|
version: ">=0.24.0"
|
||||||
|
import-values:
|
||||||
|
|
||||||
|
- child: service
|
||||||
|
parent: ollama.service
|
||||||
condition: ollama.enabled
|
condition: ollama.enabled
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# open-webui
|
# open-webui
|
||||||
|
|
||||||
 
|
 
|
||||||
|
|
||||||
Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋
|
Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋
|
||||||
|
|
||||||
@ -9,8 +9,9 @@ Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋
|
|||||||
## Source Code
|
## Source Code
|
||||||
|
|
||||||
* <https://github.com/open-webui/helm-charts>
|
* <https://github.com/open-webui/helm-charts>
|
||||||
* <https://hub.docker.com/r/ollama/ollama>
|
|
||||||
* <https://github.com/open-webui/open-webui/pkgs/container/open-webui>
|
* <https://github.com/open-webui/open-webui/pkgs/container/open-webui>
|
||||||
|
* <https://github.com/otwld/ollama-helm/>
|
||||||
|
* <https://hub.docker.com/r/ollama/ollama>
|
||||||
|
|
||||||
## Installing
|
## Installing
|
||||||
|
|
||||||
@ -27,11 +28,19 @@ Now you can install the chart:
|
|||||||
helm upgrade --install open-webui open-webui/open-webui
|
helm upgrade --install open-webui open-webui/open-webui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
| Repository | Name | Version |
|
||||||
|
|------------|------|---------|
|
||||||
|
| https://otwld.github.io/ollama-helm/ | ollama | >=0.24.0 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| annotations | object | `{}` | |
|
| annotations | object | `{}` | |
|
||||||
|
| clusterDomain | string | `"cluster.local"` | Value of cluster domain |
|
||||||
|
| externalHosts | list | `[]` | A list of Ollama API endpoints. These can be added in lieu of automatically installing the Ollama Helm chart, or in addition to it. |
|
||||||
| image.pullPolicy | string | `"Always"` | |
|
| image.pullPolicy | string | `"Always"` | |
|
||||||
| image.repository | string | `"ghcr.io/open-webui/open-webui"` | |
|
| image.repository | string | `"ghcr.io/open-webui/open-webui"` | |
|
||||||
| image.tag | string | `""` | |
|
| image.tag | string | `""` | |
|
||||||
@ -43,7 +52,7 @@ helm upgrade --install open-webui open-webui/open-webui
|
|||||||
| ingress.tls | bool | `false` | |
|
| ingress.tls | bool | `false` | |
|
||||||
| nameOverride | string | `""` | |
|
| nameOverride | string | `""` | |
|
||||||
| nodeSelector | object | `{}` | |
|
| nodeSelector | object | `{}` | |
|
||||||
| ollama.enabled | bool | `false` | Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure |
|
| ollama.enabled | bool | `true` | Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure |
|
||||||
| persistence.accessModes | list | `["ReadWriteOnce"]` | If using multiple replicas, you must update accessModes to ReadWriteMany |
|
| persistence.accessModes | list | `["ReadWriteOnce"]` | If using multiple replicas, you must update accessModes to ReadWriteMany |
|
||||||
| persistence.annotations | object | `{}` | |
|
| persistence.annotations | object | `{}` | |
|
||||||
| persistence.enabled | bool | `true` | |
|
| persistence.enabled | bool | `true` | |
|
||||||
|
@ -5,14 +5,27 @@
|
|||||||
ollama
|
ollama
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "ollama.url" -}}
|
{{- define "externalHostUrls" -}}
|
||||||
{{- if .Values.ollama.externalHost }}
|
{{- if .Values.externalHosts }}
|
||||||
{{- printf .Values.externalHost }}
|
{{- join ";" .Values.externalHosts }}
|
||||||
{{- else }}
|
|
||||||
{{- printf "http://%s.%s.svc.cluster.local:%d" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.service.port | int) }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "ollamaLocalUrl" -}}
|
||||||
|
{{- if .Values.ollama.enabled -}}
|
||||||
|
{{- $clusterDomain := .Values.clusterDomain }}
|
||||||
|
{{- $ollamaServicePort := .Values.ollama.service.port | toString }}
|
||||||
|
{{- printf "http://open-webui-%s.%s.svc.%s:%s" (include "ollama.name" .) (.Release.Namespace) $clusterDomain $ollamaServicePort }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "ollamaBaseUrls" -}}
|
||||||
|
{{- $ollamaLocalUrl := include "ollamaLocalUrl" . }}
|
||||||
|
{{- $externalHostUrls := include "externalHostUrls" . }}
|
||||||
|
{{- printf "%s;%s" $externalHostUrls $ollamaLocalUrl -}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
{{- define "chart.name" -}}
|
{{- define "chart.name" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -40,8 +40,8 @@ spec:
|
|||||||
- name: data
|
- name: data
|
||||||
mountPath: /app/backend/data
|
mountPath: /app/backend/data
|
||||||
env:
|
env:
|
||||||
- name: OLLAMA_BASE_URL
|
- name: OLLAMA_BASE_URLS
|
||||||
value: {{ include "ollama.url" . | quote }}
|
value: {{ include "ollamaBaseUrls" . | quote }}
|
||||||
tty: true
|
tty: true
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
@ -2,9 +2,13 @@ nameOverride: ""
|
|||||||
|
|
||||||
ollama:
|
ollama:
|
||||||
# -- Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure
|
# -- Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure
|
||||||
enabled: false
|
enabled: true
|
||||||
|
|
||||||
externalHosts:
|
# -- A list of Ollama API endpoints. These can be added in lieu of automatically installing the Ollama Helm chart, or in addition to it.
|
||||||
|
externalHosts: []
|
||||||
|
|
||||||
|
# -- Value of cluster domain
|
||||||
|
clusterDomain: cluster.local
|
||||||
|
|
||||||
annotations: {}
|
annotations: {}
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user