title: Kafka on Kubernetes multi-node
body: <p>So my objective here is to set up a cluster of several kafka-brokers in a distributed fashion. But I can't see the way to make the brokers aware of each other.</p>
  
  <p>As far as i understand, every broker needs a separate ID in their config, which I cannot guarantee or configure if I launch the containers from kubernetes?</p>
  
  <p>They also need to have the same advertised_host?</p>
  
  <p>Are there any parameters I'm missing that would need to be changed for the nodes to discover each other?</p>
  
  <p>Would it be viable to do such a configuration at the end of the Dockerfile with a script? And/or a shared volume?</p>
  
  <p>I'm currently trying to do this with the spotify/kafka-image which has a preconfigured zookeeper+kafka combination, on vanilla Kubernetes.</p>