Watch Aspire live streamsDocsTry Aspire

withNodePool

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

Signature

methodwithNodePoolbuilder
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
nodePoolKubernetesNodePoolResource
IResource

Applies to

This method applies to the following types: