Affinity is a group of affinity scheduling rules.
| Name | Type | Description | Notes |
|---|---|---|---|
| node_affinity | V1NodeAffinity | [optional] | |
| pod_affinity | V1PodAffinity | [optional] | |
| pod_anti_affinity | V1PodAntiAffinity | [optional] |
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)