Class V1alpha2PodGroupTemplate
PodGroupTemplate represents a template for a set of pods with a scheduling
policy.
Inheritance
V1alpha2PodGroupTemplate
Assembly: KubernetesClient.dll
Syntax
public record V1alpha2PodGroupTemplate : IEquatable<V1alpha2PodGroupTemplate>
Constructors
V1alpha2PodGroupTemplate()
Declaration
public V1alpha2PodGroupTemplate()
V1alpha2PodGroupTemplate(V1alpha2PodGroupTemplate)
Declaration
protected V1alpha2PodGroupTemplate(V1alpha2PodGroupTemplate original)
Parameters
Properties
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.
Declaration
[JsonPropertyName("disruptionMode")]
public string DisruptionMode { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Name
Name is a unique identifier for the PodGroupTemplate within the Workload. It
must be a DNS label. This field is immutable.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("priority")]
public int? Priority { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("priorityClassName")]
public string PriorityClassName { get; set; }
Property Value
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.
Declaration
[JsonPropertyName("resourceClaims")]
public IList<V1alpha2PodGroupResourceClaim> ResourceClaims { get; set; }
Property Value
SchedulingConstraints
SchedulingConstraints defines optional scheduling constraints (e.g. topology)
for this PodGroupTemplate. This field is only available when the
TopologyAwareWorkloadScheduling feature gate is enabled.
Declaration
[JsonPropertyName("schedulingConstraints")]
public V1alpha2PodGroupSchedulingConstraints SchedulingConstraints { get; set; }
Property Value
SchedulingPolicy
SchedulingPolicy defines the scheduling policy for this PodGroupTemplate.
Declaration
[JsonPropertyName("schedulingPolicy")]
public V1alpha2PodGroupSchedulingPolicy SchedulingPolicy { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1alpha2PodGroupTemplate?)
Declaration
public virtual bool Equals(V1alpha2PodGroupTemplate? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1alpha2PodGroupTemplate?, V1alpha2PodGroupTemplate?)
Declaration
public static bool operator ==(V1alpha2PodGroupTemplate? left, V1alpha2PodGroupTemplate? right)
Parameters
Returns
operator !=(V1alpha2PodGroupTemplate?, V1alpha2PodGroupTemplate?)
Declaration
public static bool operator !=(V1alpha2PodGroupTemplate? left, V1alpha2PodGroupTemplate? right)
Parameters
Returns
Implements