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

30 lines
850 B
YAML
Raw Normal View History

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