Skip to content

Commit

Permalink
feat: add feature to configure ollama service labels via values
Browse files Browse the repository at this point in the history
This commit adds the ability to configure labels for the ollama service in the values.yaml file. Users can now specify custom labels for the ollama service, providing greater flexibility in managing its configuration.
  • Loading branch information
stepanbaghdasaryan committed May 7, 2024
1 parent 725043e commit 603ee8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/open-webui/templates/ollama-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
name: {{ include "ollama.name" . }}
labels:
{{- include "ollama.labels" . | nindent 4 }}
{{- with .Values.ollama.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.ollama.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
3 changes: 2 additions & 1 deletion charts/open-webui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ollama:
service:
type: ClusterIP
annotations: {}
labels: {}
port: 80
containerPort: 11434
gpu:
Expand Down Expand Up @@ -72,4 +73,4 @@ webui:
containerPort: 8080
nodePort: ""
labels: {}
loadBalancerClass: ""
loadBalancerClass: ""

0 comments on commit 603ee8c

Please sign in to comment.