Skip to content

Commit

Permalink
feat(charts/kubeai/charts/openwebui): Enhance service configuration t…
Browse files Browse the repository at this point in the history
…o support NodePort and LoadBalancer with optional httpNodePort
  • Loading branch information
MRColorR committed Jan 8, 2025
1 parent 82ef9a5 commit 8df3260
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions charts/kubeai/charts/openwebui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
{{ if or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer") }}
{{ if .Values.service.httpNodePort }}
nodePort: {{ .Values.service.httpNodePort }}
{{ end }}
{{ end }}
selector:
{{- include "openwebui.selectorLabels" . | nindent 4 }}
2 changes: 2 additions & 0 deletions charts/kubeai/charts/openwebui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ securityContext: {}
service:
type: ClusterIP
port: 80
# openwebui nodeport (Optional): Specify NodePort for openwebui if Nodeport or LoadBalancer service type (leave empty for random assignment)
httpNodePort: ""

ingress:
enabled: false
Expand Down

0 comments on commit 8df3260

Please sign in to comment.