Show / Hide Table of Contents

Class V1beta1PodGroupTemplate

PodGroupTemplate represents a template for a set of pods with a scheduling policy.

Inheritance
object
V1beta1PodGroupTemplate
Implements
IEquatable<V1beta1PodGroupTemplate>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1beta1PodGroupTemplate : IEquatable<V1beta1PodGroupTemplate>

Constructors

V1beta1PodGroupTemplate()

Declaration
public V1beta1PodGroupTemplate()

V1beta1PodGroupTemplate(V1beta1PodGroupTemplate)

Declaration
protected V1beta1PodGroupTemplate(V1beta1PodGroupTemplate original)
Parameters
Type Name Description
V1beta1PodGroupTemplate original

Properties

DisruptionMode

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

Declaration
[JsonPropertyName("disruptionMode")]
public V1beta1DisruptionMode DisruptionMode { get; set; }
Property Value
Type Description
V1beta1DisruptionMode

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

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
Type Description
string

PreemptionPolicy

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.

Declaration
[JsonPropertyName("preemptionPolicy")]
public string PreemptionPolicy { get; set; }
Property Value
Type Description
string

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. The higher the value, the higher the priority. This field is immutable.

Declaration
[JsonPropertyName("priority")]
public int? Priority { get; set; }
Property Value
Type Description
int?

PriorityClassName

priorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. This field is immutable.

Declaration
[JsonPropertyName("priorityClassName")]
public string PriorityClassName { get; set; }
Property Value
Type Description
string

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 a beta-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.

This field is immutable.

Declaration
[JsonPropertyName("resourceClaims")]
public IList<V1beta1PodGroupResourceClaim> ResourceClaims { get; set; }
Property Value
Type Description
IList<V1beta1PodGroupResourceClaim>

SchedulingConstraints

schedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroupTemplate. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled. This field is immutable.

Declaration
[JsonPropertyName("schedulingConstraints")]
public V1beta1PodGroupSchedulingConstraints SchedulingConstraints { get; set; }
Property Value
Type Description
V1beta1PodGroupSchedulingConstraints

SchedulingPolicy

schedulingPolicy defines the scheduling policy for this PodGroupTemplate.

Declaration
[JsonPropertyName("schedulingPolicy")]
public V1beta1PodGroupSchedulingPolicy SchedulingPolicy { get; set; }
Property Value
Type Description
V1beta1PodGroupSchedulingPolicy

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1beta1PodGroupTemplate?)

Declaration
public virtual bool Equals(V1beta1PodGroupTemplate? other)
Parameters
Type Name Description
V1beta1PodGroupTemplate other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1beta1PodGroupTemplate?, V1beta1PodGroupTemplate?)

Declaration
public static bool operator ==(V1beta1PodGroupTemplate? left, V1beta1PodGroupTemplate? right)
Parameters
Type Name Description
V1beta1PodGroupTemplate left
V1beta1PodGroupTemplate right
Returns
Type Description
bool

operator !=(V1beta1PodGroupTemplate?, V1beta1PodGroupTemplate?)

Declaration
public static bool operator !=(V1beta1PodGroupTemplate? left, V1beta1PodGroupTemplate? right)
Parameters
Type Name Description
V1beta1PodGroupTemplate left
V1beta1PodGroupTemplate right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX