forked from open-webui/open-webui
main #2
2 changed files with 13 additions and 6 deletions
|
@ -4,6 +4,9 @@ metadata:
|
||||||
name: {{ include "open-webui.name" . }}
|
name: {{ include "open-webui.name" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "open-webui.labels" . | nindent 4 }}
|
{{- include "open-webui.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.webui.service.labels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.webui.service.annotations }}
|
{{- with .Values.webui.service.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
@ -11,14 +14,16 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
{{- include "open-webui.selectorLabels" . | nindent 4 }}
|
{{- include "open-webui.selectorLabels" . | nindent 4 }}
|
||||||
{{- with .Values.webui.service }}
|
type: {{ .Values.webui.service.type | default "ClusterIP" }}
|
||||||
type: {{ .type }}
|
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
port: {{ .port }}
|
port: {{ .Values.webui.service.port }}
|
||||||
targetPort: http
|
targetPort: http
|
||||||
{{- if .nodePort }}
|
{{- if .Values.webui.service.nodePort }}
|
||||||
nodePort: {{ .nodePort | int }}
|
nodePort: {{ .Values.webui.service.nodePort | int }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.webui.service.loadBalancerClass }}
|
||||||
|
loadBalancerClass: {{ .Values.webui.service.loadBalancerClass | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
|
@ -70,3 +70,5 @@ webui:
|
||||||
port: 80
|
port: 80
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
nodePort: ""
|
nodePort: ""
|
||||||
|
labels: {}
|
||||||
|
loadBalancerClass: ""
|
||||||
|
|
Loading…
Reference in a new issue