Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

NodeAffinityV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
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