webui-service.yaml 433 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
spec:
  selector:
duhow's avatar
duhow committed
9
10
11
    {{- include "open-webui.selectorLabels" . | nindent 4 }}
{{- with .Values.webui.service }}
  type: {{ .type }}
12
  ports:
duhow's avatar
duhow committed
13
  - protocol: TCP
duhow's avatar
duhow committed
14
15
    port: {{ .port }}
    targetPort: http
duhow's avatar
duhow committed
16
    {{- if .nodePort }}
duhow's avatar
duhow committed
17
    nodePort: {{ .nodePort | int }}
duhow's avatar
duhow committed
18
19
    {{- end }}
{{- end }}