kubernetes_asyncio.client.models.v1_scheduling 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_scheduling.V1Scheduling(node_selector=None, tolerations=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 = {'node_selector': 'nodeSelector', 'tolerations': 'tolerations'}
- property node_selector
Gets the node_selector of this V1Scheduling. # noqa: E501
nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod’s existing nodeSelector. Any conflicts will cause the pod to be rejected in admission. # noqa: E501
- Returns:
The node_selector of this V1Scheduling. # noqa: E501
- Return type:
dict(str, str)
- openapi_types = {'node_selector': 'dict(str, str)', 'tolerations': 'list[V1Toleration]'}
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model
- property tolerations
Gets the tolerations of this V1Scheduling. # noqa: E501
tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass. # noqa: E501
- Returns:
The tolerations of this V1Scheduling. # noqa: E501
- Return type:
list[V1Toleration]