Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.29 KB

File metadata and controls

29 lines (22 loc) · 1.29 KB

V1WeightedPodAffinityTerm

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

Properties

Name Type Description Notes
pod_affinity_term V1PodAffinityTerm
weight int weight associated with matching the corresponding podAffinityTerm, in the range 1-100.

Example

from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm

# TODO update the JSON string below
json = "{}"
# create an instance of V1WeightedPodAffinityTerm from a JSON string
v1_weighted_pod_affinity_term_instance = V1WeightedPodAffinityTerm.from_json(json)
# print the JSON string representation of the object
print(V1WeightedPodAffinityTerm.to_json())

# convert the object into a dict
v1_weighted_pod_affinity_term_dict = v1_weighted_pod_affinity_term_instance.to_dict()
# create an instance of V1WeightedPodAffinityTerm from a dict
v1_weighted_pod_affinity_term_from_dict = V1WeightedPodAffinityTerm.from_dict(v1_weighted_pod_affinity_term_dict)

[Back to Model list] [Back to API list] [Back to README]