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