<p>What is the suggested volume method to use for zookeeper &amp; broker for Apache Kafka running in the kubernetes environment?</p>

<p>I'm running a 3 node cluster and tried using <a href="http://refer:%20https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">persistent volume</a>, but is there any recommended volume method by Apache Kafka? </p>

Pooja
<p>You can use helm charts to install Apache Kafka on Kubernetes (this is the recommended way by Confluent). You can find the charts <a href="https://github.com/confluentinc/cp-helm-charts" rel="nofollow noreferrer">here</a>. Also, you have in that charts some default persistence sizes for Kafka. Also Confluent recommends using Shared Storage rather than Local Storage. You can find more details <a href="https://www.confluent.io/blog/apache-kafka-kubernetes-could-you-should-you" rel="nofollow noreferrer">here</a> and <a href="https://www.confluent.io/wp-content/uploads/Recommendations-for-Deploying-Apache-Kafka-on-Kubernetes.pdf" rel="nofollow noreferrer">here</a>.</p>

<p>The recommended storage is: 4gb for Zookeeper and for Kafka you have: <code>r4.xlarge</code> on AWS, <code>n1-highmem-4</code> on GCP, <code>DS5v2</code> on Azure and <strong>12 core</strong>, <strong>128GB RAM</strong>, <strong>12 disks server on-premises</strong>. You cand find more <a href="https://www.confluent.io/wp-content/uploads/apache-kafka-confluent-enterprise-ref-architecture.pdf" rel="nofollow noreferrer">here</a>.</p>
