Skip to content

Commit

Permalink
Explain Strimzi dev service for Kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Feb 2, 2022
1 parent de9111e commit 6828a05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 8 additions & 3 deletions docs/src/main/asciidoc/kafka-dev-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,17 @@ Note that the Kafka advertised address is automatically configured with the chos

== Configuring the image

Dev Services for Kafka only support Redpanda and Strimzi (in https://github.com/apache/kafka/blob/trunk/config/kraft/README.md[Kraft] mode).
Dev Services for Kafka supports https://redpanda.com[Redpanda] and https://strimzi.io[Strimzi] (in https://github.com/apache/kafka/blob/trunk/config/kraft/README.md[Kraft] mode).

It defaults to `vectorized/redpanda` images.
Redpanda is a Kafka compatible event streaming platform.
Because it provides a faster startup time dev services defaults to `vectorized/redpanda` images.
You can select any version from https://hub.docker.com/r/vectorized/redpanda.

For Strimzi, you need to set the image name property, with a Kafka version which has Kraft support (2.8.1 and higher):
Strimzi provides container images and Operators for running Apache Kafka on Kubernetes.
While Strimzi is optimized for Kubernetes, the images work perfectly in classic container environments.
Strimzi container images run "genuine" Kafka broker on JVM, which is slower to start.

For Strimzi, you can select any image with a Kafka version which has Kraft support (2.8.1 and higher) from https://quay.io/repository/strimzi-test-container/test-container?tab=tags

[source, properties]
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ private KafkaBroker startKafka(KafkaDevServiceCfg config,
if (config.imageName.contains("strimzi")) {
StrimziKafkaContainer container = new StrimziKafkaContainer(config.imageName)
.withBrokerId(1)
.withKraft();
.withKraft()
.waitForRunning();
ConfigureUtil.configureSharedNetwork(container, "kafka");
if (config.serviceName != null) {
container.withLabel(DevServicesKafkaProcessor.DEV_SERVICE_LABEL, config.serviceName);
Expand Down

0 comments on commit 6828a05

Please sign in to comment.