# ReplicaSet Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [ReplicaSet](/reference/api/csharp/aspire.hosting.kubernetes/replicaset.md)
- Kind: `Constructors`
- Members: `1`

Represents a Kubernetes ReplicaSet resource in the `apps/v1` API version.

## ReplicaSet

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Kubernetes/Resources/ReplicaSetV1.cs#L16-L26)

Represents a Kubernetes ReplicaSet resource in the `apps/v1` API version.

```csharp
public sealed class ReplicaSet
{
    public ReplicaSet()
    {
        // ...
    }
}
```

## Remarks

A ReplicaSet ensures that a specified number of pod replicas are running at any given time. It is commonly used to maintain the desired state of a workload by managing the lifecycle of pods.
