Affinity
data class Affinity(val nodeAffinity: NodeAffinity? = null, val podAffinity: PodAffinity? = null, val podAntiAffinity: PodAntiAffinity? = null)
Affinity is a group of affinity scheduling rules.
Constructors
Link copied to clipboard
constructor(nodeAffinity: NodeAffinity? = null, podAffinity: PodAffinity? = null, podAntiAffinity: PodAntiAffinity? = null)
Properties
Link copied to clipboard
Describes node affinity scheduling rules for the pod.
Link copied to clipboard
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
Link copied to clipboard
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).