KubernetesNodePoolResource
Class net8.0
Represents a Kubernetes node pool as a child resource of a
KubernetesEnvironmentResource. Node pools can be referenced by compute resources to schedule workloads on specific node pools using KubernetesEnvironmentExtensions.WithNodePool. namespace Aspire.Hosting.Kubernetes;
public class KubernetesNodePoolResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithParent, Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Kubernetes.KubernetesEnvironmentResource>{ // ...} ResourceIResourceIResourceWithParentIResourceWithParent<KubernetesEnvironmentResource>
Constructors1
Section titled ConstructorsKubernetesNodePoolResource(string, KubernetesEnvironmentResource) Represents a Kubernetes node pool as a child resource of a
KubernetesEnvironmentResource. Node pools can be referenced by compute resources to schedule workloads on specific node pools using KubernetesEnvironmentExtensions.WithNodePool. Properties2
Section titled PropertiesNodeSelectorLabelKeyget; initstring Gets the label key used to identify the node pool in the Kubernetes cluster. Defaults to
agentpool which is the standard label used by AKS and many managed Kubernetes services. Parentget Gets the parent Kubernetes environment resource.