Cloud API Overview > @adpt/cloud > k8s > Affinity
k8s.Affinity interface
Signature:
export interface Affinity
Properties
Property | Type | Description |
---|---|---|
nodeAffinity | NodeAffinity | Describes node affinity scheduling rules for the pod. |
podAffinity | PodAffinity | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). |
podAntiAffinity | PodAntiAffinity | PodAntiAffinity Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). |