2023-12-24 16:34:33 +01:00
|
|
|
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 }}
|
2024-03-08 09:09:21 +01:00
|
|
|
{{- with .Values.webui.service.labels }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2024-02-23 23:58:10 +01:00
|
|
|
{{- with .Values.webui.service.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2023-12-24 16:34:33 +01:00
|
|
|
spec:
|
|
|
|
selector:
|
2024-02-19 22:23:36 +01:00
|
|
|
{{- include "open-webui.selectorLabels" . | nindent 4 }}
|
2024-03-08 09:09:21 +01:00
|
|
|
type: {{ .Values.webui.service.type | default "ClusterIP" }}
|
2023-12-24 16:34:33 +01:00
|
|
|
ports:
|
2024-02-19 22:23:36 +01:00
|
|
|
- protocol: TCP
|
2024-02-23 23:58:10 +01:00
|
|
|
name: http
|
2024-03-08 09:09:21 +01:00
|
|
|
port: {{ .Values.webui.service.port }}
|
2024-02-23 11:09:25 +01:00
|
|
|
targetPort: http
|
2024-03-08 09:09:21 +01:00
|
|
|
{{- if .Values.webui.service.nodePort }}
|
|
|
|
nodePort: {{ .Values.webui.service.nodePort | int }}
|
2024-02-19 22:23:36 +01:00
|
|
|
{{- end }}
|
2024-03-08 09:09:21 +01:00
|
|
|
{{- if .Values.webui.service.loadBalancerClass }}
|
|
|
|
loadBalancerClass: {{ .Values.webui.service.loadBalancerClass | quote }}
|
|
|
|
{{- end }}
|
|
|
|
|