// Module included in the following assemblies:
//
// assembly-configuring-kafka-listeners.adoc

[id='proc-configuring-kafka-listeners-{context}']
= Configuring Kafka listeners

.Prerequisites

* A Kubernetes cluster
* A running Cluster Operator

.Procedure

. Edit the `listeners` property in the `Kafka.spec.kafka` resource.
+
An example configuration of the plain (unencrypted) listener without authentication:
+
[source,yaml,subs=attributes+]
----
apiVersion: {KafkaApiVersion}
kind: Kafka
spec:
  kafka:
    # ...
    listeners:
      plain: {}
    # ...
  zookeeper:
    # ...
----

. Create or update the resource.
+
This can be done using `kubectl apply`:
[source,shell,subs=+quotes]
kubectl apply -f _your-file_

.Additional resources
* For more information about the schema, see xref:type-KafkaListeners-reference[`KafkaListeners` schema reference].
