WithNodePool

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
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: