<p>Can anyone share me the yaml file for creating kafka cluster with two kafka broker and zookeeper cluster with 3 servers.I'm new to kubernetes.</p>

Radha
<p>I recommend you to try <a href="https://github.com/strimzi/strimzi-kafka-operator" rel="nofollow noreferrer">Strimzi Kafka Operator</a>. Using it you can define a Kafka cluster just like other Kubernetes object - writing a yaml file. Moreover, also users, topics and Kafka Connect cluster are just a k8s objects. Some (by not all!) features of Strimzi Kafka Operator:</p>

<ul>
<li>Secure communication between brokers and between brokers and zookeeper with TLS</li>
<li>Ability to expose the cluster outside k8s cluster</li>
<li>Deployable as a helm chart (it simplifies things a lot)</li>
<li>Rolling updates when changing cluster configuration</li>
<li>Smooth scaling out</li>
<li>Ready to monitor the cluster using <a href="https://prometheus.io" rel="nofollow noreferrer">Prometheus</a> and <a href="https://grafana.com" rel="nofollow noreferrer">Grafana</a>.</li>
</ul>

<p>It's worth to mention a <a href="https://strimzi.io/docs/latest/" rel="nofollow noreferrer">great documentation</a>.</p>

<p>Creating a Kafka cluster is as simple as applying a Kubernetes manifest like this:</p>

<pre><code>apiVersion: kafka.strimzi.io/v1beta1
kind: Kafka
metadata:
  name: my-cluster
spec:
  kafka:
    version: 2.2.0
    replicas: 3
    listeners:
      plain: {}
      tls: {}
    config:
      offsets.topic.replication.factor: 3
      transaction.state.log.replication.factor: 3
      transaction.state.log.min.isr: 2
      log.message.format.version: "2.2"
    storage:
      type: jbod
      volumes:
      - id: 0
        type: persistent-claim
        size: 100Gi
        deleteClaim: false
  zookeeper:
    replicas: 3
    storage:
      type: persistent-claim
      size: 100Gi
      deleteClaim: false
  entityOperator:
    topicOperator: {}
    userOperator: {}
</code></pre>
