Browse Source

add nodePort support (#337)

* add nodePort support
Sebastien Dionne 4 năm trước cách đây
mục cha
commit
7c0cc3bf14
2 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 3 0
      charts/kafka-ui/templates/service.yaml
  2. 2 0
      charts/kafka-ui/values.yaml

+ 3 - 0
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 }}

+ 2 - 0
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