KubernetesEnvironmentExtensions
Classstaticnet10.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 MethodsIResourceBuilder<KubernetesEnvironmentResource> Adds a Kubernetes environment to the application model.
IResourceBuilder<KubernetesNodePoolResource> Adds a named node pool to the Kubernetes environment.
IResourceBuilder<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.
IResourceBuilder<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.