Affinity constructor
const
Affinity({
- Input<
NodeAffinity> ? nodeAffinity, - Input<
PodAffinity> ? podAffinity, - Input<
PodAntiAffinity> ? podAntiAffinity,
Creates a new Affinity.
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 Affinity({
this.nodeAffinity,
this.podAffinity,
this.podAntiAffinity,
});