Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddRedPanda

Method
📦 CommunityToolkit.Aspire.Hosting.RedPanda v13.6.1
func (DistributedApplicationBuilder) AddRedPanda(
name string,
options ...*AddRedPandaOptions,
) RedPandaServerResource

Signature

methodAddRedPandabuilder
Adds a Redpanda container resource to the application. Redpanda is a Kafka API compatible streaming platform, so the resource can be referenced by any Kafka client integration.
AddRedPanda(
name string,
options ...*AddRedPandaOptions,
) RedPandaServerResource
namestringThe name of the resource. This name is used as the connection string name when referenced in a dependency.
options...*AddRedPandaOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddRedPandaOptions argument.

Port*float64The host port that the Kafka API is exposed on. If null a random port is assigned.
RedPandaServerResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder