Watch Aspire live streamsDocsTry Aspire

RedPandaServerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.6.1
interface RedPandaServerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly adminEndpoint: EndpointReference;
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly internalEndpoint: EndpointReference;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly schemaRegistryEndpoint: EndpointReference;
withConsole(configureContainer?: (obj: RedPandaConsoleContainerResource) => Promise<void>, containerName?: string): RedPandaServerResource;
withDataBindMount(
source: string,
isReadOnly?: boolean): RedPandaServerResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): RedPandaServerResource;
withKafkaUI(configureContainer?: (obj: RedPandaKafkaUiContainerResource) => Promise<void>, containerName?: string): RedPandaServerResource;
}

Properties

propertyadminEndpointEndpointReferenceget
Gets the Admin API HTTP endpoint for the Redpanda broker.
propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the Redpanda broker in the form of `host:port`, suitable for use as the Kafka bootstrap servers value.
propertyhostEndpointReferenceExpressionget
Gets the host of the primary Kafka endpoint.
propertyinternalEndpointEndpointReferenceget
Gets the internal Kafka API endpoint used for container-to-container communication.
propertyportEndpointReferenceExpressionget
Gets the port of the primary Kafka endpoint.
propertyprimaryEndpointEndpointReferenceget
Gets the primary (Kafka API) endpoint for the Redpanda broker. This endpoint is reachable from the host.
propertyschemaRegistryEndpointEndpointReferenceget
Gets the Schema Registry HTTP endpoint for the Redpanda broker.

Methods

methodwithConsolebuilder
Adds a Redpanda Console container to the application, configured to connect to the Redpanda broker.
withConsole(configureContainer?: (obj: RedPandaConsoleContainerResource) => Promise<void>, containerName?: string): RedPandaServerResource
configureContainer(obj: RedPandaConsoleContainerResource) => Promise<void>optionalAn optional callback to configure the Redpanda Console container resource.
containerNamestringoptionalThe name of the container (optional).
RedPandaServerResource
methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a Redpanda container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): RedPandaServerResource
sourcestringThe source directory on the host to mount into the container.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only mount.
RedPandaServerResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a Redpanda container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): RedPandaServerResource
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
isReadOnlybooleanoptional= FalseA flag that indicates if this is a read-only volume.
RedPandaServerResource
methodwithKafkaUIbuilder
Adds a Kafka UI container to the application, configured to connect to the Redpanda broker. This is the same Kafka management UI (the `kafbat/kafka-ui` image) used by the official Aspire Kafka integration, so it works against any Kafka API compatible broker.
withKafkaUI(configureContainer?: (obj: RedPandaKafkaUiContainerResource) => Promise<void>, containerName?: string): RedPandaServerResource
configureContainer(obj: RedPandaKafkaUiContainerResource) => Promise<void>optionalAn optional callback to configure the Kafka UI container resource.
containerNamestringoptionalThe name of the container (optional).
RedPandaServerResource