Skip to content

How can I explicitly specify NodePort int for Kafka listener / kafka-external-bootstrap ? #5845

Discussion options

You must be logged in to vote

Answering my own question: set kafka.spec.listeners[x]. configuration.bootstrap.nodePort

as described in https://strimzi.io/blog/2019/04/23/accessing-kafka-part-2/#pre-configured-node-port-numbers

spec:
  kafka:
    version: {{ .Values.kafka.version }}
    replicas: {{ .Values.kafka.replicas }}
    listeners:
      - name: plain
        port: 9092
        type: internal
        tls: false
      - name: tls
        port: 9093
        type: internal
        tls: true
      - name: external
        port: 9094
        type: nodeport
        tls: false
        configuration:
          bootstrap:
            nodePort: 31094

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brsolomon-deloitte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant