Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Add TCP/UDP port matching to specs/v1alpha4
Browse files Browse the repository at this point in the history
Signed-off-by: stefanprodan <stefan.prodan@gmail.com>
  • Loading branch information
stefanprodan committed Aug 13, 2020
1 parent d30871f commit 894612a
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions apis/traffic-specs/traffic-specs-WD.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,54 @@ to any path and all HTTP methods.

### TCPRoute

This resource is used to describe L4 TCP traffic. It is a simple route which configures
an application to receive raw non protocol specific traffic.
This resource is used to describe L4 TCP traffic for a list of ports.

```yaml
kind: TCPRoute
metadata:
name: tcp-route
spec: {}
name: the-routes
spec:
matches:
ports:
- 3306
- 6446
```

When matching ports are not specified, the TCP route will match all the ports of a Kubernetes service:

```yaml
kind: TCPRoute
metadata:
name: the-routes
spec:
matches:
ports: []
```

### UDPRoute

This resource is used to describe L4 UDP traffic for a list of ports.

```yaml
kind: UDPRoute
metadata:
name: the-routes
spec:
matches:
ports:
- 989
- 990
```

When matching ports are not specified, the UDP route will match all the ports of a Kubernetes service:

```yaml
kind: UDPRoute
metadata:
name: the-routes
spec:
matches:
ports: []
```

## Automatic Generation
Expand Down

0 comments on commit 894612a

Please sign in to comment.