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

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: stefanprodan <[email protected]>
  • Loading branch information
stefanprodan committed Aug 13, 2020
1 parent 8008055 commit c8bc04b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions apis/traffic-access/traffic-access-WD.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ This example selects all the pods which have the `service-a` `ServiceAccount`.
Traffic destined on a path `/metrics` is allowed. The `matches` field is
optional and if omitted, a rule is valid for all the matches in a traffic spec
(a OR relationship). It is possible for a service to expose multiple ports,
the TCPRoute/UDPRoute `matches.ports` field allows the user to specify specifically which port traffic
should be allowed on. The `matches.ports` is an optional element, if not specified, traffic
the TCPRoute/UDPRoute `matches.ports` field allows the user to specify
specifically which port traffic should be allowed on.
The `matches.ports` is an optional element, if not specified, traffic
will be allowed to all ports on the destination service.

Allowing destination traffic should only be possible with permission of the
Expand Down Expand Up @@ -195,8 +196,8 @@ The previous example would allow the following HTTP traffic:

## Example implementation for L4

The following implementation how to define TrafficTargets for allowing TCP and UDP
traffic to specific ports.
The following implementation shows how to define TrafficTargets for
allowing TCP and UDP traffic to specific ports.

```yaml
kind: TCPRoute
Expand Down Expand Up @@ -237,8 +238,8 @@ spec:
namespace: default
```

Note that the above configuration will allow TCP and UDP traffic to both `8301` and `8302` ports,
but will block UDP traffic to `8300`.
Note that the above configuration will allow TCP and UDP traffic to
both `8301` and `8302` ports, but will block UDP traffic to `8300`.

## Tradeoffs

Expand Down
6 changes: 4 additions & 2 deletions apis/traffic-specs/traffic-specs-WD.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ spec:
- 6446
```

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

```yaml
kind: TCPRoute
Expand All @@ -176,7 +177,8 @@ spec:
- 990
```

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

```yaml
kind: UDPRoute
Expand Down

0 comments on commit c8bc04b

Please sign in to comment.