kubernetes v1.37

WorkloadSpec.compositePodGroupTemplates

CompositePodGroupTemplate represents a template for a CompositePodGroup with a scheduling policy.

9 fields
WorkloadSpec.compositePodGroupTemplates fields and descriptions
Field / TypeDescription
CompositePodGroupTemplate[]

compositePodGroupTemplates is the list of templates for children CompositePodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.

  • x-kubernetes-list-map-keys: ["name"]
  • x-kubernetes-list-type: "map"
CompositeDisruptionMode

disruptionMode defines the mode in which a given CompositePodGroup can be disrupted. One of Single, All. This field is immutable.

  • x-kubernetes-unions: [{"fields-to-discriminateBy":{"all":"All","single":"Single"}}]
name
string required

name is a unique identifier for the CompositePodGroupTemplate within the Workload. It must be a DNS label. This field is required.

PodGroupTemplate[]

podGroupTemplates is the list of templates for children PodGroups. The maximum number of templates is 8. At least one entry in CompositePodGroupTemplates or PodGroupTemplates must be set.

  • x-kubernetes-list-map-keys: ["name"]
  • x-kubernetes-list-type: "map"
preemptionPolicy
string

preemptionPolicy is the Policy for preempting pods/podgroups with lower priority. One of Never, PreemptLowerPriority. This field is immutable. This field is available only when the PodGroupPreemptionPolicy feature gate is enabled.

priority
integer

priority is the value of priority of composite pod groups created from this template. Various system components use this field to find the priority of the composite 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 immutable.

  • format: int32
priorityClassName
string

priorityClassName indicates the priority that should be considered when scheduling a composite 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, composite pod groups created from this template will have the priority set to zero. This field is immutable.

CompositePodGroupSchedulingConstraints

schedulingConstraints defines optional scheduling constraints (e.g. topology) for this CompositePodGroupTemplate. This field is immutable.

CompositePodGroupSchedulingPolicy required

schedulingPolicy defines the scheduling policy for this template.

  • x-kubernetes-unions: [{"fields-to-discriminateBy":{"basic":"Basic","gang":"Gang"}}]