feat: add feature to configure ollama service labels via values

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.
This commit is contained in:
stepanbaghdasaryan 2024-05-07 22:10:29 +02:00
parent 725043ee13
commit 603ee8cde5
No known key found for this signature in database
GPG Key ID: 8489D754D4708920
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,9 @@ 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.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.ollama.service.annotations }} {{- with .Values.ollama.service.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}

View File

@ -29,6 +29,7 @@ ollama:
service: service:
type: ClusterIP type: ClusterIP
annotations: {} annotations: {}
labels: {}
port: 80 port: 80
containerPort: 11434 containerPort: 11434
gpu: gpu: