open-webui/kubernetes/helm/templates/ollama-service.yaml

24 lines
524 B
YAML
Raw Normal View History

2024-04-09 06:43:08 +02:00
{{- if not .Values.ollama.externalHost }}
apiVersion: v1
kind: Service
metadata:
2024-02-19 21:58:25 +01:00
name: {{ include "ollama.name" . }}
2024-02-19 22:23:36 +01:00
labels:
{{- include "ollama.labels" . | nindent 4 }}
2024-02-19 23:22:10 +01:00
{{- with .Values.ollama.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
2024-02-19 22:23:36 +01:00
{{- include "ollama.selectorLabels" . | nindent 4 }}
{{- with .Values.ollama.service }}
type: {{ .type }}
ports:
- protocol: TCP
2024-02-19 22:23:36 +01:00
name: http
2024-02-23 11:09:25 +01:00
port: {{ .port }}
targetPort: http
2024-02-19 22:23:36 +01:00
{{- end }}
2024-04-09 06:43:08 +02:00
{{- end }}