Este contenido no está disponible en el idioma seleccionado.
Chapter 13. GenericKafkaListenerConfiguration schema reference
Used in: GenericKafkaListener
Full list of GenericKafkaListenerConfiguration
schema properties
Configuration for Kafka listeners.
13.1. brokerCertChainAndKey Copiar enlaceEnlace copiado en el portapapeles!
The brokerCertChainAndKey
property is only used with listeners that have TLS encryption enabled. You can use the property to provide your own Kafka listener certificates.
Example configuration for a loadbalancer
external listener with TLS encryption enabled
13.2. externalTrafficPolicy Copiar enlaceEnlace copiado en el portapapeles!
The externalTrafficPolicy
property is used with loadbalancer
and nodeport
listeners. When exposing Kafka outside of OpenShift you can choose Local
or Cluster
. Local
avoids hops to other nodes and preserves the client IP, whereas Cluster
does neither. The default is Cluster
.
13.3. loadBalancerSourceRanges Copiar enlaceEnlace copiado en el portapapeles!
The loadBalancerSourceRanges
property is only used with loadbalancer
listeners. When exposing Kafka outside of OpenShift use source ranges, in addition to labels and annotations, to customize how a service is created.
Example source ranges configured for a loadbalancer listener
13.4. class Copiar enlaceEnlace copiado en el portapapeles!
The class
property is only used with ingress
listeners. You can configure the Ingress
class using the class
property.
Example of an external listener of type ingress
using Ingress
class nginx-internal
13.5. preferredNodePortAddressType Copiar enlaceEnlace copiado en el portapapeles!
The preferredNodePortAddressType
property is only used with nodeport
listeners.
Use the preferredNodePortAddressType
property in your listener configuration to specify the first address type checked as the node address. This property is useful, for example, if your deployment does not have DNS support, or you only want to expose a broker internally through an internal DNS or IP address. If an address of this type is found, it is used. If the preferred address type is not found, AMQ Streams proceeds through the types in the standard order of priority:
- ExternalDNS
- ExternalIP
- Hostname
- InternalDNS
- InternalIP
Example of an external listener configured with a preferred node port address type
13.6. useServiceDnsDomain Copiar enlaceEnlace copiado en el portapapeles!
The useServiceDnsDomain
property is only used with internal
and cluster-ip
listeners. It defines whether the fully-qualified DNS names that include the cluster service suffix (usually .cluster.local
) are used. With useServiceDnsDomain
set as false
, the advertised addresses are generated without the service suffix; for example, my-cluster-kafka-0.my-cluster-kafka-brokers.myproject.svc
. With useServiceDnsDomain
set as true
, the advertised addresses are generated with the service suffix; for example, my-cluster-kafka-0.my-cluster-kafka-brokers.myproject.svc.cluster.local
. Default is false
.
Example of an internal listener configured to use the Service DNS domain
If your OpenShift cluster uses a different service suffix than .cluster.local
, you can configure the suffix using the KUBERNETES_SERVICE_DNS_DOMAIN
environment variable in the Cluster Operator configuration.
13.7. GenericKafkaListenerConfiguration schema properties Copiar enlaceEnlace copiado en el portapapeles!
Property | Description |
---|---|
brokerCertChainAndKey |
Reference to the |
externalTrafficPolicy |
Specifies whether the service routes external traffic to node-local or cluster-wide endpoints. |
string (one of [Local, Cluster]) | |
loadBalancerSourceRanges |
A list of CIDR ranges (for example |
string array | |
bootstrap | Bootstrap configuration. |
brokers | Per-broker configurations. |
ipFamilyPolicy |
Specifies the IP Family Policy used by the service. Available options are |
string (one of [RequireDualStack, SingleStack, PreferDualStack]) | |
ipFamilies |
Specifies the IP Families used by the service. Available options are |
string (one or more of [IPv6, IPv4]) array | |
createBootstrapService |
Whether to create the bootstrap service or not. The bootstrap service is created by default (if not specified differently). This field can be used with the |
boolean | |
class |
Configures a specific class for |
string | |
finalizers |
A list of finalizers which will be configured for the |
string array | |
maxConnectionCreationRate | The maximum connection creation rate we allow in this listener at any time. New connections will be throttled if the limit is reached. |
integer | |
maxConnections | The maximum number of connections we allow for this listener in the broker at any time. New connections are blocked if the limit is reached. |
integer | |
preferredNodePortAddressType |
Defines which address type should be used as the node address. Available types are:
This field is used to select the preferred address type, which is checked first. If no address is found for this address type, the other types are checked in the default order. This field can only be used with |
string (one of [ExternalDNS, ExternalIP, Hostname, InternalIP, InternalDNS]) | |
useServiceDnsDomain |
Configures whether the OpenShift service DNS domain should be used or not. If set to |
boolean |