diff --git a/helm/kagent/templates/ui-service.yaml b/helm/kagent/templates/ui-service.yaml index 526aa2464..b3adee559 100644 --- a/helm/kagent/templates/ui-service.yaml +++ b/helm/kagent/templates/ui-service.yaml @@ -10,6 +10,9 @@ spec: ports: - port: {{ .Values.ui.service.ports.port }} targetPort: {{ .Values.ui.service.ports.targetPort }} + {{- if and (eq .Values.ui.service.type "NodePort") .Values.ui.service.ports.nodePort }} + nodePort: {{ .Values.ui.service.ports.nodePort }} + {{- end }} protocol: TCP name: ui selector: diff --git a/helm/kagent/values.yaml b/helm/kagent/values.yaml index e2bdf2971..f279e9388 100644 --- a/helm/kagent/values.yaml +++ b/helm/kagent/values.yaml @@ -204,6 +204,7 @@ ui: ports: port: 8080 targetPort: 8080 + nodePort: null env: {} # Additional configuration key-value pairs for the ui ConfigMap # -- Pod-level security context for the UI pod. Overrides the global podSecurityContext. # @default -- (uses global podSecurityContext)