Watch Aspire live streamsDocsTry Aspire

PodAntiAffinityV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
Represents the pod anti-affinity rules used in Kubernetes scheduling policies.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class PodAntiAffinityV1
{
// ...
}
PodAntiAffinityV1 defines constraints for scheduling pods on nodes based on anti-affinity rules. Anti-affinity is used to avoid placing certain pods close to each other or restrict them from being scheduled on the same nodes within the cluster. This can enhance fault tolerance, resource allocation, or other layout requirements.
View all constructors
View all properties