Skip to content
Docs Try Aspire
Docs Try

withNodePool

Method
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
interface ContainerResource {
// ... omitted for brevity
withNodePool(nodePool: KubernetesNodePoolResource): IResource;
}

Signature

method withNodePool builder
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.
withNodePool(nodePool: KubernetesNodePoolResource): IResource
nodePool KubernetesNodePoolResource
IResource

Applies to

This method applies to the following types: