Watch Aspire live streamsDocsTry Aspire

NodeAffinityV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v17.0.0
Represents node affinity scheduling configuration for Kubernetes pods. This class defines the rules to determine node selection for a pod during scheduling. Node affinity allows a pod to specify constraints that limit the set of nodes it can be scheduled onto. This includes both hard requirements (requiredDuringSchedulingIgnoredDuringExecution) and soft preferences (preferredDuringSchedulingIgnoredDuringExecution).
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class NodeAffinityV1
{
// ...
}
View all constructors
View all properties