Skip to content

Commit 20ca766

Browse files
authored
Remove deprecated kafka container examples from docs (#10712)
1 parent b533d5f commit 20ca766

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

docs/modules/kafka.md

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,18 @@ Currently, two different Kafka images are supported:
1515
## Benefits
1616

1717
* Running a single node Kafka installation with just one line of code
18-
* No need to manage external Zookeeper installation, required by Kafka. But see [below](#zookeeper)
18+
* No need to manage external Zookeeper installation, required by Kafka.
1919

2020
## Example
2121

22-
### Using org.testcontainers.containers.KafkaContainer
22+
### Using org.testcontainers.kafka.KafkaContainer
2323

2424
Create a `KafkaContainer` to use it in your tests:
2525

2626
<!--codeinclude-->
27-
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/containers/KafkaContainerTest.java) inside_block:constructorWithVersion
27+
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/KafkaContainerTest.java) inside_block:constructorWithVersion
2828
<!--/codeinclude-->
2929

30-
The correspondence between Confluent Platform versions and Kafka versions can be seen [in Confluent documentation](https://docs.confluent.io/current/installation/versions-interoperability.html#cp-and-apache-kafka-compatibility)
31-
3230
Now your tests or any other process running on your machine can get access to running Kafka broker by using the following bootstrap server location:
3331

3432
<!--codeinclude-->
@@ -46,26 +44,8 @@ Create a `ConfluentKafkaContainer` to use it in your tests:
4644
[Creating a ConfluentKafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/ConfluentKafkaContainerTest.java) inside_block:constructorWithVersion
4745
<!--/codeinclude-->
4846

49-
### Using org.testcontainers.kafka.KafkaContainer
50-
51-
Create a `KafkaContainer` to use it in your tests:
52-
53-
<!--codeinclude-->
54-
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/KafkaContainerTest.java) inside_block:constructorWithVersion
55-
<!--/codeinclude-->
56-
5747
## Options
5848
59-
### <a name="zookeeper"></a> Using external Zookeeper
60-
61-
!!! note
62-
Only available for `org.testcontainers.containers.KafkaContainer`
63-
64-
If for some reason you want to use an externally running Zookeeper, then just pass its location during construction:
65-
<!--codeinclude-->
66-
[External Zookeeper](../../modules/kafka/src/test/java/org/testcontainers/containers/KafkaContainerTest.java) inside_block:withExternalZookeeper
67-
<!--/codeinclude-->
68-
6949
### Using Kraft mode
7050

7151
!!! note

0 commit comments

Comments
 (0)