struct

Kubernetes::WeightedPodAffinityTerm

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

pod_affinity_term

Required. A pod affinity term, associated with the corresponding weight.

Source
pod_affinity_term=(pod_affinity_term : PodAffinityTerm | Nil)

Required. A pod affinity term, associated with the corresponding weight.

Source
weight

weight associated with matching the corresponding podAffinityTerm, in the range 1-100.

Source
weight=(weight : Int32 | Nil)

weight associated with matching the corresponding podAffinityTerm, in the range 1-100.

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source