You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/virtualserver-and-virtualserverroute.md
+20-5
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,23 @@ This document is the reference documentation for the resources. To see additiona
7
7
**Feature Status**: The VirtualServer and VirtualServerRoute resources are available as a preview feature: it is suitable for experimenting and testing; however, it must be used with caution in production environments. Additionally, while the feature is in preview, we might introduce some backward-incompatible changes to the resources specification in the next releases.
-[Common Parts of the VirtualServer and VirtualServerRoute](#Common-Parts-of-the-VirtualServer-and-VirtualServerRoute)
19
+
-[Upstream](#Upstream)
20
+
-[Split](#Split)
21
+
-[Rules](#Rules)
22
+
-[Condition](#Condition)
23
+
-[Match](#Match)
24
+
-[Using VirtualServer and VirtualServerRoute](#Using-VirtualServer-and-VirtualServerRoute)
25
+
-[Validation](#Validation)
26
+
-[Customization via ConfigMap](#Customization-via-ConfigMap)
15
27
16
28
## Prerequisites
17
29
@@ -164,13 +176,16 @@ The upstream defines a destination for the routing configuration. For example:
164
176
name: tea
165
177
service: tea-svc
166
178
port: 80
179
+
lb-method: "round_robin"
167
180
```
168
181
169
182
| Field | Description | Type | Required |
170
183
| ----- | ----------- | ---- | -------- |
171
184
| `name` | The name of the upstream. Must be a valid DNS label as defined in RFC 1035. For example, `hello` and `upstream-123` are valid. The name must be unique among all upstreams of the resource. | `string` | Yes |
172
185
| `service` | The name of a [service](https://kubernetes.io/docs/concepts/services-networking/service/). The service must belong to the same namespace as the resource. If the service doesn't exist, NGINX will assume the service has zero endpoints and return a `502` response for requests for this upstream. | `string` | Yes |
173
186
| `port` | The port of the service. If the service doesn't define that port, NGINX will assume the service has zero endpoints and return a `502` response for requests for this upstream. The port must fall into the range `1..65553`. | `uint16` | Yes |
187
+
| `lb-method` | The load [balancing method](https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/#choosing-a-load-balancing-method). To use the round-robin method, specify `round_robin`. The default is specified in the `lb-method` ConfigMap key. | `string` | No |
0 commit comments