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: client
Configuration (* required)
options
object
The tcp
specific options.
options:
host: 0.0.0.0
port: 12345
options.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: 12345
options:
port:
- 12345
- "54320-54330"
routes
array
ofobject
Conditional tcp
specific routes.
routes[].guarded
object
as map of namedarray
ofstring
List of roles required by each named guard to authorize this route.
routes[].when
array
ofobject
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.*