KubernetesEnvironmentExtensions
Class static net8.0
Provides extension methods for adding Kubernetes environment resources to the application model.
namespace Aspire.Hosting;
public static class KubernetesEnvironmentExtensions{ // ...} 7 members
Methods7
Section titled MethodsAddKubernetesEnvironment(IDistributedApplicationBuilder, string)extensionats exportIResourceBuilder<KubernetesEnvironmentResource> Adds a Kubernetes environment to the application model.
AddNodePool(IResourceBuilder<KubernetesEnvironmentResource>, string)extensionats exportIResourceBuilder<KubernetesNodePoolResource> Adds a named node pool to the Kubernetes environment.
WithDashboard(IResourceBuilder<KubernetesEnvironmentResource>, bool)extensionats exportIResourceBuilder<KubernetesEnvironmentResource> Enables the Aspire dashboard for telemetry visualization in this Kubernetes environment.
WithDashboard(IResourceBuilder<KubernetesEnvironmentResource>, Action<IResourceBuilder<KubernetesAspireDashboardResource>>)extensionats exportIResourceBuilder<KubernetesEnvironmentResource> Configures the dashboard properties for this Kubernetes environment.
WithHelm(IResourceBuilder<KubernetesEnvironmentResource>, Action<HelmChartOptions>)extensionats exportIResourceBuilder<KubernetesEnvironmentResource> Configures the Kubernetes environment to deploy using Helm charts.
WithNodePool(IResourceBuilder<T>, IResourceBuilder<KubernetesNodePoolResource>)extensionats exportIResourceBuilder<T> Schedules a compute resource's workload on the specified Kubernetes node pool. This translates to a Kubernetes
nodeSelector in the pod specification targeting the named node pool. WithProperties(IResourceBuilder<KubernetesEnvironmentResource>, Action<KubernetesEnvironmentResource>)extensionats exportIResourceBuilder<KubernetesEnvironmentResource> Allows setting the properties of a Kubernetes environment resource.