PreferredSchedulingTerm¶
- pydantic model controller.models.domain.kubernetes.PreferredSchedulingTerm¶
Scheduling term with a weight, used to find preferred nodes.
- Parameters:
data (
Any
)
Show JSON schema
{ "title": "PreferredSchedulingTerm", "description": "Scheduling term with a weight, used to find preferred nodes.", "type": "object", "properties": { "preference": { "$ref": "#/$defs/NodeSelectorTerm", "description": "Selector term for a node", "title": "Node selector" }, "weight": { "description": "Weight to assign to nodes matching this term", "title": "Weight", "type": "integer" } }, "$defs": { "NodeSelectorOperator": { "description": "Match operations for node selectors.", "enum": [ "In", "NotIn", "Exists", "DoesNotExist", "Gt", "Lt" ], "title": "NodeSelectorOperator", "type": "string" }, "NodeSelectorRequirement": { "additionalProperties": false, "description": "Individual match rule for nodes.", "properties": { "key": { "description": "Label key to match", "title": "Key", "type": "string" }, "operator": { "$ref": "#/$defs/NodeSelectorOperator", "description": "Match operation to use", "title": "Operator" }, "values": { "default": [], "description": "For ``In`` and ``NotIn``, matches any value in this list. For ``Gt`` or ``Lt``, must contain a single member interpreted as an integer. For ``Exists`` or ``DoesNotExist``, must be empty.", "items": { "type": "string" }, "title": "Matching values", "type": "array" } }, "required": [ "key", "operator" ], "title": "NodeSelectorRequirement", "type": "object" }, "NodeSelectorTerm": { "additionalProperties": false, "description": "Term to match nodes.", "properties": { "matchExpressions": { "default": [], "description": "Matching rules applied to node labels", "items": { "$ref": "#/$defs/NodeSelectorRequirement" }, "title": "Rules for node labels", "type": "array" }, "matchFields": { "default": [], "description": "Matching rules applied to node fields", "items": { "$ref": "#/$defs/NodeSelectorRequirement" }, "title": "Rules for node fields", "type": "array" } }, "title": "NodeSelectorTerm", "type": "object" } }, "additionalProperties": false, "required": [ "preference", "weight" ] }
- field preference: Annotated[NodeSelectorTerm, Field(title='Node selector', description='Selector term for a node')] [Required]¶
Selector term for a node
- field weight: Annotated[int, Field(title='Weight', description='Weight to assign to nodes matching this term')] [Required]¶
Weight to assign to nodes matching this term
- to_kubernetes()¶
Convert to the corresponding Kubernetes model.
- Return type:
V1PreferredSchedulingTerm