kubernetes.aio.client.models.v1alpha2_pod_group_template module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1alpha2_pod_group_template.V1alpha2PodGroupTemplate(disruption_mode=None, name=None, priority=None, priority_class_name=None, resource_claims=None, scheduling_constraints=None, scheduling_policy=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 = {'disruption_mode': 'disruptionMode', 'name': 'name', 'priority': 'priority', 'priority_class_name': 'priorityClassName', 'resource_claims': 'resourceClaims', 'scheduling_constraints': 'schedulingConstraints', 'scheduling_policy': 'schedulingPolicy'}¶
- property disruption_mode¶
Gets the disruption_mode of this V1alpha2PodGroupTemplate. # noqa: E501
DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled. # noqa: E501
- Returns:
The disruption_mode of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
str
- property name¶
Gets the name of this V1alpha2PodGroupTemplate. # noqa: E501
Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. # noqa: E501
- Returns:
The name of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
str
- openapi_types = {'disruption_mode': 'str', 'name': 'str', 'priority': 'int', 'priority_class_name': 'str', 'resource_claims': 'list[V1alpha2PodGroupResourceClaim]', 'scheduling_constraints': 'V1alpha2PodGroupSchedulingConstraints', 'scheduling_policy': 'V1alpha2PodGroupSchedulingPolicy'}¶
- property priority¶
Gets the priority of this V1alpha2PodGroupTemplate. # noqa: E501
Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled. # noqa: E501
- Returns:
The priority of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
- property priority_class_name¶
Gets the priority_class_name of this V1alpha2PodGroupTemplate. # noqa: E501
PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled. # noqa: E501
- Returns:
The priority_class_name of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
str
- property resource_claims¶
Gets the resource_claims of this V1alpha2PodGroupTemplate. # noqa: E501
ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup’s claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup’s claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. # noqa: E501
- Returns:
The resource_claims of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
- property scheduling_constraints¶
Gets the scheduling_constraints of this V1alpha2PodGroupTemplate. # noqa: E501
- Returns:
The scheduling_constraints of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
- property scheduling_policy¶
Gets the scheduling_policy of this V1alpha2PodGroupTemplate. # noqa: E501
- Returns:
The scheduling_policy of this V1alpha2PodGroupTemplate. # noqa: E501
- Return type:
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model