webui-service.yaml 850 Bytes
Newer Older
1
2
3
apiVersion: v1
kind: Service
metadata:
duhow's avatar
duhow committed
4
  name: {{ include "open-webui.name" . }}
duhow's avatar
duhow committed
5
6
  labels:
    {{- include "open-webui.labels" . | nindent 4 }}
7
8
9
    {{- with .Values.webui.service.labels }}
    {{- toYaml . | nindent 4 }}
    {{- end }}
duhow's avatar
duhow committed
10
11
12
13
  {{- with .Values.webui.service.annotations }}
  annotations:
    {{- toYaml . | nindent 4 }}
  {{- end }}
14
15
spec:
  selector:
duhow's avatar
duhow committed
16
    {{- include "open-webui.selectorLabels" . | nindent 4 }}
17
  type: {{ .Values.webui.service.type | default "ClusterIP" }}
18
  ports:
duhow's avatar
duhow committed
19
  - protocol: TCP
duhow's avatar
duhow committed
20
    name: http
21
    port: {{ .Values.webui.service.port }}
duhow's avatar
duhow committed
22
    targetPort: http
23
24
    {{- if .Values.webui.service.nodePort }}
    nodePort: {{ .Values.webui.service.nodePort | int }}
duhow's avatar
duhow committed
25
    {{- end }}
26
27
28
29
  {{- if .Values.webui.service.loadBalancerClass }}
  loadBalancerClass: {{ .Values.webui.service.loadBalancerClass | quote }}
  {{- end }}