Skip to content

Commit

Permalink
add nodePort support (provectus#337)
Browse files Browse the repository at this point in the history
* add nodePort support
  • Loading branch information
survivant committed Apr 5, 2021
1 parent 6351cf8 commit f193622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/kafka-ui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 0 deletions charts/kafka-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f193622

Please sign in to comment.