Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.06 KB

File metadata and controls

30 lines (23 loc) · 1.06 KB

V1Affinity

Affinity is a group of affinity scheduling rules.

Properties

Name Type Description Notes
node_affinity V1NodeAffinity [optional]
pod_affinity V1PodAffinity [optional]
pod_anti_affinity V1PodAntiAffinity [optional]

Example

from kubernetes.client.models.v1_affinity import V1Affinity

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

# convert the object into a dict
v1_affinity_dict = v1_affinity_instance.to_dict()
# create an instance of V1Affinity from a dict
v1_affinity_from_dict = V1Affinity.from_dict(v1_affinity_dict)

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