// Module included in the following assemblies:
//
// assembly-zookeeper-replicas.adoc

[id='ref-zookeeper-replicas-{context}']
= Number of ZooKeeper nodes

The number of ZooKeeper nodes can be configured using the `replicas` property in `Kafka.spec.zookeeper`.

.An example showing replicas configuration
[source,yaml,subs="attributes+"]
----
apiVersion: {KafkaApiVersion}
kind: Kafka
metadata:
  name: my-cluster
spec:
  kafka:
    # ...
  zookeeper:
    # ...
    replicas: 3
    # ...
----