Skip to content

Commit

Permalink
Remove metrics node port and add with clause to OpenWebUI nodePort
Browse files Browse the repository at this point in the history
  • Loading branch information
nstogner committed Jan 13, 2025
1 parent 5a8ead7 commit 4a72a76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
8 changes: 3 additions & 5 deletions charts/kubeai/charts/openwebui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ spec:
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
{{ if or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer") }}
{{ if .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{ end }}
{{ end }}
{{- with .Values.service.nodePort }}
nodePort: {{ . }}
{{- end }}
selector:
{{- include "openwebui.selectorLabels" . | nindent 4 }}
7 changes: 0 additions & 7 deletions charts/kubeai/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,5 @@ spec:
{{- with .Values.service.nodePort }}
nodePort: {{ . }}
{{- end }}
- name: http-metrics
port: 8080
targetPort: 8080
protocol: TCP
{{- with .Values.service.metricsNodePort }}
nodePort: {{ . }}
{{- end }}
selector:
{{- include "kubeai.selectorLabels" . | nindent 4 }}
2 changes: 0 additions & 2 deletions charts/kubeai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,6 @@ service:
port: 80
# kubeai nodeport (Optional): Specify NodePort for kubeai if Nodeport or LoadBalancer service type (leave empty for random assignment)
nodePort: ""
# metrics nodeport (Optional): Specify a nodePort for Metrics if Nodeport or LoadBalancer service type (leave empty for random assignment)
metricsNodePort: ""

ingress:
enabled: false
Expand Down

0 comments on commit 4a72a76

Please sign in to comment.