2023-12-24 15:34:33 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2024-02-19 20:58:25 +00:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2024-02-19 21:23:36 +00:00
|
|
|
labels:
|
|
|
|
{{- include "open-webui.labels" . | nindent 4 }}
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
2024-02-19 21:23:36 +00:00
|
|
|
{{- include "open-webui.selectorLabels" . | nindent 4 }}
|
|
|
|
{{- with .Values.webui.service }}
|
|
|
|
type: {{ .type }}
|
2023-12-24 15:34:33 +00:00
|
|
|
ports:
|
2024-02-19 21:23:36 +00:00
|
|
|
- protocol: TCP
|
|
|
|
port: {{ .port }}
|
|
|
|
targetPort: {{ .containerPort }}
|
|
|
|
{{- if .nodePort }}
|
|
|
|
nodePort: {{ .nodePort }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|