mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
24 lines
524 B
YAML
24 lines
524 B
YAML
{{- if not .Values.ollama.externalHost }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "ollama.name" . }}
|
|
labels:
|
|
{{- include "ollama.labels" . | nindent 4 }}
|
|
{{- with .Values.ollama.service.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
selector:
|
|
{{- include "ollama.selectorLabels" . | nindent 4 }}
|
|
{{- with .Values.ollama.service }}
|
|
type: {{ .type }}
|
|
ports:
|
|
- protocol: TCP
|
|
name: http
|
|
port: {{ .port }}
|
|
targetPort: http
|
|
{{- end }}
|
|
{{- end }}
|