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
cbaada14
"examples/deepseek_v32/vscode:/vscode.git/clone" did not exist on "cf6e11c955cfebcb283051084678247ff0e5db7c"
Commit
cbaada14
authored
Feb 19, 2024
by
duhow
Browse files
add define names
parent
770c6f21
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
10 deletions
+17
-10
kubernetes/helm/templates/_helpers.tpl
kubernetes/helm/templates/_helpers.tpl
+7
-0
kubernetes/helm/templates/ollama-service.yaml
kubernetes/helm/templates/ollama-service.yaml
+1
-1
kubernetes/helm/templates/ollama-statefulset.yaml
kubernetes/helm/templates/ollama-statefulset.yaml
+2
-2
kubernetes/helm/templates/webui-deployment.yaml
kubernetes/helm/templates/webui-deployment.yaml
+4
-4
kubernetes/helm/templates/webui-ingress.yaml
kubernetes/helm/templates/webui-ingress.yaml
+1
-1
kubernetes/helm/templates/webui-pvc.yaml
kubernetes/helm/templates/webui-pvc.yaml
+1
-1
kubernetes/helm/templates/webui-service.yaml
kubernetes/helm/templates/webui-service.yaml
+1
-1
No files found.
kubernetes/helm/templates/_helpers.tpl
0 → 100644
View file @
cbaada14
{{
-
define
"open-webui.name"
-
}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end -}}
{{- define "ollama.name" -}}
ollama
{{- end -}}
kubernetes/helm/templates/ollama-service.yaml
View file @
cbaada14
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
ollama-service
name
:
{{
include "ollama.name" .
}}
spec
:
type
:
{{
.Values.ollama.service.type
}}
selector
:
...
...
kubernetes/helm/templates/ollama-statefulset.yaml
View file @
cbaada14
apiVersion
:
apps/v1
kind
:
StatefulSet
metadata
:
name
:
ollama
name
:
{{
include "ollama.name" .
}}
spec
:
serviceName
:
"
ollama"
serviceName
:
{{
include "ollama.name" .
}}
replicas
:
{{
.Values.ollama.replicaCount
}}
selector
:
matchLabels
:
...
...
kubernetes/helm/templates/webui-deployment.yaml
View file @
cbaada14
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
open-webui-deployment
name
:
{{
include "open-webui.name" .
}}
spec
:
replicas
:
1
selector
:
...
...
@@ -13,7 +13,7 @@ spec:
app
:
open-webui
spec
:
containers
:
-
name
:
open-webui
-
name
:
{{
.Chart.Name
}}
image
:
{{
.Values.webui.image
}}
ports
:
-
containerPort
:
8080
...
...
@@ -25,7 +25,7 @@ spec:
mountPath
:
/app/backend/data
env
:
-
name
:
OLLAMA_API_BASE_URL
value
:
"
http://ollama-service.{{
.Values.namespace
}}.svc.cluster.local:{{
.Values.ollama.servicePort
}}/api"
value
:
{{
printf "http
:
//%s.%s.svc.cluster.local
:
%
s/api" (include "ollama.name" .) (.Release.Namespace) (
.Values.ollama.servicePort
) | quote
}}
tty
:
true
{{
- with .Values.webui.nodeSelector
}}
nodeSelector
:
...
...
@@ -34,4 +34,4 @@ spec:
volumes
:
-
name
:
webui-volume
persistentVolumeClaim
:
claimName
:
open-webui-pvc
claimName
:
{{
include "open-webui.name" .
}}
kubernetes/helm/templates/webui-ingress.yaml
View file @
cbaada14
...
...
@@ -2,7 +2,7 @@
apiVersion
:
networking.k8s.io/v1
kind
:
Ingress
metadata
:
name
:
open-webui-ingress
name
:
{{
include "open-webui.name" .
}}
{{
- if .Values.webui.ingress.annotations
}}
annotations
:
{{
toYaml .Values.webui.ingress.annotations | trimSuffix "\n" | indent 4
}}
...
...
kubernetes/helm/templates/webui-pvc.yaml
View file @
cbaada14
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
open-webui-pvc
name
:
{{
include "open-webui.name" .
}}
labels
:
app
:
open-webui
spec
:
...
...
kubernetes/helm/templates/webui-service.yaml
View file @
cbaada14
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
open-webui-service
name
:
{{
include "open-webui.name" .
}}
spec
:
type
:
{{
.Values.webui.service.type
}}
# Default: NodePort # Use LoadBalancer if you're on a cloud that supports it
selector
:
...
...
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