struct
Kubernetes::WeightedPodAffinityTerm
- Kubernetes::WeightedPodAffinityTerm
- Struct
- Value
- Object
Overview
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#pod_affinity_term : PodAffinityTerm | Nil
Required.
-
#pod_affinity_term=(pod_affinity_term : PodAffinityTerm | Nil)
Required.
-
#weight : Int32 | Nil
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
-
#weight=(weight : Int32 | Nil)
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
Required. A pod affinity term, associated with the corresponding weight.
Required. A pod affinity term, associated with the corresponding weight.
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.