tcp client
tcp client
The tcp client binding receives inbound application streams and initiates outbound TCP network connections to a remote TCP server address.
tcp_client:
type: tcp
kind: clientConfiguration (* required)
options
object
The tcp specific options.
options:
host: 0.0.0.0
port: 12345options.host
string
Hostname or IP address.
options.port
integer,string,array
Port number(s), including port number ranges with the pattern: ^\\d+(-\\d+)?$.
options:
port: 12345options:
port:
- 12345
- "54320-54330"routes
arrayofobject
Conditional tcp specific routes.
routes[].guarded
objectas map of namedarrayofstring
List of roles required by each named guard to authorize this route.
routes[].when
arrayofobject
List of conditions (any match) to match this route. Read more: When a route matches
when[].authority
string
Associated authority.
when[].cidr
string| Pattern:^[0-9a-fA-F:.]+/(\\d{1,3})$
CIDR mask.
when[].port
integer,string,array
Port number(s), including port number ranges.
telemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
