# SessionAffinityConfigV1 Properties

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

Represents the configuration for session affinity in a Kubernetes Service resource.

## ClientIp

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

Gets or sets the client IP configuration used for session affinity.

```csharp
public ClientIPConfigV1 ClientIp { get; set; }
```

## Remarks

This property specifies the configuration settings related to session affinity that are based on the client's IP address. It encapsulates parameters such as the timeout duration for session stickiness.
