kubernetes_asyncio.client.models.v1_node_affinity module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_node_affinity.V1NodeAffinity(preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution', 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution'}
- openapi_types = {'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]', 'required_during_scheduling_ignored_during_execution': 'V1NodeSelector'}
- property preferred_during_scheduling_ignored_during_execution
Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding “weight” to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501
- Returns:
The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
- Return type:
- property required_during_scheduling_ignored_during_execution
Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
- Returns:
The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
- Return type:
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model