Benefits of a user-defined network
User-defined networks enable tenant isolation by providing each namespace with its own isolated primary network, reducing cross-tenant traffic risks and simplifying network management by eliminating the need for complex network policies.
User-defined networks offer the following benefits:
-
Enhanced network isolation for security
-
Tenant isolation: Namespaces can have their own isolated primary network, similar to how tenants are isolated in Red Hat OpenStack Platform (RHOSP). This improves security by reducing the risk of cross-tenant traffic.
-
-
Network flexibility
-
Layer 2 and layer 3 support: Cluster administrators can configure primary networks as layer 2 or layer 3 network types.
-
-
Simplified network management
-
Reduced network configuration complexity: With user-defined networks, the need for complex network policies are eliminated because isolation can be achieved by grouping workloads in different networks.
-
-
Advanced capabilities
-
Consistent and selectable IP addressing: Users can specify and reuse IP subnets across different namespaces and clusters, providing a consistent networking environment.
-
Support for multiple networks: The user-defined networking feature allows administrators to connect multiple namespaces to a single network, or to create distinct networks for different sets of namespaces.
-
Virtual machine reachability over CUDN: When you attach virtual machines (VM)s to a layer 2
ClusterUserDefinedNetworkwith BGP route advertisements enabled, you can publish VM routes to the provider network and import routes back, avoiding per‑node static routes while improving VM ingress and egress reachability.
-
-
Simplification of application migration from Red Hat OpenStack Platform (RHOSP)
-
Network parity: With user-defined networking, the migration of applications from OpenStack to Red Hat OpenShift Container Platform is simplified by providing similar network isolation and configuration options.
-
Developers and administrators can create a user-defined network that is namespace scoped using the custom resource. An overview of the process is as follows:
-
An administrator creates a namespace for a user-defined network with the
k8s.ovn.org/primary-user-defined-networklabel. -
The
UserDefinedNetworkCR is created by either the cluster administrator or the user. -
The user creates pods in the namespace.