次の方法で共有


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.

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.

WithHostPort(IResourceBuilder<KafkaUIContainerResource>, Nullable<Int32>)

Configures the host port that the KafkaUI resource is exposed on instead of using randomly assigned port.

WithKafkaUI(IResourceBuilder<KafkaServerResource>, Action<IResourceBuilder<KafkaUIContainerResource>>, String)

Adds a Kafka UI container to the application.

Applies to