# RollingUpdateStatefulSetStrategyV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/RollingUpdateStatefulSetStrategyV1.cs)

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

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class RollingUpdateStatefulSetStrategyV1
{
    // ...
}
```

## Remarks

This class specifies parameters for controlling the rolling update process of a StatefulSet, allowing updates of its Pods while maintaining certain constraints.

## Constructors

- [RollingUpdateStatefulSetStrategyV1](/reference/api/csharp/aspire.hosting.kubernetes/rollingupdatestatefulsetstrategyv1/constructors.md#constructor)

## Properties

- [MaxUnavailable](/reference/api/csharp/aspire.hosting.kubernetes/rollingupdatestatefulsetstrategyv1/properties.md#maxunavailable) : `int?` `get; set` -- 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.
- [Partition](/reference/api/csharp/aspire.hosting.kubernetes/rollingupdatestatefulsetstrategyv1/properties.md#partition) : `int?` `get; set` -- 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.
