Skip to content

Commit 5d27357

Browse files
committed
Added missing ClusterUserDefinedNetwork, based on feedback from Robert G.
1 parent ee94d99 commit 5d27357

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: k8s.ovn.org/v1
2+
kind: ClusterUserDefinedNetwork
3+
metadata:
4+
name: cudn-localnet1-2003
5+
spec:
6+
namespaceSelector:
7+
matchExpressions:
8+
- key: kubernetes.io/metadata.name
9+
operator: In
10+
values:
11+
- default
12+
network:
13+
localnet:
14+
ipam:
15+
mode: Disabled
16+
physicalNetworkName: localnet1
17+
role: Secondary
18+
vlan:
19+
access:
20+
id: 2003
21+
mode: Access
22+
topology: Localnet

content/cluster-installation/hosted-control-plane/tenant-network/index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ spec:
237237

238238
1. Attach NodePool VMs to the tenant segment using a user-defined network (UDN) `localnet` attachment (`default/cudn-localnet1-2003` in this lab).
239239

240+
??? example "ClusterUserDefinedNetwork for `default/cudn-localnet1-2003`"
241+
242+
```yaml
243+
--8<-- "content/cluster-installation/hosted-control-plane/tenant-network/cudn-localnet1-2003.yaml"
244+
```
245+
240246
### Deploy external load balancer for the Hosted-Cluster API (`api-lb`)
241247

242248
Use an RHEL 9 virtual machine with HAProxy.
@@ -285,6 +291,14 @@ Add DNS record:
285291
* WebUI bug: ACM shows `https://console-openshift-console.apps.tenant-a.apps.ocp5.stormshift.coe.muc.redhat.com/` for the console, but the URL should be `https://console-openshift-console.apps.tenant-a.coe.muc.redhat.com/`.
286292
* Add custom endpoint publishing strategy
287293
* Find a solution for the NodePort chicken-and-egg problem of the external API load balancer
294+
* Improve ClusterUserDefinedNetwork with following selector:
295+
296+
```yaml
297+
namespaceSelector:
298+
matchExpressions:
299+
- key: hypershift.openshift.io/hosted-control-plane
300+
operator: Exists
301+
```
288302

289303
## Verions
290304

0 commit comments

Comments
 (0)