Skip to content

Commit

Permalink
feat(charts/kubeai): Updated service and value yaml to support NodePo…
Browse files Browse the repository at this point in the history
…rt and LoadBalancer
  • Loading branch information
MRColorR committed Jan 8, 2025
1 parent 6ce5496 commit 82ef9a5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
18 changes: 14 additions & 4 deletions charts/kubeai/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
- port: 8080
{{ if or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer") }}
{{ if .Values.service.httpNodePort }}
nodePort: {{ .Values.service.httpNodePort }}
{{ end }}
{{ end }}
- name: http-metrics
port: 8080
targetPort: 8080
protocol: TCP
name: http-metrics
{{ if or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer") }}
{{ if .Values.service.metricsNodePort }}
nodePort: {{ .Values.service.metricsNodePort }}
{{ end }}
{{ end }}
selector:
{{- include "kubeai.selectorLabels" . | nindent 4 }}
12 changes: 11 additions & 1 deletion charts/kubeai/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ messaging:

# Configure the openwebui subchart.
openwebui:
enabled: true
fullnameOverride: "openwebui"
service:
type: ClusterIP # ClusterIP, NodePort, LoadBalancer
port: 80
# openwebui nodeport (Optional): Specify NodePort for openwebui if Nodeport or LoadBalancer service type (leave empty for random assignment)
httpNodePort: ""
image:
tag: v0.3.19
env:
Expand Down Expand Up @@ -284,8 +290,12 @@ securityContext:
# runAsUser: 1000

service:
type: ClusterIP
type: ClusterIP # ClusterIP, NodePort, LoadBalancer
port: 80
# kubeai nodeport (Optional): Specify NodePort for kubeai if Nodeport or LoadBalancer service type (leave empty for random assignment)
httpNodePort: ""
# 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 82ef9a5

Please sign in to comment.