Network controller as a service (NCaaS) to define network policies for third-party container clusters
Abstract
Some embodiments provide a method for using a first SDN controller as a Network Controller as a Service (NCaaS). The first SDN controller receives a first set of network attributes regarding network elements in a first container cluster configured by a second SDN controller, and a second set of network attributes regarding network elements in a second container cluster configured by a third SDN controller. These container clusters do not have a controller for defining particular network policies. Based on the sets of network attributes, the first SDN controller defines the particular network policies to control forwarding data messages between the first and second container clusters. The first SDN controller distributes at least a subset of the particular network policies to the first container cluster in order for network elements at the first container cluster to enforce on data messages exchanged between the first and second container clusters.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 1.
Claims (20 — 2 Independent, 18 Dependent)
- Claim 1Independent Claim
A method for using a first software defined networking (SDN) controller cluster as a network controller as a service (NCaaS) to define a particular set of network policies to enforce in a plurality of container clusters, the method comprising: at the first SDN controller cluster that provides the network controller as a service: receiving a first set of network attributes regarding a first set of network elements in a first container cluster that is configured by a second SDN controller cluster and does not have a controller cluster in the first container cluster for defining the particular set of network policies; receiving a second set of network attributes regarding a second set of network elements in a second container cluster that is configured by a third SDN controller cluster and does not have a controller cluster in the second container cluster for defining the particular set of network policies; based on the first and second sets of network attributes, defining the particular set of network policies to control forwarding data messages between the first and second container clusters; and distributing at least a subset of the defined network policies to the first container cluster in order for at least one of the first set of network elements at the first container cluster to enforce on data messages exchanged between the first and second container clusters.
- Claim 2Depends on #1
The method of claim 1, wherein each container cluster has at least one controller cluster that defines network policies to control forwarding data messages between network elements within the container cluster but does not have a controller cluster that defines network policies to control forwarding data messages between network elements that are in different container clusters.
- Claim 3Depends on #1
The method of claim 1, wherein the second and third SDN controller clusters of the first and second container clusters are deployed by different cloud providers than a particular cloud provider of the first SDN controller cluster.
- Claim 4Depends on #3
The method of claim 3, wherein the particular cloud provider provides the first SDN controller cluster as an NCaaS for a plurality of tenants.
- Claim 5Depends on #4
The method of claim 4 further comprising receiving a first tenant identifier (ID) identifying a first tenant that deploys the first container cluster; receiving a second tenant ID identifying a second tenant that deploys the second container cluster; and defining the set of particular set of network policies based also on the first and second tenant IDs.
- Claim 6Depends on #1
The method of claim 1, wherein the distributed subset of the defined network policies is a first subset of the defined network policies, the method further comprising distributing a second subset of the defined network policies to the second container cluster in order for at least one set of one or more network elements at the second container cluster to enforce on data messages exchanged between the first and second container clusters.
- Claim 7Depends on #1
The method of claim 1, wherein the distributed subset of the defined network policies defines network policies to enforce on data messages forwarded from the first container cluster to the second container cluster.
- Claim 8Depends on #1
The method of claim 1, wherein the distributed subset of the defined network policies defines network policies to enforce on data messages forwarded from the second container cluster to the first container cluster.
- Claim 9Depends on #1
The method of claim 1, wherein distributing the subset of the defined network policies to the first container cluster comprises distributing the subset of the defined network policies to a set of one or more agents operating on one or more nodes in the first container cluster, wherein the set of agents (1) use the subset of the defined network policies to define a set of service rules and (2) distribute the set of service rules to the set of network elements to apply to data messages exchanged between the first and second container clusters.
- Claim 10Depends on #9
The method of claim 9, wherein the set of network elements that apply the set of service rules comprises at least one of an ingress gateway and an egress gateway operating on nodes in the first container cluster.
- Claim 11Depends on #9
The method of claim 9, wherein the set of network elements that apply the set of service rules comprises one or more source and destination machines operating on the nodes.
- Claim 12Depends on #1
The method of claim 1 further comprising: receiving at least one update to one or more network attributes; based on the at least one update to one or more network attributes, defining an updated set of network policies to control forwarding data messages between the first and second container clusters; and distributing at least a subset of the updated set of network policies to first container cluster in order for the at least one of the first set of network elements at the first container cluster to enforce on subsequent data messages exchanged between the first and second container clusters.
- Claim 13Depends on #1
The method of claim 1, wherein the first and second sets of network attributes comprise network addresses for the first and second sets of network elements.
- Claim 14Depends on #13
The method of claim 13, wherein the first and second sets of network elements comprise one or more of pods and nodes hosting one or more pods.
- Claim 15Depends on #1
The method of claim 1, wherein the second and third SDN controller clusters are Kubernetes SDN controller clusters, and the first SDN controller cluster is a network virtualization controller cluster that configures virtual machines (VMs) of a logical network.
- Claim 16Depends on #15
The method of claim 15, wherein the first SDN controller cluster also configures containers.
- Claim 17Independent Claim
A non-transitory machine readable medium storing a program for execution by at least one processing unit for using a first software defined networking (SDN) controller cluster as a network controller as a service (NCaaS) to define a particular set of network policies to enforce in a plurality of container clusters, the program comprising sets of instructions for: at the first SDN controller cluster that provides the network controller as a service: receiving a first set of network attributes regarding a first set of network elements in a first container cluster that is configured by a second SDN controller cluster and does not have a controller cluster in the first container cluster for defining the particular set of network policies; receiving a second set of network attributes regarding a second set of network elements in a second container cluster that is configured by a third SDN controller cluster and does not have a controller cluster in the second container cluster for defining the particular set of network policies; based on the first and second sets of network attributes, defining the particular set of network policies to control forwarding data messages between the first and second container clusters; and distributing at least a subset of the defined network policies to the first container cluster in order for at least one of the first set of network elements at the first container cluster to enforce on data messages exchanged between the first and second container clusters.
- Claim 18Depends on #17
The non-transitory machine readable medium of claim 17, wherein each container cluster has at least one controller cluster that defines network policies to control forwarding data messages between network elements within the container cluster but does not have a controller cluster that defines network policies to control forwarding data messages between network elements that are in different container clusters.
- Claim 19Depends on #17
The non-transitory machine readable medium of claim 17, wherein the second and third SDN controller clusters of the first and second container clusters are deployed by different cloud providers than a particular cloud provider of the first SDN controller cluster.
- Claim 20Depends on #19
The non-transitory machine readable medium of claim 19, wherein the particular cloud provider provides the first SDN controller cluster as an NCaaS for a plurality of tenants.
Technical Overview & Description
BACKGROUND Container networks (e.g., Kubernetes) are an increasingly popular type of network system for deploying applications in datacenters. The sets of containers of containers produced by such a system can be deployed more rapidly than virtual machines (VMs) or physical computers. Therefore, a deployment can be scaled up or down to meet demand more rapidly than is typical for VMs or physical computers. In addition, a set of containers in a container network system has less overhead and can generally perform the same tasks faster than a corresponding VM would. Currently, there is a need for defining policies in a software defined network (SDN) for enforcement on traffic to and from sets of containers in a Kubernetes container cluster. BRIEF SUMMARY Some embodiments provide a novel method for defining policies for a container cluster in a first virtual private cloud (VPC) that is configured by a first software defined network (SDN) controller cluster. A second SDN controller cluster that resides in a second VPC for defining service policies that are not defined by the first SDN controller cluster receives, from a set of one or more adapters deployed in the first VPC for the second SDN controller cluster, resource identifiers for several resources of the container cluster. The second SDN controller cluster uses the resource identifiers to define a set of service policies. Then, the second SDN controller cluster distributes the set of service policies to a set of network elements to enforce the set of service policies on data messages associated with machines deployed in the first VPC and configured by the first SDN controller cluster. In some embodiments, the first and second VPCs are in a same datacenter. In other embodiments, the first VPC is in a first datacenter and the second VPC is in a second, different datacenter. This first datacenter may belong to a first entity and the second datacenter may belong to a second, different entity. The first and second VPCs
Cited By — Indexed Forward Citations (1 of 1 total)
References Cited — Backward Prior Art (80)
Non-Patent Literature (10)
- Abhashkumar, Anubhavnidhi, et al.,
- “
- Supporting Diverse Dynamic Intent-based Policies Using Janus,
- ”
- CoNEXT 17, Dec. 12-15, 2017, 14 pages, ACM, Incheon, KR.
- Abwnawar, Nasser,
- “
- A Policy-Based Management Approach to Security in Cloud Systems,
- ”
- Feb. 2020, 184 pages, De Monfort University, Leicester, UK.