Class TCPRoute
Describes match conditions and actions for routing TCP traffic. The following routing rule forwards traffic arriving at port 27017 for mongo.prod.svc.cluster.local to another Mongo server on port 5555.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class TCPRoute
Constructors
TCPRoute()
Initializes a new instance of the TCPRoute class.
Declaration
public TCPRoute()
Properties
Match
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
Declaration
[JsonProperty(PropertyName = "match", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<L4MatchAttributes> Match { get; set; }
Property Value
Type | Description |
---|---|
List<L4MatchAttributes> |
Route
The destination to which the connection should be forwarded to.
Declaration
[JsonProperty(PropertyName = "route", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<RouteDestination> Route { get; set; }
Property Value
Type | Description |
---|---|
List<RouteDestination> |
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate()
Exceptions
Type | Condition |
---|---|
ValidationException | Thrown if validation fails. |