-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Steve Kriss <krisss@vmware.com>
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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. |