AffinityPatch class

Affinity is a group of affinity scheduling rules.

Constructors

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)).
const
AffinityPatch.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
nodeAffinity → Input<NodeAffinityPatch>?
Describes node affinity scheduling rules for the pod.
final
podAffinity → Input<PodAffinityPatch>?
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
final
podAntiAffinity → Input<PodAntiAffinityPatch>?
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited