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

[id='con-kafka-listeners-{context}']
= Kafka listeners

You can configure Kafka broker listeners using the `listeners` property in the `Kafka.spec.kafka` resource.
The `listeners` property contains three sub-properties:

* `plain`
* `tls`
* `external`

Each listener will only be defined when the `listeners` object has the given property.

.An example of `listeners` property with all listeners enabled
[source,yaml,subs="attributes+"]
----
# ...
listeners:
  plain: {}
  tls: {}
  external:
    type: loadbalancer
# ...
----

.An example of `listeners` property with only the plain listener enabled
[source,yaml,subs="attributes+"]
----
# ...
listeners:
  plain: {}
# ...
----