0.20.0
Main Changes since 0.19.0
Note: This is the last version of Strimzi that will support Kubernetes 1.11 and higher. Future versions will support only Kubernetes 1.16 and higher.
- Add support for Kafka 2.5.1 and 2.6.0. Remove support for 2.4.0 and 2.4.1
- Make
listenersconfigurable as an array and add support for more different listeners in single cluster - Remove TLS sidecars from Kafka pods => Kafka now uses native TLS to connect to ZooKeeper
- Updated to Cruise Control 2.5.11, which adds Kafka 2.6.0 support and fixes a previous issue with CPU utilization statistics for containers. As a result, the CPUCapacityGoal has now been enabled.
- Configure Cluster Operator logging using ConfigMap instead of environment variable and support dynamic changes
- Switch to use the
AclAuthorizerclass for thesimpleKafka authorization type.AclAuthorizercontains new features such as the ability to control the amount of authorization logs in the broker logs. - Support dynamic logging configuration of Kafka, Kafka Connect, Kafka Connect S2I and Kafka MirrorMaker2
- Add support for
client.rackproperty for Kafka Connect to usefetch from closest replicafeature. - Add support for configuring
hostAliasesin Pod templates - Cruise Control metrics integration including a new Grafana dashboard
- Improved operators Grafana dashboard
- Add improvements for oauth authentication, and keycloak authorization:
- Support for re-authentication was added, which also enforces access token lifespan on the Kafka client session
- Permission changes through Keycloak Authorization Services are now detected by Kafka Brokers
All changes can be found under the 0.20.0 milestone.
Deprecations and removals
* Deprecation of the old listener configuration
* Removal of monitoring port on Kafka and ZooKeeper related services
* Deprecation of Kafka TLS sidecar configuration
Redesign of the .spec.kafka.listeners section
The .spec.kafka.listeners section of the Kafka CRD has been redesigned to allow configuring more different listeners.
The old listeners object which allowed only configuration of oneplain, one tls, and one external listener is now deprecated and will be removed in the future.
It is replaced with an array allowing configuration of multiple different listeners:
listeners:
- name: local
port: 9092
type: internal
tls: true
- name: external1
port: 9093
type: loadbalancer
tls: true
- name: external2
port: 9094
type: nodeport
tls: trueThis change includes some other changes:
- The
tlsfield is now required. - The former
overridessection is now merged with theconfigurationsection. - The
dnsAnnotationsfield has been renamed toannotationssince we found out it has wider use. - Configuration of
loadBalancerSourceRangesandexternalTrafficPolicyhas been moved into listener configuration. Its use in thetemplatesection is now deprecated. - For
type: internallisteners, you can now use the flaguseServiceDnsDomainto define whether they should use the fully qualified DNS names including the cluster service suffix (usually.cluster.local). This option defaults to false. - All listeners now support configuring the advertised hostname and port.
preferredAddressTypehas been removed topreferredNodePortAddressType.
To convert the old format into the new format with backwards compatibility, you should use following names and types:
- For the old
plainlistener, use the nameplain, port9092and typeinternal. - For the old
tlslistener, use the nametls, port9093and typeinternal. - For the old
externallistener, use the nameexternal, port9094.
For example the following old configuration:
listeners:
plain:
# ...
tls:
# ...
external:
type: loadbalancer
# ...Will look like this in the new format:
listeners:
- name: plain
port: 9092
type: internal
tls: false
- name: tls
port: 9093
type: internal
tls: true
- name: external
port: 9094
type: loadbalancer
tls: trueRemoval of monitoring port on Kafka and ZooKeeper related services
The PodMonitor resource is now used instead of the ServiceMonitor for scraping metrics from Kafka, ZooKeeper, Kafka Connect and so on.
For this reason, we have removed the monitoring port tcp-prometheus (9404) on all the services where it is declared (Kafka bootstrap, ZooKeeper client and so on).
It was already deprecated in the previous 0.19.0 release.
Together with it we have also removed the Prometheus annotations from the services. If you want to add them, you can use the templates.
See here https://strimzi.io/docs/operators/master/using.html#assembly-customizing-kubernetes-resources-str for more details about templates usage.
Finally, the Kafka Exporter service was has been removed because it was used just for the monitoring port.
Deprecation of Kafka TLS sidecar configuration
Since the Kafka TLS sidecar has been removed, the related configuration options in the Kafka custom resource are now deprecated:
.spec.kafka.tlsSidecar.spec.kafka.template.tlsSidecar