Skip to content
Docs Try Aspire

ReplicaSetSpecV1 Properties

Class Properties 4 members
Defines the specification for a Kubernetes ReplicaSet.
MinReadySeconds Section titled MinReadySeconds nullable int?
Specifies the minimum time, in seconds, a pod should remain in the Ready state before it is considered available.
public int? MinReadySeconds { get; set; }
This property is used to define a stabilization period for newly created pods in a ReplicaSet. Pods must remain in the Ready state for at least the specified number of seconds before being considered available for scaling decisions or readiness. A value of null or 0 indicates no stabilization period is required.
Replicas Section titled Replicas nullable int?
Gets or sets the desired number of replicas for the ReplicaSet.
public int? Replicas { get; set; }
This property specifies the number of pod replicas that should be maintained by the ReplicaSet. If not specified, the default value is determined by the Kubernetes control plane.
Gets or sets the label selector for this ReplicaSet specification. This selector is used to identify and target which set of Pods the ReplicaSet will manage.
public LabelSelectorV1 Selector { get; set; }
The selector contains criteria for filtering resources based on their labels. It may include: - MatchLabels: Specifies the labels that must explicitly match. - MatchExpressions: Allows defining complex rules for label matching. Both components can be used together to create comprehensive selection criteria.
Gets or sets the template that defines the specification of the pods to be created.
public PodTemplateSpecV1 Template { get; set; }
The template is a PodTemplateSpec object that includes the pod-specific metadata and desired state configuration. It is used to define the settings for pods generated by the ReplicaSet.