<p>I'm researching ways I can integrate Kafka into my micro service based Kubernetes architecture that I plan on hosting at some point. The current way I see to do this based on an article is linked <a href="https://levelup.gitconnected.com/how-to-deploy-apache-kafka-with-kubernetes-9bd5caf7694f" rel="nofollow noreferrer">here</a>. But this will not work out for the one reason that I have to manually enter the NodePort IP I have been assigned while deploying the zookeeper service. What would be the best way to connect my Kafka and zookeeper Kubernetes services without manually entering the zookeeper's NodePort address? Or would the best approach be to not use Kubernetes at all for this?</p>

flimsy
<p>That blog is using <code>wurstmeister/*</code> images, which are not recommended to be used in Kubernetes if you want it to &quot;just work&quot;</p>
<p>Use a Helm Chart, or Operator such as <a href="https://strimzi.io" rel="nofollow noreferrer">https://strimzi.io</a> for a simple deployment within k8s; otherwise, use a cloud hosted Kafka instead to more quickly get started.</p>
<p>Besides, the Zookeeper IP should never have been used. It should be <code>zookeeper-service.svc.cluster.local</code>. Refer <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/" rel="nofollow noreferrer">K8s DNS docs</a></p>
