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
0d803aa0
Commit
0d803aa0
authored
Feb 19, 2024
by
duhow
Browse files
update image repository and storage
parent
05e31494
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
13 deletions
+28
-13
kubernetes/helm/templates/ollama-statefulset.yaml
kubernetes/helm/templates/ollama-statefulset.yaml
+9
-8
kubernetes/helm/templates/webui-deployment.yaml
kubernetes/helm/templates/webui-deployment.yaml
+4
-1
kubernetes/helm/values.yaml
kubernetes/helm/values.yaml
+15
-4
No files found.
kubernetes/helm/templates/ollama-statefulset.yaml
View file @
0d803aa0
...
@@ -17,7 +17,10 @@ spec:
...
@@ -17,7 +17,10 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
{{
include "ollama.name" .
}}
-
name
:
{{
include "ollama.name" .
}}
image
:
{{
.Values.ollama.image
}}
{{
- with .Values.ollama.image
}}
image
:
{{
.repository
}}
:{{ .tag }}
imagePullPolicy
:
{{
.pullPolicy
}}
{{
- end
}}
ports
:
ports
:
-
name
:
http
-
name
:
http
containerPort
:
{{
.Values.ollama.service.containerPort
}}
containerPort
:
{{
.Values.ollama.service.containerPort
}}
...
@@ -29,7 +32,7 @@ spec:
...
@@ -29,7 +32,7 @@ spec:
value
:
/usr/local/nvidia/lib:/usr/local/nvidia/lib64
value
:
/usr/local/nvidia/lib:/usr/local/nvidia/lib64
-
name
:
NVIDIA_DRIVER_CAPABILITIES
-
name
:
NVIDIA_DRIVER_CAPABILITIES
value
:
compute,utility
value
:
compute,utility
{{
- end
}}
{{
- end
}}
{{
- with .Values.ollama.resources
}}
{{
- with .Values.ollama.resources
}}
resources
:
{{
- toYaml . | nindent 10
}}
resources
:
{{
- toYaml . | nindent 10
}}
{{
- end
}}
{{
- end
}}
...
@@ -41,12 +44,10 @@ spec:
...
@@ -41,12 +44,10 @@ spec:
nodeSelector
:
nodeSelector
:
{{
- toYaml . | nindent 8
}}
{{
- toYaml . | nindent 8
}}
{{
- end
}}
{{
- end
}}
{{
- with .Values.ollama.tolerations
}}
tolerations
:
tolerations
:
{{
- if .Values.ollama.gpu.enabled
}}
{{
- toYaml . | nindent 8
}}
-
key
:
nvidia.com/gpu
{{
- end
}}
operator
:
Exists
effect
:
NoSchedule
{{
- end
}}
volumeClaimTemplates
:
volumeClaimTemplates
:
-
metadata
:
-
metadata
:
name
:
ollama-volume
name
:
ollama-volume
...
@@ -54,4 +55,4 @@ spec:
...
@@ -54,4 +55,4 @@ spec:
accessModes
:
[
"
ReadWriteOnce"
]
accessModes
:
[
"
ReadWriteOnce"
]
resources
:
resources
:
requests
:
requests
:
storage
:
{{
.Values.ollama.
volumeS
ize
}}
storage
:
{{
.Values.ollama.
persistence.s
ize
}}
kubernetes/helm/templates/webui-deployment.yaml
View file @
0d803aa0
...
@@ -16,7 +16,10 @@ spec:
...
@@ -16,7 +16,10 @@ spec:
spec
:
spec
:
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
image
:
{{
.Values.webui.image
}}
{{
- with .Values.webui.image
}}
image
:
{{
.repository
}}
:{{ .tag }}
imagePullPolicy
:
{{
.pullPolicy
}}
{{
- end
}}
ports
:
ports
:
-
name
:
http
-
name
:
http
containerPort
:
{{
.Values.webui.service.containerPort
}}
containerPort
:
{{
.Values.webui.service.containerPort
}}
...
...
kubernetes/helm/values.yaml
View file @
0d803aa0
ollama
:
ollama
:
replicaCount
:
1
replicaCount
:
1
image
:
ollama/ollama:latest
image
:
repository
:
ollama/ollama
tag
:
latest
pullPolicy
:
Always
resources
:
resources
:
requests
:
requests
:
cpu
:
"
2000m"
cpu
:
"
2000m"
...
@@ -9,9 +12,14 @@ ollama:
...
@@ -9,9 +12,14 @@ ollama:
cpu
:
"
4000m"
cpu
:
"
4000m"
memory
:
"
4Gi"
memory
:
"
4Gi"
nvidia.com/gpu
:
"
0"
nvidia.com/gpu
:
"
0"
volumeSize
:
30Gi
persistence
:
enabled
:
true
size
:
30Gi
nodeSelector
:
{}
nodeSelector
:
{}
tolerations
:
[]
tolerations
:
-
key
:
nvidia.com/gpu
operator
:
Exists
effect
:
NoSchedule
service
:
service
:
type
:
ClusterIP
type
:
ClusterIP
port
:
80
port
:
80
...
@@ -21,7 +29,10 @@ ollama:
...
@@ -21,7 +29,10 @@ ollama:
webui
:
webui
:
replicaCount
:
1
replicaCount
:
1
image
:
ghcr.io/open-webui/open-webui:main
image
:
repository
:
ghcr.io/open-webui/open-webui
tag
:
main
pullPolicy
:
Always
resources
:
resources
:
requests
:
requests
:
cpu
:
"
500m"
cpu
:
"
500m"
...
...
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