# RollingUpdateStatefulSetStrategyV1 Properties

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

Represents the rolling update strategy configuration for a StatefulSet in Kubernetes.

## MaxUnavailable

- Name: `MaxUnavailable`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/RollingUpdateStatefulSetStrategyV1.cs)

Gets or sets the maximum number of unavailable pods permitted during the rolling update of a StatefulSet. This property defines either an absolute number or a percentage of pods that can be unavailable simultaneously while the StatefulSet is being updated to achieve its desired state.

```csharp
public int? MaxUnavailable { get; set; }
```

## Partition

- Name: `Partition`
- Modifiers: `nullable` `get; set`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/RollingUpdateStatefulSetStrategyV1.cs)

Gets or sets the ordinal at which the StatefulSet should be partitioned. Pods with an ordinal greater than or equal to the specified partition value will be updated when the StatefulSet's Pod template is updated. Pods with an ordinal less than the partition value remain unchanged. This property enables management of updates to subsets of the StatefulSet.

```csharp
public int? Partition { get; set; }
```
