From b302a926c62527d2f0f9933bb96b0ba7c9713064 Mon Sep 17 00:00:00 2001 From: Chris Piraino Date: Wed, 11 Aug 2021 16:36:57 -0500 Subject: [PATCH] docs: remove note on ingress gateway hosts field needing a port number (#10827) This was necessary in older versions of Consul, but was obsoleted by making Consul add the port number itself when constructing the Envoy configuration. --- .../config-entries/ingress-gateway.mdx | 32 ++++++++----------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/website/content/docs/connect/config-entries/ingress-gateway.mdx b/website/content/docs/connect/config-entries/ingress-gateway.mdx index 97f1e4672..6c067f01c 100644 --- a/website/content/docs/connect/config-entries/ingress-gateway.mdx +++ b/website/content/docs/connect/config-entries/ingress-gateway.mdx @@ -205,11 +205,11 @@ Listeners = [ Services = [ { Name = "api" - Hosts = ["foo.example.com", "foo.example.com:4567"] + Hosts = ["foo.example.com"] }, { Name = "web" - Hosts = ["website.example.com", "website.example.com:4567"] + Hosts = ["website.example.com"] } ] } @@ -233,9 +233,9 @@ spec: protocol: http services: - name: api - hosts: ['foo.example.com', 'foo.example.com:4567'] + hosts: ['foo.example.com'] - name: web - hosts: ['website.example.com', 'website.example.com:4567'] + hosts: ['website.example.com'] ``` ```json @@ -261,11 +261,11 @@ spec: "Services": [ { "Name": "api", - "Hosts": ["foo.example.com", "foo.example.com:4567"] + "Hosts": ["foo.example.com"] }, { "Name": "web", - "Hosts": ["website.example.com", "website.example.com:4567"] + "Hosts": ["website.example.com"] } ] } @@ -310,12 +310,12 @@ Listeners = [ { Namespace = "frontend" Name = "api" - Hosts = ["foo.example.com", "foo.example.com:4567"] + Hosts = ["foo.example.com"] }, { Namespace = "frontend" Name = "web" - Hosts = ["website.example.com", "website.example.com:4567"] + Hosts = ["website.example.com"] } ] } @@ -342,10 +342,10 @@ spec: services: - name: api namespace: frontend - hosts: ['foo.example.com', 'foo.example.com:4567'] + hosts: ['foo.example.com'] - name: web namespace: frontend - hosts: ['website.example.com', 'website.example.com:4567'] + hosts: ['website.example.com'] ``` ```json @@ -374,12 +374,12 @@ spec: { "Namespace": "frontend", "Name": "api", - "Hosts": ["foo.example.com", "foo.example.com:4567"] + "Hosts": ["foo.example.com"] }, { "Namespace": "frontend", "Name": "web", - "Hosts": ["website.example.com", "website.example.com:4567"] + "Hosts": ["website.example.com"] } ] } @@ -830,13 +830,7 @@ spec: be used as part of the host to match multiple hosts, but only in the leftmost DNS label. This ensures that all defined hosts are valid DNS records. For example, \`*.example.com\` is valid, while \`example.*\` and - \`*-suffix.example.com\` are not.

- Note: If a well-known port is not used, i.e. a port other than 80 - (http) or 443 (https), then the port must be appended to the host to - correctly match traffic. This is defined in the [HTTP/1.1 RFC](https://tools.ietf.org/html/rfc2616#section-14.23). If TLS is - enabled, then the host without the port must be added to the \`Hosts\` - field as well. TLS verification only matches against the hostname of the - incoming connection, and thus does not take into account the port.`, + \`*-suffix.example.com\` are not.`, }, ], },