Skip to content
Docs Try Aspire

WeightedPodAffinityTermV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a weighted pod affinity term used in Kubernetes scheduling policies. WeightedPodAffinityTermV1 defines a preference for scheduling pods closer to other pods based on affinity/anti-affinity rules.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class WeightedPodAffinityTermV1
{
// ...
}
This class is typically utilized in scenarios where a Kubernetes scheduler prioritizes certain affinities while allowing flexibility in placement. The weight determines the level of preference for the associated PodAffinityTermV1.