Skip to content

Commit 732d174

Browse files
authored
Update gc doc with vs listeners (#4507)
1 parent aad4fc9 commit 732d174

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

docs/content/configuration/global-configuration/globalconfiguration-resource.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ docs: "DOCS-588"
1111

1212
The GlobalConfiguration resource allows you to define the global configuration parameters of the Ingress Controller. The resource is implemented as a [Custom Resource](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/).
1313

14-
The resource supports configuring listeners for TCP and UDP load balancing. Listeners are required by [TransportServer resources](/nginx-ingress-controller/configuration/transportserver-resource).
14+
The resource supports configuring listeners for TCP and UDP load balancing. Listeners are required by [TransportServer resources](/nginx-ingress-controller/configuration/transportserver-resource) and
15+
can be used to configure custom listerners for VirtualServers as specified [here](/nginx-ingress-controller/tutorials/virtual-server-with-custom-listener-ports).
1516

1617
## Prerequisites
1718

@@ -35,6 +36,13 @@ spec:
3536
- name: dns-tcp
3637
port: 5353
3738
protocol: TCP
39+
- name: http-8083
40+
port: 8083
41+
protocol: HTTP
42+
- name: https-8443
43+
port: 8443
44+
protocol: HTTP
45+
ssl: true
3846
```
3947
4048
{{% table %}}
@@ -45,12 +53,15 @@ spec:
4553
4654
### Listener
4755
48-
The listener defines a listener (a combination of a protocol and a port) that NGINX will use to accept traffic for a [TransportServer](/nginx-ingress-controller/configuration/transportserver-resource):
56+
The `listeners:` key defines a listener (a combination of a protocol and a port) that NGINX will use to accept traffic for a [TransportServer](/nginx-ingress-controller/configuration/transportserver-resource) and a [VirtualServer](nginx-ingress-controller/configuration/virtualserver-and-virtualserverroute-resources):
4957

5058
```yaml
51-
name: dns-tcp
52-
port: 5353
53-
protocol: TCP
59+
- name: dns-tcp
60+
port: 5353
61+
protocol: TCP
62+
- name: http-8083
63+
port: 8083
64+
protocol: HTTP
5465
```
5566

5667
{{% table %}}

0 commit comments

Comments
 (0)