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
05e31494
Commit
05e31494
authored
Feb 19, 2024
by
duhow
Browse files
rename ports, labels and service settings
parent
0b7f183a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
18 deletions
+25
-18
kubernetes/helm/templates/ollama-service.yaml
kubernetes/helm/templates/ollama-service.yaml
+2
-2
kubernetes/helm/templates/ollama-statefulset.yaml
kubernetes/helm/templates/ollama-statefulset.yaml
+3
-2
kubernetes/helm/templates/webui-deployment.yaml
kubernetes/helm/templates/webui-deployment.yaml
+4
-3
kubernetes/helm/templates/webui-ingress.yaml
kubernetes/helm/templates/webui-ingress.yaml
+2
-2
kubernetes/helm/templates/webui-pvc.yaml
kubernetes/helm/templates/webui-pvc.yaml
+2
-2
kubernetes/helm/templates/webui-service.yaml
kubernetes/helm/templates/webui-service.yaml
+2
-2
kubernetes/helm/values.yaml
kubernetes/helm/values.yaml
+10
-5
No files found.
kubernetes/helm/templates/ollama-service.yaml
View file @
05e31494
...
...
@@ -12,6 +12,6 @@ spec:
ports
:
-
protocol
:
TCP
name
:
http
port
:
{{
.port
}}
targetPort
:
{{
.
containerP
ort
}}
port
:
http
targetPort
:
{{
.
p
ort
}}
{{
- end
}}
kubernetes/helm/templates/ollama-statefulset.yaml
View file @
05e31494
...
...
@@ -13,13 +13,14 @@ spec:
template
:
metadata
:
labels
:
{{
- include "ollama.
selectorL
abels" . | nindent 8
}}
{{
- include "ollama.
l
abels" . | nindent 8
}}
spec
:
containers
:
-
name
:
{{
include "ollama.name" .
}}
image
:
{{
.Values.ollama.image
}}
ports
:
-
containerPort
:
{{
.Values.ollama.servicePort
}}
-
name
:
http
containerPort
:
{{
.Values.ollama.service.containerPort
}}
env
:
{{
- if .Values.ollama.gpu.enabled
}}
-
name
:
PATH
...
...
kubernetes/helm/templates/webui-deployment.yaml
View file @
05e31494
...
...
@@ -5,20 +5,21 @@ metadata:
labels
:
{{
- include "open-webui.labels" . | nindent 4
}}
spec
:
replicas
:
1
replicas
:
{{
.Values.webui.replicaCount
}}
selector
:
matchLabels
:
{{
- include "open-webui.selectorLabels" . | nindent 6
}}
template
:
metadata
:
labels
:
{{
- include "open-webui.
selectorL
abels" . | nindent 8
}}
{{
- include "open-webui.
l
abels" . | nindent 8
}}
spec
:
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
{{
.Values.webui.image
}}
ports
:
-
containerPort
:
8080
-
name
:
http
containerPort
:
{{
.Values.webui.service.containerPort
}}
{{
- with .Values.webui.resources
}}
resources
:
{{
- toYaml . | nindent 10
}}
{{
- end
}}
...
...
kubernetes/helm/templates/webui-ingress.yaml
View file @
05e31494
...
...
@@ -18,7 +18,7 @@ spec:
pathType
:
Prefix
backend
:
service
:
name
:
open-webui-service
name
:
{{
include "open-webui.name" .
}}
port
:
number
:
{{
.Values.webui.service
P
ort
}}
number
:
{{
.Values.webui.service
.p
ort
}}
{{
- end
}}
kubernetes/helm/templates/webui-pvc.yaml
View file @
05e31494
...
...
@@ -3,9 +3,9 @@ kind: PersistentVolumeClaim
metadata
:
name
:
{{
include "open-webui.name" .
}}
labels
:
{{
- include "open-webui.
l
abels" . | nindent 4
}}
{{
- include "open-webui.
selectorL
abels" . | nindent 4
}}
spec
:
accessModes
:
[
"
ReadWriteOnce"
]
resources
:
requests
:
storage
:
{{
.Values.webui.
volumeS
ize
}}
storage
:
{{
.Values.webui.
persistence.s
ize
}}
kubernetes/helm/templates/webui-service.yaml
View file @
05e31494
...
...
@@ -11,8 +11,8 @@ spec:
type
:
{{
.type
}}
ports
:
-
protocol
:
TCP
port
:
{{
.port
}}
targetPort
:
{{
.
containerP
ort
}}
port
:
http
targetPort
:
{{
.
p
ort
}}
{{
- if .nodePort
}}
nodePort
:
{{
.nodePort
}}
{{
- end
}}
...
...
kubernetes/helm/values.yaml
View file @
05e31494
ollama
:
replicaCount
:
1
image
:
ollama/ollama:latest
servicePort
:
11434
resources
:
requests
:
cpu
:
"
2000m"
...
...
@@ -15,13 +14,14 @@ ollama:
tolerations
:
[]
service
:
type
:
ClusterIP
port
:
80
containerPort
:
11434
gpu
:
enabled
:
false
webui
:
replicaCount
:
1
image
:
ghcr.io/open-webui/open-webui:main
servicePort
:
8080
resources
:
requests
:
cpu
:
"
500m"
...
...
@@ -31,12 +31,17 @@ webui:
memory
:
"
1Gi"
ingress
:
enabled
:
true
annotations
:
annotations
:
{}
# Use appropriate annotations for your Ingress controller, e.g., for NGINX:
# nginx.ingress.kubernetes.io/rewrite-target: /
host
:
open-webui.minikube.local
volumeSize
:
2Gi
persistence
:
enabled
:
true
size
:
2Gi
nodeSelector
:
{}
tolerations
:
[]
service
:
type
:
NodePort
type
:
ClusterIP
port
:
80
containerPort
:
8080
nodePort
:
"
"
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