@@ -171,6 +171,31 @@ 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
+ !!! info "Experimental Channel"
177
+
178
+ The `Port` field described below is currently only included in the
179
+ "Experimental" channel of Gateway API. For more information on release
180
+ channels, refer to the [related documentation](https://gateway-api.sigs.k8s.io/concepts/versioning/#adding-experimental-fields).
181
+
182
+ A Route can reference a Gateway by specifying the namespace (optional if the
183
+ Route and the Gateway are in the same namespace) and name of the Gateway in
184
+ a ` parentRef ` . A Route can further select a subset of listeners under the
185
+ Gateway using the following fields in ` parentRef ` :
186
+
187
+ 1 . ** SectionName** When ` sectionName ` is set, the Route selects the listener
188
+ with the specified name.
189
+ 2 . ** Port** When ` port ` is set, the Route selects all listeners listening on
190
+ the specified port and with protocol compatible with this kind of Route.
191
+
192
+ When multiple fields in ` parentRef ` are set, the Route selects listeners that
193
+ satisfy all conditions specified in those fields. For example, when both
194
+ ` sectionName ` and ` port ` are set, the Route selects listeners with the specified
195
+ name AND listening on the specified port.
196
+
197
+ #### Restricting Route Attachment
198
+
174
199
Each Gateway listener can restrict which Routes can be attached with the
175
200
following mechanisms:
176
201
0 commit comments