# 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/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.
