AffinityArgs

data class AffinityArgs(val nodeAffinity: Output<NodeAffinityArgs>? = null, val podAffinity: Output<PodAffinityArgs>? = null, val podAntiAffinity: Output<PodAntiAffinityArgs>? = null) : ConvertibleToJava<AffinityArgs>

Affinity is a group of affinity scheduling rules.

Constructors

Link copied to clipboard
constructor(nodeAffinity: Output<NodeAffinityArgs>? = null, podAffinity: Output<PodAffinityArgs>? = null, podAntiAffinity: Output<PodAntiAffinityArgs>? = null)

Properties

Link copied to clipboard
val nodeAffinity: Output<NodeAffinityArgs>? = null

Describes node affinity scheduling rules for the pod.

Link copied to clipboard
val podAffinity: Output<PodAffinityArgs>? = null

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)).

Functions

Link copied to clipboard
open override fun toJava(): AffinityArgs