# ReplicaSetSpecV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ReplicaSetSpecV1.cs)

Defines the specification for a Kubernetes ReplicaSet.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ReplicaSetSpecV1
{
    // ...
}
```

## Remarks

A ReplicaSet ensures that a specified number of pod replicas are running at any given time. This specification provides the desired state for a ReplicaSet, including pod templates, replica count, and label selectors.

## Constructors

- [ReplicaSetSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/replicasetspecv1/constructors.md#constructor)

## Properties

- [MinReadySeconds](/reference/api/csharp/aspire.hosting.kubernetes/replicasetspecv1/properties.md#minreadyseconds) : `int?` `get; set` -- Specifies the minimum time, in seconds, a pod should remain in the Ready state before it is considered available.
- [Replicas](/reference/api/csharp/aspire.hosting.kubernetes/replicasetspecv1/properties.md#replicas) : `int?` `get; set` -- Gets or sets the desired number of replicas for the ReplicaSet.
- [Selector](/reference/api/csharp/aspire.hosting.kubernetes/replicasetspecv1/properties.md#selector) : [LabelSelectorV1](/reference/api/csharp/aspire.hosting.kubernetes/labelselectorv1.md) `get; set` -- 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.
- [Template](/reference/api/csharp/aspire.hosting.kubernetes/replicasetspecv1/properties.md#template) : [PodTemplateSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/podtemplatespecv1.md) `get; set` -- Gets or sets the template that defines the specification of the pods to be created.
