AffinityPatch constructor
const
AffinityPatch({
- Input<
NodeAffinityPatch> ? nodeAffinity, - Input<
PodAffinityPatch> ? podAffinity, - 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,
});