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

20 lines
433 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
2024-02-19 21:58:25 +01:00
name: {{ include "open-webui.name" . }}
2024-02-19 22:23:36 +01:00
labels:
{{- include "open-webui.labels" . | nindent 4 }}
spec:
selector:
2024-02-19 22:23:36 +01:00
{{- include "open-webui.selectorLabels" . | nindent 4 }}
{{- with .Values.webui.service }}
type: {{ .type }}
ports:
2024-02-19 22:23:36 +01:00
- protocol: TCP
2024-02-23 11:09:25 +01:00
port: {{ .port }}
targetPort: http
2024-02-19 22:23:36 +01:00
{{- if .nodePort }}
2024-02-23 11:09:25 +01:00
nodePort: {{ .nodePort | int }}
2024-02-19 22:23:36 +01:00
{{- end }}
{{- end }}