# US 2024/0179070 A1 · Implementing defined service policies in a third-party container cluster

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0179070 A1
- Document ID: US20240179070A1
- Status: Published application
- Kind: A1
- Application number: 18/098,072
- Filed: 2023-01-17
- Published: 2024-05-30
- Earliest claimed: 2022-11-29
- Assignees: VMware, Inc.
- Applicants: VMware LLC
- Inventors: Zhengsheng Zhou; Jianjun Shen; Quan Tian; Wenfeng Liu; Donghai Han
- Web page: https://patentgrep.com/patent/US20240179070A1

## CPC

- H04L 41/122: of virtualised topologies, e.g. software-defined networks [SDN] or network function virtualisation [NFV]
- H04L 41/0894: Policy-based network configuration management
- H04L 41/0895: Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Some embodiments provide a method of implementing service rules for a container cluster that is configured by a first SDN controller cluster. The method registers for event notification from an application programming interface (API) server to receive notification regarding events associated with resources deployed in the container cluster. The method forwards to a second SDN controller cluster resource identifiers collected through the registration for resources of the container cluster. The second SDN controller cluster defines service policies that are not defined by the first SDN controller cluster. The method receives, from the second SDN controller cluster, service policies defined by the second SDN controller cluster based on the resource identifiers. The method distributes service rules defined based on the service policies to network elements in the container cluster to enforce on data messages associated with machines deployed in the container cluster configured by the first SDN controller cluster.

## Claims

### Claim 1

A method of implementing service rules for a container cluster that is configured by a first software defined network (SDN) controller cluster, the method comprising:
registering for event notification from an application programming interface (API) server to receive notification regarding a set of events associated with resources deployed in the container cluster;
forwarding to a second SDN controller cluster a plurality of resource identifiers that are collected through the registration for a plurality of resources of the container cluster, the second SDN controller cluster defining service policies that are not defined by the first SDN controller cluster;
receiving, from the second SDN controller cluster, a set of service policies defined by the second SDN controller cluster based on the plurality of resource identifiers; and
distributing service rules defined based on the received set of service policies to network elements in the container cluster, said network elements enforcing the service rules on data messages associated with machines deployed in the container cluster configured by the first SDN controller cluster.

### Claim 2 (depends on 1)

The method of claim 1, wherein the notification regarding the set of events comprises notification of one or more updates to the plurality of resource identifiers, the method further comprising receiving the plurality resource identifiers from the API server.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of resource identifiers comprises a plurality of network addresses for the plurality of resources.

### Claim 4 (depends on 3)

The method of claim 3, wherein the plurality of resources comprise one or more of pods and nodes hosting one or more pods in the container cluster.

### Claim 5 (depends on 1)

The method of claim 1, wherein the set of service policies is received by a set of one or more adapters residing in the container cluster.

### Claim 6 (depends on 5)

The method of claim 5, wherein the set of adapters forwards the set of service policies to a third SDN controller cluster that resides in the container cluster but does not configure the container cluster.

### Claim 7 (depends on 6)

The method of claim 6, wherein
the third SDN controller cluster distributes the set of service policies to a particular agent operating on a particular node in the container cluster,
the particular agent is designated as a master agent of the container cluster and the particular node is designated as a master node of the container cluster, and
the particular agent uses the set of service policies to define the service rules.

### Claim 8 (depends on 7)

The method of claim 7, wherein the particular agent distributes the service rules to secondary agents operating on secondary nodes in the container cluster for the secondary agents to distribute the service rules to network elements operating in their respective nodes.

### Claim 9 (depends on 7)

The method of claim 7, wherein the particular agent distributes the service rules to network elements operating on the particular node and secondary nodes in the container cluster for the network elements to enforce the service rules.

### Claim 10 (depends on 6)

The method of claim 6, wherein the third SDN controller cluster determines which service policies in the set of service policies are to be enforced at each of the network elements in the container cluster and distributes, to each of a plurality of nodes hosting the network elements, at least a subset of service policies applicable at the node.

### Claim 11 (depends on 10)

The method of claim 10, wherein, at each node, an agent receives the subset of service policies and uses the subset of service policies to define a set of service rules to enforce at the node.

### Claim 12 (depends on 11)

The method of claim 11, wherein, at each node, the agent distributes the set of service rules to network elements operating on the node for the network elements to enforce the set of service rules.

### Claim 13 (depends on 11)

The method of claim 11, wherein, at each node, the agent uses the subset of service policies to define the set of service rules by translating the subset of service policies to Open vSwitch (OVS) flows to enforce at the node.

### Claim 14 (depends on 1)

The method of claim 1, wherein the service rules are to be enforced on data messages exchanged between the machines in the container cluster and machines configured by a third SDN controller cluster.

### Claim 15 (depends on 14)

The method of claim 14, wherein the container cluster is a first container cluster, and the set of service policies is defined by the second SDN controller cluster based also on resource identifiers for resources, deployed in a second container cluster configured by the third SDN controller cluster, sent to the second SDN controller cluster by a set of one or more adapters deployed in the second container cluster.

### Claim 16 (depends on 1)

The method of claim 1, wherein distributing the service rules to the network elements in the container cluster comprises distributing a subset of the service rules to at least two network elements that implement a distributed network element.

### Claim 17 (depends on 16)

The method of claim 16, therein the distributed network element comprises one of a logical switch, a logical router, a logical middlebox service network element.

### Claim 18

A non-transitory machine readable medium storing a program for execution by at least one processing unit for implementing service rules for a container cluster that is configured by a first software defined network (SDN) controller cluster, the program comprising sets of instructions for:
registering for event notification from an application programming interface (API) server to receive notification regarding a set of events associated with resources deployed in the container cluster;
forwarding to a second SDN controller cluster a plurality of resource identifiers that are collected through the registration for a plurality of resources of the container cluster, the second SDN controller cluster defining service policies that are not defined by the first SDN controller cluster;
receiving, from the second SDN controller cluster, a set of service policies defined by the second SDN controller cluster based on the plurality of resource identifiers; and
distributing service rules defined based on the received set of service policies to network elements in the container cluster, said network elements enforcing the service rules on data messages associated with machines deployed in the container cluster configured by the first SDN controller cluster.

### Claim 19 (depends on 18)

The non-transitory machine readable medium of claim 18, wherein the set of service policies is received by a set of one or more adapters residing in the container cluster.

### Claim 20 (depends on 19)

The non-transitory machine readable medium of claim 19, wherein the set of adapters forwards the set of service policies to a third SDN controller cluster that resides in the container cluster but does not configure the container cluster.
