# RollingUpdateDeploymentV1 Properties

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

Represents the rolling update configuration for a Kubernetes Deployment. Defines the parameters for controlling the behavior of updating Pods in a Deployment.

## MaxSurge

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

Gets or sets the maximum number of additional pods that can be scheduled above the desired number of pods during a rolling update in a deployment.

```csharp
public int MaxSurge { get; set; }
```

## MaxUnavailable

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

Gets or sets the maximum number of pods that can be unavailable during the rolling update process. This property controls how workloads are updated without causing application downtime.

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