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
f82347ea
Commit
f82347ea
authored
Feb 19, 2024
by
duhow
Browse files
add annotations
parent
34b7fd18
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
2 deletions
+28
-2
kubernetes/helm/templates/ollama-service.yaml
kubernetes/helm/templates/ollama-service.yaml
+4
-0
kubernetes/helm/templates/ollama-statefulset.yaml
kubernetes/helm/templates/ollama-statefulset.yaml
+8
-0
kubernetes/helm/templates/webui-deployment.yaml
kubernetes/helm/templates/webui-deployment.yaml
+8
-0
kubernetes/helm/templates/webui-ingress.yaml
kubernetes/helm/templates/webui-ingress.yaml
+2
-2
kubernetes/helm/values.yaml
kubernetes/helm/values.yaml
+6
-0
No files found.
kubernetes/helm/templates/ollama-service.yaml
View file @
f82347ea
...
@@ -4,6 +4,10 @@ metadata:
...
@@ -4,6 +4,10 @@ metadata:
name
:
{{
include "ollama.name" .
}}
name
:
{{
include "ollama.name" .
}}
labels
:
labels
:
{{
- include "ollama.labels" . | nindent 4
}}
{{
- include "ollama.labels" . | nindent 4
}}
{{
- with .Values.ollama.service.annotations
}}
annotations
:
{{
- toYaml . | nindent 4
}}
{{
- end
}}
spec
:
spec
:
selector
:
selector
:
{{
- include "ollama.selectorLabels" . | nindent 4
}}
{{
- include "ollama.selectorLabels" . | nindent 4
}}
...
...
kubernetes/helm/templates/ollama-statefulset.yaml
View file @
f82347ea
...
@@ -4,6 +4,10 @@ metadata:
...
@@ -4,6 +4,10 @@ metadata:
name
:
{{
include "ollama.name" .
}}
name
:
{{
include "ollama.name" .
}}
labels
:
labels
:
{{
- include "ollama.labels" . | nindent 4
}}
{{
- include "ollama.labels" . | nindent 4
}}
{{
- with .Values.ollama.annotations
}}
annotations
:
{{
- toYaml . | nindent 4
}}
{{
- end
}}
spec
:
spec
:
serviceName
:
{{
include "ollama.name" .
}}
serviceName
:
{{
include "ollama.name" .
}}
replicas
:
{{
.Values.ollama.replicaCount
}}
replicas
:
{{
.Values.ollama.replicaCount
}}
...
@@ -14,6 +18,10 @@ spec:
...
@@ -14,6 +18,10 @@ spec:
metadata
:
metadata
:
labels
:
labels
:
{{
- include "ollama.labels" . | nindent 8
}}
{{
- include "ollama.labels" . | nindent 8
}}
{{
- with .Values.ollama.podAnnotations
}}
annotations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
spec
:
spec
:
containers
:
containers
:
-
name
:
{{
include "ollama.name" .
}}
-
name
:
{{
include "ollama.name" .
}}
...
...
kubernetes/helm/templates/webui-deployment.yaml
View file @
f82347ea
...
@@ -4,6 +4,10 @@ metadata:
...
@@ -4,6 +4,10 @@ metadata:
name
:
{{
include "open-webui.name" .
}}
name
:
{{
include "open-webui.name" .
}}
labels
:
labels
:
{{
- include "open-webui.labels" . | nindent 4
}}
{{
- include "open-webui.labels" . | nindent 4
}}
{{
- with .Values.webui.annotations
}}
annotations
:
{{
- toYaml . | nindent 4
}}
{{
- end
}}
spec
:
spec
:
replicas
:
{{
.Values.webui.replicaCount
}}
replicas
:
{{
.Values.webui.replicaCount
}}
selector
:
selector
:
...
@@ -13,6 +17,10 @@ spec:
...
@@ -13,6 +17,10 @@ spec:
metadata
:
metadata
:
labels
:
labels
:
{{
- include "open-webui.labels" . | nindent 8
}}
{{
- include "open-webui.labels" . | nindent 8
}}
{{
- with .Values.webui.podAnnotations
}}
annotations
:
{{
- toYaml . | nindent 8
}}
{{
- end
}}
spec
:
spec
:
containers
:
containers
:
-
name
:
{{
.Chart.Name
}}
-
name
:
{{
.Chart.Name
}}
...
...
kubernetes/helm/templates/webui-ingress.yaml
View file @
f82347ea
...
@@ -5,10 +5,10 @@ metadata:
...
@@ -5,10 +5,10 @@ metadata:
name
:
{{
include "open-webui.name" .
}}
name
:
{{
include "open-webui.name" .
}}
labels
:
labels
:
{{
- include "open-webui.labels" . | nindent 4
}}
{{
- include "open-webui.labels" . | nindent 4
}}
{{
- with .Values.webui.ingress.annotations
}}
{{
- with .Values.webui.ingress.annotations
}}
annotations
:
annotations
:
{{
- toYaml . | nindent 4
}}
{{
- toYaml . | nindent 4
}}
{{
- end
}}
{{
- end
}}
spec
:
spec
:
rules
:
rules
:
-
host
:
{{
.Values.webui.ingress.host
}}
-
host
:
{{
.Values.webui.ingress.host
}}
...
...
kubernetes/helm/values.yaml
View file @
f82347ea
ollama
:
ollama
:
annotations
:
{}
podAnnotations
:
{}
replicaCount
:
1
replicaCount
:
1
image
:
image
:
repository
:
ollama/ollama
repository
:
ollama/ollama
...
@@ -20,6 +22,7 @@ ollama:
...
@@ -20,6 +22,7 @@ ollama:
effect
:
NoSchedule
effect
:
NoSchedule
service
:
service
:
type
:
ClusterIP
type
:
ClusterIP
annotations
:
{}
port
:
80
port
:
80
containerPort
:
11434
containerPort
:
11434
gpu
:
gpu
:
...
@@ -27,6 +30,8 @@ ollama:
...
@@ -27,6 +30,8 @@ ollama:
enabled
:
false
enabled
:
false
webui
:
webui
:
annotations
:
{}
podAnnotations
:
{}
replicaCount
:
1
replicaCount
:
1
image
:
image
:
repository
:
ghcr.io/open-webui/open-webui
repository
:
ghcr.io/open-webui/open-webui
...
@@ -52,6 +57,7 @@ webui:
...
@@ -52,6 +57,7 @@ webui:
tolerations
:
[]
tolerations
:
[]
service
:
service
:
type
:
ClusterIP
type
:
ClusterIP
annotations
:
{}
port
:
80
port
:
80
containerPort
:
8080
containerPort
:
8080
nodePort
:
"
"
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