Share via


ServiceSpecV1.ExternalTrafficPolicy Property

Definition

Specifies how external traffic is routed to the Service's underlying network endpoints.

[YamlDotNet.Serialization.YamlMember(Alias="externalTrafficPolicy")]
public string? ExternalTrafficPolicy { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="externalTrafficPolicy")>]
member this.ExternalTrafficPolicy : string with get, set
Public Property ExternalTrafficPolicy As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The property is used to define whether external traffic routed to the Service should preserve the client source IP address or be routed directly. Acceptable values include: - "Cluster": Traffic is routed via the cluster network and source IP addresses are not preserved. - "Local": Traffic is routed directly to the Service endpoints and source IP addresses are preserved. This setting is particularly useful for load balancing scenarios and for complying with specific application requirements where source IP preservation is a priority.

Applies to