type AffinitySpec struct {
// NodeAffinity is the node affinity for the pod
NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"`
// PodAntiAffinity is the pod anti-affinity for the pod
PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"`
// PodAffinity is the pod affinity for the pod
PodAffinity *PodAffinity `json:"podAffinity,omitempty"`
}
support affinity , soft affinity and hard affinity
support affinity , soft affinity and hard affinity