Affinity class
Affinity is a group of affinity scheduling rules.
Constructors
-
Affinity({Input<
NodeAffinity> ? nodeAffinity, Input<PodAffinity> ? podAffinity, Input<PodAntiAffinity> ? podAntiAffinity}) -
Creates a new Affinity.
nodeAffinityDescribes node affinity scheduling rules for the pod.podAffinityDescribes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).podAntiAffinityDescribes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).const -
Affinity.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nodeAffinity
→ Input<
NodeAffinity> ? -
Describes node affinity scheduling rules for the pod.
final
-
podAffinity
→ Input<
PodAffinity> ? -
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<
PodAntiAffinity> ? -
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