# StatefulSet Properties

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

Represents a Kubernetes StatefulSet resource in the "apps/v1" API group.

## PodTemplate

- Name: `PodTemplate`
- Modifiers: `override` `get`
- Returns: [PodTemplateSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/podtemplatespecv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/StatefulSetV1.cs#L43)

Gets the pod template specification for the StatefulSet.

```csharp
public override PodTemplateSpecV1 PodTemplate { get; }
```

## Spec

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

Gets or sets the specification of the Kubernetes StatefulSet resource.

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

## Remarks

Represents the desired state and configuration of a StatefulSet. This property controls various aspects of the StatefulSet, such as the number of replicas, pod templates, update strategy, volume claims, and more. Refer to the [StatefulSetSpecV1](/reference/api/csharp/aspire.hosting.kubernetes/statefulsetspecv1.md) documentation for detailed information about the available configuration options.
