Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
18463d93
Commit
18463d93
authored
Feb 19, 2024
by
duhow
Browse files
pod optimization and advanced settings
parent
f82347ea
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
kubernetes/helm/templates/_helpers.tpl
kubernetes/helm/templates/_helpers.tpl
+4
-0
kubernetes/helm/templates/ollama-statefulset.yaml
kubernetes/helm/templates/ollama-statefulset.yaml
+5
-0
kubernetes/helm/templates/webui-deployment.yaml
kubernetes/helm/templates/webui-deployment.yaml
+3
-1
kubernetes/helm/templates/webui-ingress.yaml
kubernetes/helm/templates/webui-ingress.yaml
+1
-1
kubernetes/helm/values.yaml
kubernetes/helm/values.yaml
+4
-0
No files found.
kubernetes/helm/templates/_helpers.tpl
View file @
18463d93
...
...
@@ -6,6 +6,10 @@
ollama
{{- end -}}
{{- define "ollama.url" -}}
{{- printf "http://%s.%s.svc.cluster.local:%d/api" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.service.port | int) }}
{{- end }}
{{- define "chart.name" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
...
...
kubernetes/helm/templates/ollama-statefulset.yaml
View file @
18463d93
...
...
@@ -23,6 +23,11 @@ spec:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
spec
:
enableServiceLinks
:
false
automountServiceAccountToken
:
false
{{
- with .Values.ollama.runtimeClassName
}}
runtimeClassName
:
{{
.
}}
{{
- end
}}
containers
:
-
name
:
{{
include "ollama.name" .
}}
{{
- with .Values.ollama.image
}}
...
...
kubernetes/helm/templates/webui-deployment.yaml
View file @
18463d93
...
...
@@ -22,6 +22,8 @@ spec:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
spec
:
enableServiceLinks
:
false
automountServiceAccountToken
:
false
containers
:
-
name
:
{{
.Chart.Name
}}
{{
- with .Values.webui.image
}}
...
...
@@ -39,7 +41,7 @@ spec:
mountPath
:
/app/backend/data
env
:
-
name
:
OLLAMA_API_BASE_URL
value
:
{{
printf "http
:
//%s.%s.svc.cluster.local
:
%
s/api" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.servicePort)
| quote
}}
value
:
{{
include "ollama.url" .
| quote
}}
tty
:
true
{{
- with .Values.webui.nodeSelector
}}
nodeSelector
:
...
...
kubernetes/helm/templates/webui-ingress.yaml
View file @
18463d93
...
...
@@ -20,5 +20,5 @@ spec:
service
:
name
:
{{
include "open-webui.name" .
}}
port
:
n
umber
:
{{
.Values.webui.service.port
}}
n
ame
:
http
{{
- end
}}
kubernetes/helm/values.yaml
View file @
18463d93
nameOverride
:
"
"
ollama
:
annotations
:
{}
podAnnotations
:
{}
...
...
@@ -16,6 +18,8 @@ ollama:
selector
:
{}
annotations
:
{}
nodeSelector
:
{}
# -- If using a special runtime container such as nvidia, set it here.
runtimeClassName
:
"
"
tolerations
:
-
key
:
nvidia.com/gpu
operator
:
Exists
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment