@@ -171,6 +171,28 @@ The following is required for a Route to be attached to a Gateway:
171
171
1 . The Route needs an entry in its ` parentRefs ` field referencing the Gateway.
172
172
2 . At least one listener on the Gateway needs to allow this attachment.
173
173
174
+ #### Referencing Gateways
175
+
176
+ A Route can reference a Gateway by specifying the namespace(optional if the
177
+ Route and the Gateway are in the same namespace) and name of the Gateway in
178
+ a ` parentRef ` . A Route can further select a subset of listeners under the
179
+ Gateway using the following fields in ` parentRef ` :
180
+
181
+ 1 . ** sectionName** When ` sectionName ` is set, the Route selects the listener
182
+ with the specified name.
183
+ 2 . ** port** When ` port ` is set, the Route selects all listeners listening on
184
+ the specified port and with protocol compatible with this kind of Route.
185
+ It’s not recommended to set ` port ` unless the networking behaviors specified
186
+ in a Route must apply to a specific port as opposed to a listener(s) whose
187
+ port(s) may be changed.
188
+
189
+ When multiple fields in ` parentRef ` are set, the Route selects listeners that
190
+ satisfy all conditions specified in those fields. For example, when both
191
+ ` sectionName ` and ` port ` are set, the Route selects listeners with the specified
192
+ name AND listening on the specified port.
193
+
194
+ #### Restricting Route Attachment
195
+
174
196
Each Gateway listener can restrict which Routes can be attached with the
175
197
following mechanisms:
176
198
0 commit comments