ServiceSpecV1.SessionAffinity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the session affinity setting for a Kubernetes Service in API version V1.
[YamlDotNet.Serialization.YamlMember(Alias="sessionAffinity")]
public string? SessionAffinity { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="sessionAffinity")>]
member this.SessionAffinity : string with get, set
Public Property SessionAffinity As String
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
Session affinity determines how traffic is routed to a service. It helps in maintaining connections from the same client to the same pod, enabling stateful communication and enhancing user experience for applications requiring persistent sessions.