AffinityPatch constructor

const AffinityPatch({
  1. Input<NodeAffinityPatch>? nodeAffinity,
  2. Input<PodAffinityPatch>? podAffinity,
  3. Input<PodAntiAffinityPatch>? podAntiAffinity,
})

Creates a new AffinityPatch. nodeAffinity Describes node affinity scheduling rules for the pod. podAffinity Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). podAntiAffinity Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).

Implementation

const AffinityPatch({
  this.nodeAffinity,
  this.podAffinity,
  this.podAntiAffinity,
});