-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gateway API: support TLS termination with TLSRoute/TCPRoute (#5481)
Adds support for TLS termination with the TLS listener protocol. Envoy is configured to terminate TLS and then to proxy TCP traffic to the backend. Closes #5461. Signed-off-by: Steve Kriss <krisss@vmware.com>
- Loading branch information
Showing
7 changed files
with
498 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Gateway API: Support TLS termination with TLSRoute and TCPRoute | ||
|
||
Contour now supports using TLSRoute and TCPRoute in combination with TLS termination. | ||
To use this feature, create a Gateway with a Listener like the following: | ||
|
||
```yaml | ||
- name: tls-listener | ||
protocol: TLS | ||
port: 5000 | ||
tls: | ||
mode: Terminate | ||
certificateRefs: | ||
- name: tls-cert-secret | ||
allowedRoutes: | ||
namespaces: | ||
from: All | ||
--- | ||
``` | ||
|
||
It is then possible to attach either 1+ TLSRoutes, or a single TCPRoute, to this Listener. | ||
If using TLSRoute, traffic can be routed to a different backend based on SNI. | ||
If using TCPRoute, all traffic is forwarded to the backend referenced in the route. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.