From b26ae6b391874475afb9fe2341605c6e82abd9c2 Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Thu, 1 Apr 2021 10:42:24 -0400 Subject: [PATCH 1/2] add nodePort support --- charts/kafka-ui/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 19db6082882..5d20e6d1d37 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -41,6 +41,8 @@ securityContext: {} service: type: ClusterIP port: 80 + # if you want to force a specific nodePort. Must be use with service.type=NodePort + # nodePort: ingress: enabled: false From dad6ff4bf580602f1378b0f7acd432f7a57d8fe0 Mon Sep 17 00:00:00 2001 From: Sebastien Dionne Date: Thu, 1 Apr 2021 10:43:40 -0400 Subject: [PATCH 2/2] add nodePort support --- charts/kafka-ui/templates/service.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/kafka-ui/templates/service.yaml b/charts/kafka-ui/templates/service.yaml index 339bb35a5a5..3dba7bd0359 100644 --- a/charts/kafka-ui/templates/service.yaml +++ b/charts/kafka-ui/templates/service.yaml @@ -11,5 +11,8 @@ spec: targetPort: http protocol: TCP name: http + {{- if (and (eq .Values.service.type "NodePort") .Values.service.nodePort) }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: {{- include "kafka-ui.selectorLabels" . | nindent 4 }}