withNodePool

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
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
nodePoolKubernetesNodePoolResourceThe node pool to schedule the workload on.
IResource

Applies to

This method applies to the following types: