# ReplicaSet Properties

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

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

## Spec

- Name: `Spec`
- Modifiers: `get; set`
- Returns: [ReplicaSetSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/replicasetspecv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ReplicaSetV1.cs)

Gets or sets the specification that describes the desired behavior of the ReplicaSet resource.

```csharp
public ReplicaSetSpecV1 Spec { get; set; }
```

## Remarks

The specification defines the desired state, including replica count, pod templates, and label selector, for the Kubernetes ReplicaSet to maintain the specified number of pod replicas.
