Share via


KafkaBuilderExtensions Class

Definition

Provides extension methods for adding Kafka resources to the application model.

public static class KafkaBuilderExtensions
type KafkaBuilderExtensions = class
Public Module KafkaBuilderExtensions
Inheritance
KafkaBuilderExtensions

Methods

AddKafka(IDistributedApplicationBuilder, String, Nullable<Int32>)

Adds a Kafka resource to the application. A container is used for local development. This version the package defaults to the 7.6.1 tag of the confluentinc/confluent-local container image.

WithDataBindMount(IResourceBuilder<KafkaServerResource>, String, Boolean)

Adds a bind mount for the data folder to a Kafka container resource.

WithDataVolume(IResourceBuilder<KafkaServerResource>, String, Boolean)

Adds a named volume for the data folder to a Kafka container resource.

Applies to