Class PodGroupTemplate
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.scheduling.v1alpha2.PodGroupTemplate
-
- All Implemented Interfaces:
Editable<PodGroupTemplateBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PodGroupTemplate extends Object implements Editable<PodGroupTemplateBuilder>, KubernetesResource
PodGroupTemplate represents a template for a set of pods with a scheduling policy.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PodGroupTemplate()No args constructor for use in serializationPodGroupTemplate(String disruptionMode, String name, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodGroupTemplateBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDisruptionMode()DisruptionMode defines the mode in which a given PodGroup can be disrupted.StringgetName()Name is a unique identifier for the PodGroupTemplate within the Workload.IntegergetPriority()Priority is the value of priority of pod groups created from this template.StringgetPriorityClassName()PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template.List<PodGroupResourceClaim>getResourceClaims()ResourceClaims defines which ResourceClaims may be shared among Pods in the group.PodGroupSchedulingConstraintsgetSchedulingConstraints()PodGroupTemplate represents a template for a set of pods with a scheduling policy.PodGroupSchedulingPolicygetSchedulingPolicy()PodGroupTemplate represents a template for a set of pods with a scheduling policy.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisruptionMode(String disruptionMode)DisruptionMode defines the mode in which a given PodGroup can be disrupted.voidsetName(String name)Name is a unique identifier for the PodGroupTemplate within the Workload.voidsetPriority(Integer priority)Priority is the value of priority of pod groups created from this template.voidsetPriorityClassName(String priorityClassName)PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template.voidsetResourceClaims(List<PodGroupResourceClaim> resourceClaims)ResourceClaims defines which ResourceClaims may be shared among Pods in the group.voidsetSchedulingConstraints(PodGroupSchedulingConstraints schedulingConstraints)PodGroupTemplate represents a template for a set of pods with a scheduling policy.voidsetSchedulingPolicy(PodGroupSchedulingPolicy schedulingPolicy)PodGroupTemplate represents a template for a set of pods with a scheduling policy.PodGroupTemplateBuildertoBuilder()
-
-
-
Constructor Detail
-
PodGroupTemplate
public PodGroupTemplate()
No args constructor for use in serialization
-
PodGroupTemplate
public PodGroupTemplate(String disruptionMode, String name, Integer priority, String priorityClassName, List<PodGroupResourceClaim> resourceClaims, PodGroupSchedulingConstraints schedulingConstraints, PodGroupSchedulingPolicy schedulingPolicy)
-
-
Method Detail
-
getDisruptionMode
public String getDisruptionMode()
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.
-
setDisruptionMode
public void setDisruptionMode(String disruptionMode)
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.
-
getName
public String getName()
Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.
-
setName
public void setName(String name)
Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.
-
getPriority
public Integer getPriority()
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.
-
setPriority
public void setPriority(Integer priority)
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.
-
getPriorityClassName
public String getPriorityClassName()
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.
-
setPriorityClassName
public void setPriorityClassName(String priorityClassName)
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.
-
getResourceClaims
public List<PodGroupResourceClaim> getResourceClaims()
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.
-
setResourceClaims
public void setResourceClaims(List<PodGroupResourceClaim> resourceClaims)
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.
-
getSchedulingConstraints
public PodGroupSchedulingConstraints getSchedulingConstraints()
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
setSchedulingConstraints
public void setSchedulingConstraints(PodGroupSchedulingConstraints schedulingConstraints)
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
getSchedulingPolicy
public PodGroupSchedulingPolicy getSchedulingPolicy()
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
setSchedulingPolicy
public void setSchedulingPolicy(PodGroupSchedulingPolicy schedulingPolicy)
PodGroupTemplate represents a template for a set of pods with a scheduling policy.
-
edit
public PodGroupTemplateBuilder edit()
- Specified by:
editin interfaceEditable<PodGroupTemplateBuilder>
-
toBuilder
public PodGroupTemplateBuilder toBuilder()
-
-