KindClusterResourceBuilderExtensions
Classstaticnet10.0
Extension methods for adding Kind cluster resources to the distributed application builder.
namespace Aspire.Hosting;
public static class KindClusterResourceBuilderExtensions{ // ...}8 members
Methods8
Section titled MethodsIResourceBuilder<KindClusterResource> Adds a Kind cluster resource to the application model.
IResourceBuilder<T> Sets the cluster lifetime. When
ClusterLifetime.Session (the default), the cluster is deleted on graceful shutdown or other process-exit signals on a best-effort basis. When ClusterLifetime.Persistent , the cluster survives AppHost restarts and is reused on next startup. IResourceBuilder<KindClusterResource> Customizes the Kind cluster configuration. The callback receives the
KindConfigModel after default nodes have been populated, allowing arbitrary modifications before serialization to YAML. IResourceBuilder<T> Sets the Kubernetes version for the Kind cluster.
IResourceBuilder<T> Sets the Kind node image for every node in the cluster.
IResourceBuilder<T> Adds an extra host mount to every Kind node container.
IResourceBuilder<T> Configures a non-container resource to reference the Kind cluster by injecting kubeconfig environment variables.
IResourceBuilder<T> Sets the number of worker nodes for the Kind cluster.