title: Not able to connect to kafka brokers
body: <p>I've deployed <a href="https://github.com/confluentinc/cp-helm-charts/tree/master/charts/cp-kafka" rel="nofollow noreferrer">https://github.com/confluentinc/cp-helm-charts/tree/master/charts/cp-kafka</a> on my on prem k8s cluster. 
  I'm trying to expose it my using a TCP controller with nginx.</p>
  
  <p>My TCP nginx configmap looks like </p>
  
  <pre><code>data:
    "&lt;zookeper-tcp-port&gt;": &lt;namespace&gt;/cp-zookeeper:2181
    "&lt;kafka-tcp-port&gt;": &lt;namespace&gt;/cp-kafka:9092
  </code></pre>
  
  <p>And i've made the corresponding entry in my nginx ingress controller</p>
  
  <pre><code>  - name: &lt;zookeper-tcp-port&gt;-tcp
      port: &lt;zookeper-tcp-port&gt;
      protocol: TCP
      targetPort: &lt;zookeper-tcp-port&gt;-tcp
    - name: &lt;kafka-tcp-port&gt;-tcp
      port: &lt;kafka-tcp-port&gt;
      protocol: TCP
      targetPort: &lt;kafka-tcp-port&gt;-tcp
  </code></pre>
  
  <p>Now I'm trying to connect to my kafka instance. 
  When i just try to connect to the IP and port using kafka tools, I get the error message </p>
  
  <pre><code>Unable to determine broker endpoints from Zookeeper.
  One or more brokers have multiple endpoints for protocol PLAIN...
  Please proved bootstrap.servers value in advanced settings
  [&lt;cp-broker-address-0&gt;.cp-kafka-headless.&lt;namespace&gt;:&lt;port&gt;][&lt;ip&gt;]
  </code></pre>
  
  <p>When I enter, what I assume are the correct broker addresses (I've tried them all...) I get a time out. There are no logs coming from the nginx controler excep </p>
  
  <pre><code>[08/Apr/2020:15:51:12 +0000]TCP200000.000
  [08/Apr/2020:15:51:12 +0000]TCP200000.000
  [08/Apr/2020:15:51:14 +0000]TCP200000.001
  </code></pre>
  
  <p>From the pod <code>kafka-zookeeper-0</code> I'm gettting loads of </p>
  
  <pre><code>[2020-04-08 15:52:02,415] INFO Accepted socket connection from /&lt;ip:port&gt; (org.apache.zookeeper.server.NIOServerCnxnFactory)
  [2020-04-08 15:52:02,415] WARN Unable to read additional data from client sessionid 0x0, likely client has closed socket (org.apache.zookeeper.server.NIOServerCnxn)
  [2020-04-08 15:52:02,415] INFO Closed socket connection for client /&lt;ip:port&gt;  (no session established for client) (org.apache.zookeeper.server.NIOServerCnxn)
  </code></pre>
  
  <p>Though I'm not sure these have anything to do with it?</p>
  
  <p>Any ideas on what I'm doing wrong? 
  Thanks in advance. </p>