Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithNodePool

Method
📦 Aspire.Hosting.Kubernetes v13.6.5-preview.1.26559.7
func (Resource) WithNodePool(nodePool KubernetesNodePoolResource) Resource

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) Resource
nodePoolKubernetesNodePoolResourceThe node pool to schedule the workload on.
Resource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: