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
Add per-network FRRConfiguration selector config so unmanaged
no-overlay UDN networks can create RouteAdvertisements before
waiting for transport acceptance.
Render RouteAdvertisements for primary and secondary CUDNs using
the UDN network labels, and clean them up with the other UDN
cluster-scoped resources.
Signed-off-by: Venkat Kunaparaju <vkunaparaju@nvidia.com>
Copy file name to clipboardExpand all lines: README.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,9 +83,11 @@ tft:
83
83
mode: "(33)"
84
84
topology: "(34)"
85
85
transport: "(35)"
86
-
kubeconfig: (36)
87
-
kubeconfig_infra: (36)
88
-
dpu_node_host_label: (37)
86
+
frr_configuration_selector: # (36)
87
+
"(37)": "(38)"
88
+
kubeconfig: (39)
89
+
kubeconfig_infra: (39)
90
+
dpu_node_host_label: (40)
89
91
```
90
92
91
93
1. "name" - This is the name of the test. Any string value to identify the test.
@@ -206,10 +208,13 @@ dpu_node_host_label: (37)
206
208
33. "mode" - (Optional) Field under `udn_primary_network`. Supported values are `udn` and `cudn`.
207
209
34. "topology" - (Optional) Field under `udn_primary_network`. Supported values are `layer3` and `layer2`.
208
210
35. "transport" - (Optional) Field under `udn_primary_network`. Supported values are `overlay` and `no-overlay`; `no-overlay` requires `mode: cudn` and `topology: layer3`.
209
-
36. "kubeconfig", "kubeconfig_infra": if set to non-empty strings, then these are the KUBECONFIG
211
+
36. "frr_configuration_selector" - (Optional) Field under `udn_primary_network`. Map of `frrConfigurationSelector.matchLabels` labels used to create RouteAdvertisements for unmanaged no-overlay CUDNs. If omitted or empty, RouteAdvertisements are not created.
212
+
37. selector label key - A Kubernetes label key under `frr_configuration_selector`.
213
+
38. selector label value - A Kubernetes label value under `frr_configuration_selector`. Empty string values are supported.
214
+
39. "kubeconfig", "kubeconfig_infra": if set to non-empty strings, then these are the KUBECONFIG
210
215
files. "kubeconfig_infra" must be set for DPU cluster mode. If both are empty, the configs
211
216
are detected based on the files we find at /root/kubeconfig.*.
212
-
37. "dpu_node_host_label": (Required for DPU mode) The label on DPU nodes that identifies
217
+
40. "dpu_node_host_label": (Required for DPU mode) The label on DPU nodes that identifies
213
218
which host worker node they belong to. For NVIDIA DPUs, use `provisioning.dpu.nvidia.com/host`.
214
219
215
220
@@ -235,6 +240,18 @@ The primary CIDR defaults to `15.1.0.0/16`. Secondary CIDRs default to `15.2.0.0
235
240
236
241
`udn_primary_network` supports `mode` values `udn` and `cudn`, `topology` values `layer3` and `layer2`, and `transport` values `overlay` and `no-overlay`. `no-overlay` requires `mode: cudn` and `topology: layer3`.
237
242
243
+
For unmanaged no-overlay primary CUDNs, set `frr_configuration_selector` to create a RouteAdvertisements object that advertises the selected CUDN pod network. The selector is a map of `frrConfigurationSelector.matchLabels` labels. When `TFT_UDN_NO_OVERLAY_ROUTING_MANAGED` is true, RouteAdvertisements are not created.
244
+
245
+
```yaml
246
+
udn_primary_network:
247
+
mode: cudn
248
+
topology: layer3
249
+
transport: no-overlay
250
+
frr_configuration_selector:
251
+
network: blue
252
+
ra.k8s.ovn.org/example: ""
253
+
```
254
+
238
255
## DPU Mode
239
256
240
257
When running with a DPU (Data Processing Unit) cluster, the `validate_offload` plugin needs
0 commit comments