Configure a service load balancer with the specified backend virtual network
By annotating service definitions and configuring virtual network interfaces, the complexity of load balancers handling multiple virtual network interfaces in virtualized computing infrastructure is solved, achieving load balancer scalability and consistency in service traffic processing. Reduces configuration management complexity.
Patent Information
- Application Number
- CN202210092742.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-03-29
- Filing Date
- 2019-09-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-09-24
AI Technical Summary
Existing load balancers struggle to effectively manage multiple virtual network interfaces in virtualized computing infrastructure, resulting in configuration management complexity and inconsistent service traffic processing.
By annotating the service definition and specifying the back-end virtual network for the load balancer, the network controller identifies and configures the corresponding virtual network interface, ensuring that the load balancer uses the specific virtual network interface for traffic forwarding, achieving control over the number of back-end racks. Scalability and consistency in service traffic handling.
It improves the scalability of the load balancer and the consistency of service traffic processing, reduces the complexity of configuration management, and ensures that service data processing does not affect the management interface.
Smart Images

Figure CN114422351B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to virtualized computing infrastructures, and more particularly, to configuring a load balancer for virtual executives (eg, virtual machines or containers) of a virtualized computing infrastructure deployed within a network. Background Art
[0002] In a typical cloud data center environment, a large number of interconnected servers provide computing and / or storage capabilities to run various applications. For example, a data center may include facilities that host applications and services for subscribers (i.e., customers of the data center). For example, a data center may host all infrastructure equipment, such as network and storage systems, redundant power supplies, and environmental controls. In a typical data center, storage systems and application server clusters are interconnected via a high-speed switching fabric provided by one or more layers of physical network switches and routers. More complex data centers provide a global infrastructure where user support equipment is located in various physical host facilities.
[0003] Virtualized data centers are becoming a core foundation of modern information technology (IT) infrastructure. In particular, modern data centers have widely utilized virtualized environments in which virtual hosts (also referred to herein as virtual execution elements, e.g., virtual machines or containers) are deployed and executed on underlying computing platforms of physical computing devices.
[0004] Virtualization within a data center can provide several advantages. One advantage is that virtualization can significantly improve efficiency. With the advent of multi-core microprocessor architectures with large numbers of cores per physical CPU, the underlying physical computing devices (i.e., servers) have become increasingly powerful, and virtualization has become easier and more efficient. A second advantage is that virtualization provides significant control over the computing infrastructure. As physical computing resources become fungible, for example, in cloud-based computing environments, the provisioning and management of computing infrastructure becomes easier. Therefore, in addition to the efficiency and higher return on investment (ROI) provided by virtualization, enterprise information technology personnel often prefer virtualized computing clusters in the data center because of their management advantages.
[0005] Containerization is a virtualization scheme based on operating system-level virtualization. Containers are lightweight and portable execution elements for applications that are isolated from each other and from the host. Because containers are not tightly coupled to the host hardware computing environment, applications can be bound to container images and executed as a single lightweight package on any host or virtual host that supports the underlying container architecture. Containers therefore solve the problem of how to make software work in different computing environments. Containers offer the promise of persistent operation from one computing environment to another virtual or physical computing environment.
[0006] Due to the inherently lightweight nature of containers, a single host can typically support many more container instances than traditional virtual machines (VMs). Containers are typically ephemeral and can be created and moved more efficiently than VMs, and they can also be managed as groups of logically related elements (sometimes called "pods" for some orchestration platforms, such as Kubernetes). These container characteristics influence the requirements for container networking solutions: the network should be agile and scalable. VMs, containers, and bare metal servers may need to coexist in the same computing environment, enabling communication between different application deployments. Container networks should also be agnostic about how to work with the variety of orchestration platforms used to deploy containerized applications.
[0007] Managing the deployment and computing infrastructure of application execution infrastructure may involve two main roles: (1) Orchestration - used to automate the deployment, scaling, and operation of applications on clusters of hosts and provision computing infrastructure, which can include container-centric computing infrastructure; and (2) Network management - used to create virtual networks in the network infrastructure to enable packet communication between applications running on virtual execution environments (e.g., containers or VMs) and between applications running on traditional (e.g., physical) environments. Software-defined networking facilitates network management. Summary of the invention
[0008] In general, techniques for specifying a backend virtual network for a service load balancer are described. For example, based on a specified backend virtual network for a service, a network controller selects a virtual network interface from a plurality of available virtual network interfaces that can be used by a logically related group of one or more containers ("pods") that are elements of the service, and configures the selected virtual network interface as an exposed interface of a service backend. A container network interface plugin (CNI) is a networking solution for application containers, and is a runtime executable that configures a network interface to a container network namespace and configures a computing device ("host") that hosts a container, which can be an element of a pod. The CNI also assigns a network address (e.g., an IP address) to the network interface, and can also add routes associated with the interface, such as a default gateway and routes to one or more name servers.
[0009] The IP address of a given pod is indeterminate. That is, once the corresponding pod is terminated, the IP address no longer exists, and from that point on, the functionality provided by the pod becomes unavailable. To address this issue, an orchestration system (e.g., Kubernetes) can use services to abstract a set of logical pods. A service can be implemented, for example, as a layer 4 (L4) load balancer and configured by the network controller of the virtualized computing infrastructure. Each pod abstracted by a service represents a so-called "backend" for each load balancer, to which the pod is linked and handles requests made to the service. Client modules can access the load balancer using its service IP address, regardless of any changes in the backend. In this way, the load balancer provides a pod-independent way to use the functionality provided by the currently active pods.
[0010] In some examples, a pod can be configured with virtual network interfaces for multiple networks. The load balancer is configured to identify a backend by using one of several available objects associated with the corresponding pod. The load balancer is configured to forward traffic to each backend using the virtual network interface of the corresponding pod. However, existing load balancers default to a virtual network interface corresponding to a default virtual network for sending traffic to a particular pod.
[0011] According to aspects of the present disclosure, a service definition of a service is annotated to specify one or more virtual networks for exposing a backend to the service. A network controller identifies one or more corresponding virtual network interfaces in each pod to be used by a service load balancer for the specified one or more virtual networks, and configures the load balancer to use the virtual network interface, for example, as a next hop.
[0012] In one example, a system includes one or more computing devices interconnected by a physical network, wherein each computing device includes a processing circuit coupled to a storage device. The system includes an orchestrator for virtualizing a computing infrastructure, wherein the orchestrator is configured to be executed by a computing device. The orchestrator is configured to: receive a service definition of a service implemented by load balancing service traffic of the service between a plurality of backend virtual execution elements, wherein the service definition specifies a first virtual network to be used as a backend virtual network of the service; and instantiate a backend virtual execution element of the service in a selected computing device. The system includes a network controller for virtualizing a computing infrastructure, wherein the network controller is configured to be executed by a computing device. The network controller is configured to: send interface configuration data to the selected computing device so as to configure a first virtual network interface for the first virtual network and a second virtual network interface for the second virtual network for the backend virtual execution element; and based on the service definition of the first virtual network that specifies the backend virtual network to be used as the service, configure the load balancer to partially load balance the service traffic to the first virtual network interface.
[0013] In another example, a method includes receiving, by an orchestrator of a virtualized computing infrastructure including one or more computing devices, a service definition of a service implemented by load balancing service traffic of the service between multiple backend virtual execution elements, wherein the service definition specifies a first virtual network to be used as a backend virtual network for the service. The method also includes instantiating, by the orchestrator, a backend virtual execution element of the service in a selected one of the computing devices. The method also includes sending interface configuration data to the selected computing device so as to configure a first virtual network interface for the first virtual network and a second virtual network interface for the second virtual network for the backend virtual execution element. The method also includes configuring a load balancer based on the service definition of the first virtual network that specifies the backend virtual network to be used as the service, to partially load balance service traffic to the first virtual network interface.
[0014] In another example, the present disclosure describes an orchestrator for a virtualized computing infrastructure. The orchestrator includes one or more computing devices, wherein each computing device includes a processing circuit coupled to a storage device. The orchestrator is configured to be executed by the computing device. The orchestrator is configured to: receive a service definition of a service implemented by load balancing service traffic of the service between multiple back-end virtual execution elements, wherein the service definition specifies a first virtual network to be used as a back-end virtual network for the service; instantiate a back-end virtual execution element of the service in a selected one of the computing devices; and based on the service definition specifying the first virtual network as the back-end virtual network for the service, configure a network controller for the virtualized computing infrastructure to configure a load balancer to load balance service traffic to a first virtual network interface of the back-end virtual element for the first virtual network.
[0015] The techniques and system configurations of the present disclosure provide one or more potential technical advantages relative to practical applications of container-based virtualized computing infrastructure. For example, by configuring a load balancer to use a virtual network interface corresponding to a backend rack of a particular virtual network, these techniques can improve scalability in terms of the number of racks that can be set as the backend of the load balancer. Therefore, these techniques can facilitate the use of a single virtual network to handle service traffic for a load balancer, which can improve the consistency of service traffic processing and reduce the complexity of configuration management. The techniques of the present disclosure allow management data to be processed separately through a management interface and service data to be processed separately through a data interface. That is, according to the techniques and system configurations of the present disclosure, the processing of service data does not burden the management interface.
[0016] The details of one or more embodiments of the disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a block diagram illustrating an example computing infrastructure in which examples of the techniques described herein may be implemented.
[0018] Figure 2 is a block diagram of an example computing device in accordance with techniques described in this disclosure.
[0019] Figure 3 is a conceptual diagram illustrating a system that implements the configurable endpoint technology of the present disclosure.
[0020] Figure 4 is a block diagram of an example computing device operating as a controller of a virtualized computing infrastructure in accordance with the techniques described in this disclosure.
[0021] Figure 5 is a flow chart illustrating an example of creating multiple network virtual interfaces for a virtual executive element according to techniques described in this disclosure.
[0022] Figure 6 is a screenshot showing an example of a Kubernetes service of the present disclosure.
[0023] Figure 7 is a screenshot illustrating an example of one or more load balancer listeners of the present disclosure.
[0024] Figure 8 is a screenshot showing an example of a load balancer pool of the present disclosure.
[0025] Fig. 9 is a screenshot illustrating an example of one or more load balancer elements of the present disclosure.
[0026] Fig.10 is a screenshot showing an example of annotated load balancer elements of the present disclosure.
[0027] Fig.11 is a screenshot illustrating an example of service IP routing for a compute node in accordance with aspects of the present disclosure.
[0028] Fig.12 is a screenshot illustrating an example of service IP routing for another computing node in accordance with aspects of the present disclosure.
[0029] Fig.13 is a screenshot illustrating an example of service IP routing for another computing node in accordance with aspects of the present disclosure.
[0030] Like reference numerals refer to like elements throughout the specification and drawings. DETAILED DESCRIPTION
[0031] Figure 1 is a block diagram illustrating an example computing infrastructure 8 in which examples of configurations and techniques described herein may be implemented. In general, data center 10 provides an operating environment for applications and services at customer sites 11 (illustrated as "customer 11") having one or more customer networks coupled to the data center via service provider network 7. For example, data center 10 may host infrastructure equipment, such as network and storage systems, redundant power supplies, and environmental controls.
[0032] The service provider network 7 is coupled to a public network 15, which may represent one or more networks managed by other providers and may therefore form part of a large-scale public network infrastructure (e.g., the Internet). The public network 15 may represent, for example, a local area network (LAN), a wide area network (WAN), the Internet, a virtual LAN (VLAN), a corporate LAN, a layer 3 virtual private network (VPN), an Internet Protocol (IP) intranet operated by a service provider operating the service provider network 7, a corporate IP network, or some combination thereof.
[0033] Although customer site 11 and public network 15 are primarily illustrated and described as edge networks of service provider network 7, in some examples, one or more of customer site 11 and public network 15 may be tenant networks within data center 10 or another data center. For example, data center 10 may host multiple tenants (customers), each tenant being associated with one or more virtual private networks (VPNs), each of which may implement one customer site 11.
[0034] The service provider network 7 provides packet-based connectivity to attached customer sites 11, data centers 10, and public networks 15. The service provider network 7 may represent a network owned and operated by a service provider to interconnect multiple networks. The service provider network 7 may implement multi-protocol label switching (MPLS) forwarding, and in this case may be referred to as an MPLS network or MPLS backbone. In some cases, the service provider network 7 represents multiple interconnected autonomous systems, such as the Internet, that provide services from one or more service providers.
[0035] In some examples, data center 10 may represent one of many geographically distributed network data centers. Figure 1As shown in the example of , data center 10 can be a facility that provides network services to customers. Customers of a service provider can be collective entities, such as businesses, governments, or individuals. For example, a network data center can provide network services to several businesses and end users. Other exemplary services may include data storage, virtual private networks, traffic engineering, file services, data mining, scientific or supercomputing, etc. Although illustrated as an independent edge network of a service provider network 7, elements of data center 10 (e.g., one or more physical network functions (PNFs) or virtual network functions (VNFs)) may be included in the core of the service provider network 7.
[0036] In this example, data center 10 includes storage and / or computing servers interconnected by a switching fabric 14 provided by one or more layers of physical network switches and routers, and servers 12A-12X (referred to herein as "servers 12") are depicted as coupled to top-of-rack switches 16A-16N. Servers 12 are computing devices and may also be referred to herein as "hosts" or "host devices." Although Figure 1 Only server 12A coupled to TOR switch 16A is shown in detail, but data center 10 may include many additional servers coupled to other TOR switches 16 in data center 10.
[0037] The switch fabric 14 in the illustrated example includes interconnected top of rack (TOR) (or other "leaf") switches 16A-16N (collectively, "TOR switches 16") coupled to a distribution layer of chassis (or "spine" or "core") switches 18A-18M (collectively, "chassis switches 18"). Although not shown, the data center 10 may also include, for example, one or more non-edge switches, routers, hubs, gateways, security devices (e.g., firewalls), intrusion detection and / or intrusion prevention devices, servers, computer terminals, laptops, printers, databases, wireless mobile devices (e.g., cellular phones or personal digital assistants), wireless access points, bridges, cable modems, application accelerators, or other network devices. The data center 10 may also include one or more physical network functions (PNFs), such as, for example, physical firewalls, load balancers, routers, route reflectors, broadband network gateways (BNGs), evolved packet cores or other cellular network elements, and other PNFs.
[0038] In this example, the TOR switch 16 and the chassis switch 18 provide redundant (multi-homed) connections to the IP fabric 20 and the service provider network 7 to the server 12. The chassis switch 18 aggregates communication flows and provides connections between the TOR switches 16. The TOR switch 16 can be a network device that provides Layer 2 (MAC) and / or Layer 3 (e.g., IP) routing and / or switching functions. The TOR switch 16 and the chassis switch 18 can each include one or more processors and memories, and can execute one or more software processes. The chassis switch 18 is coupled to the IP fabric 20, which can perform Layer 3 routing to route network traffic between the data center 10 and the customer site 11 through the service provider network 7. The switching architecture of the data center 10 is only an example. For example, other switching architectures can have more or fewer switching layers.
[0039] The term "packet flow", "traffic flow", or simply "flow" refers to a group of packets originating from a specific source device or endpoint and sent to a specific destination device or endpoint. For example, a single packet flow can be identified by a 5-tuple: <source network address, destination network address, source port, destination port, protocol>. This 5-tuple generally identifies the packet flow to which the received packets correspond. An n-tuple refers to any n items extracted from a 5-tuple. For example, a 2-tuple of packets can refer to a combination of <source network address, destination network address> or <source network address, source port> for packets.
[0040] The servers 12 may each represent a computing server, a switch, or a storage server. For example, each server 12 may represent a computing device, such as an x86 processor-based server, which is configured to operate according to the techniques described herein. The servers 12 may provide a network function virtualization infrastructure (NFVI) for the NFV architecture.
[0041] Any of the servers 12 may configure virtual execution elements by virtualizing the resources of the server to provide isolation between one or more processes (applications) executing on the server. "Hypervisor-based" or "hardware-level" or "platform" virtualization refers to the creation of virtual machines, each of which includes a client operating system for executing one or more processes.
[0042] Typically, a virtual machine provides a virtualized / guest operating system for executing applications in an isolated virtual environment. Because the virtual machine is virtualized from the physical hardware of the host server, the executing application is isolated from both the host hardware and other virtual machines. Each virtual machine can be configured with one or more virtual network interfaces for communicating on the corresponding virtual network.
[0043] A virtual network is a logical structure implemented on top of a physical network. Virtual networks can be used to replace VLAN-based isolation and provide multi-tenancy in a virtualized data center (e.g., data center 10). Each tenant or application can have one or more virtual networks. Each virtual network can be isolated from all other virtual networks unless explicitly allowed by security policy.
[0044] Virtual networks can use data center 10 edge routers ( Figure 1 The virtual network can be connected to and extended over physical multi-protocol label switching (MPLS) layer 3 virtual private network (L3VPN) and Ethernet virtual private network (EVPN) networks (not shown). Virtual networks can also be used to implement network function virtualization (NFV) and service chaining.
[0045] Virtual networks can be implemented using a variety of mechanisms. For example, each virtual network can be implemented as a virtual local area network (VLAN), a virtual private network (VPN), etc. A virtual network can also be implemented using two networks, i.e., a physical underlying network consisting of an IP structure 20 and a switching structure 14 and a virtual upper layer network. The role of the physical underlying network is to provide an "IP structure" that provides a unicast IP connection from any physical device (server, storage device, router, or switch) to any other physical device. The underlying network can provide a unified low-latency, non-blocking, high-bandwidth connection from any point in the network to any other point in the network.
[0046] As further described below with respect to virtual router 21A, a virtual router running in the kernel or hypervisor of a virtual server 12 creates a virtual overlay network on top of the physical underlying network using a dynamic mesh of "tunnels" between itself. For example, these overlay tunnels can be GRE / UDP tunnels or VXLAN tunnels or MPLS over NVGRE tunnels.
[0047] The underlying physical routers and switches may not contain any per-tenant state for virtual machines or other virtual execution elements, such as any media access control (MAC) addresses, IP addresses, or policies. The forwarding tables of the underlying physical routers and switches may, for example, contain only the IP prefix or MAC address of the physical server 12. (The gateway router or switch that connects the virtual network to the physical network is an exception and may contain tenant MAC or IP addresses.)
[0048] The virtual router 21 of the server 12 typically contains the state of each tenant. For example, any virtual router 21 can contain a separate forwarding table (routing instance) in each virtual network. The forwarding table contains the IP prefixes (in the case of a layer 3 overlay) or MAC addresses (in the case of a layer 2 overlay) of the virtual machines or other virtual execution elements (e.g., container cabins). No single virtual router 21 needs to contain all IP prefixes or all MAC addresses of all virtual machines in the entire data center. A given virtual router 21 only needs to contain those routing instances that exist locally on the server 12 (i.e., there is at least one virtual execution element on the server 12).
[0049] The control plane protocol between the control plane nodes of the network controller 24 or the physical gateway routers (or switches) can be BGP (and can be Netconf for management). This is the same control plane protocol that can also be used for MPLS L3VPN and MPLS EVPN. For example, the protocol between the network controller 24 and the virtual router 21 can be based on XMPP. The message pattern exchanged through XMPP can conform to draft-ietf-l3vpn-end-system-06 entitled "BGP-Signaled End-System IP / VPNs" submitted by Mackie et al. on December 15, 2016, the entire contents of which are incorporated herein by reference.
[0050] "Container-based" or "OS" virtualization refers to the virtualization of an operating system to run multiple isolated systems on a single machine (virtual or physical). Such isolated systems represent containers, such as those provided by the open source Docker container application or CoreOS Rkt ("Rocket"). Like a VM, each container is virtualized and can be isolated from the host and other containers. However, unlike a VM, each container can omit a separate operating system and only provide a suite of applications and specialized libraries.
[0051] Typically, a container is executed by a host as an independent user space instance and may share an operating system and common libraries with other containers executing on the host. As a result, a container may require less processing power, storage, and network resources than a virtual machine. A group of one or more containers may be configured to share one or more virtual network interfaces for communicating on the corresponding virtual networks.
[0052] In some examples, containers are managed by their host kernel to allow for the limitation and prioritization of resources (CPU, memory, block I / O, network, etc.) without the need to launch any virtual machines, in some cases using a namespace isolation feature that allows for a completely isolated application (e.g., a given container) view of its operating environment, including process trees, networks, user identifiers, and mounted file systems. In some examples, containers can be deployed in accordance with Linux Containers (LXC), an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a control host using a single Linux kernel.
[0053] LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host (LXC host). LXC does not use virtual machines (although LXC can be hosted by virtual machines). Instead, LXC uses a virtual environment with its own CPU, memory, block I / O, network, and / or other resource space. The LXC resource control mechanism is provided by namespaces and cgroups in the Linux kernel on the LXC host. For additional information about containers, see Docker, Inc.'s "Docker Overview," available at docs.docker.com / engine / understanding-docker, last accessed on July 9, 2016. Other examples of containerization methods include OpenVZ, FreeBSD jail, AIX workload partitions, and Solaris containers. Therefore, as used herein, the term "container" may include not only LXC-style containers, but also any one or more of a virtualization engine, a virtual private server, a silo, or a jail.
[0054] The servers 12 host virtual network endpoints for one or more virtual networks that operate on a physical network represented here by an IP fabric 20 and a switch fabric 14. Although primarily described with respect to a data center-based switch network, other physical networks (e.g., a service provider network 7) may underlie one or more virtual networks. Each server 12 may host one or more virtual executives, each having at least one virtual network endpoint for one or more virtual networks configured in the physical network. A virtual network endpoint for a virtual network may represent one or more virtual executives that share a virtual network interface of the virtual network.
[0055] For example, a virtual network endpoint can be a virtual machine, a group of one or more containers (e.g., a pod), or another one or more other virtual execution elements, such as a layer 3 endpoint of a virtual network. The term "virtual execution element" includes virtual machines, containers, and other virtualized computing resources that provide at least partially independent execution environments for applications. The term "virtual execution element" may also include a pod of one or more containers. Figure 1 As shown, server 12A hosts a virtual network endpoint in the form of a cabin 22A having one or more containers. However, given the hardware resource limitations of server 12, server 12 can execute as many virtual execution elements as possible. Each virtual network endpoint can use one or more virtual network interfaces to perform packet I / O or otherwise process packets. For example, a virtual network endpoint can use a virtual hardware component (e.g., an SR-IOV virtual function) enabled by NIC 13A to perform packet I / O and receive / send packets on one or more communication links with TOR switch 16A. Other examples of virtual network interfaces are described below.
[0056] Each server 12 includes at least one network interface card (NIC) 13, each network interface card including at least one interface for exchanging packets with the TOR switch 16 via a communication link. For example, server 12A includes NIC 13A. Any NIC 13 can provide one or more virtual hardware components 21 for virtualized input / output (I / O). The virtual hardware component for I / O can be a virtualization ("physical function") of a physical NIC 13. For example, in single root I / O virtualization (SR-IOV) described in the Peripheral Component Interface Special Interest Group SR-IOV specification, the PCIe physical function of a network interface card (or "network adapter") is virtualized to present one or more virtual network interfaces as "virtual functions" for use by corresponding endpoints executing on the server 12.
[0057] In this way, the virtual network endpoints can share the same PCIe physical hardware resources, and the virtual functions are examples of virtual hardware components 21. As another example, one or more servers 12 can implement a paravirtualization, paravirtualization framework, which can be used, for example, in a Linux operating system, which provides an emulated NIC function as a type of virtual hardware component to provide a virtual network interface to a virtual network endpoint. As another example, one or more servers 12 can implement an open vSwitch to perform distributed virtual multi-layer switching between one or more virtual NICs (vNICs) of hosted virtual machines, where such a vNIC can also represent a type of virtual hardware component that provides a virtual network interface to a virtual network endpoint.
[0058] In some cases, the virtual hardware component is a virtual I / O (e.g., NIC) component. In some cases, the virtual hardware component is an SR-IOV virtual function. In some examples, any server of server 12 can implement a Linux bridge that simulates a hardware bridge and forward packets between the virtual network interfaces of the server or between the virtual network interfaces of the server and the physical network interfaces of the server. For Docker implementations of containers hosted by servers, Linux bridges, or other operating system bridges executed on servers, exchanging packets between containers can be referred to as "Docker bridges." The term "virtual router" used herein may include an open vSwitch (OVS), an OVS bridge, a Linux bridge, a Docker bridge, or other devices and / or software that is located on a host device and performs switching, bridging, or routing packets between virtual network endpoints of one or more virtual networks, wherein the virtual network endpoints are hosted by one or more servers 12.
[0059] Any NIC 13 may include an internal device switch to exchange data between virtual hardware components 21 associated with the NIC. For example, for a NIC that supports SR-IOV, the internal device switch may be a virtual Ethernet bridge (VEB) to switch between SR-IOV virtual functions and, accordingly, between endpoints configured to use SR-IOV virtual functions, where each endpoint may include a client operating system. The internal device switch may also be referred to as a NIC switch, or, for an SR-IOV implementation, an SR-IOV NIC switch. The virtual hardware component associated with the NIC 13A may be associated with a Layer 2 destination address, which may be assigned by the NIC 13A or a software process responsible for configuring the NIC 13A. Physical hardware components (or "physical functions" for an SR-IOV implementation) are also associated with a Layer 2 destination address.
[0060] To exchange data between virtual hardware components associated with NIC 13A, the internal device switch may perform layer 2 forwarding to exchange or bridge layer 2 packets between the virtual hardware components and the physical hardware components of NIC 13A. Each virtual hardware component may be located on a virtual local area network (VLAN) of a virtual network of a virtual network endpoint that uses the virtual hardware component for I / O. Further example details of SR-IOV implementation within a NIC are described in Intel Corporation, "PCI-SIG SR-IOVPrimer: An Introduction to SR-IOV Technology," Rev. 2.5, January 2011, the entire contents of which are incorporated herein by reference.
[0061] One or more servers 12 may each include a virtual router 21 that executes one or more routing instances for a corresponding virtual network within the data center 10 to provide a virtual network interface and route packets between virtual network endpoints. Each routing instance may be associated with a network forwarding table. Each routing instance may represent a virtual routing and forwarding instance (VRF) of an Internet Protocol-Virtual Private Network (IP-VPN). The packet received by the virtual router 21A (illustrated as "vROUTER 21A") of the server 12A, for example, from the underlying physical network structure (i.e., IP structure 20 and switching structure 14) of the data center 10 may include an outer header to allow the physical network structure to tunnel the payload or "inner packet" to the physical network address of the network interface card 13A of the server 12A executing the virtual router. The outer header may include not only the physical network address of the network interface card 13A of the server, but also a virtual network identifier, such as a VxLAN label or a multi-protocol label switching (MPLS) label that identifies a virtual network and the corresponding routing instance executed by the virtual router 21A. The inner packet includes an inner header having a destination network address that conforms to a virtual network addressing space of the virtual network identified by the virtual network identifier.
[0062] The virtual router 21 terminates the virtual network overlay tunnel and determines the virtual network of the received packet based on the tunnel encapsulation header of the packet, and forwards the packet to the appropriate destination virtual network endpoint of the packet. For server 12A, for example, for each packet outbound from a virtual network endpoint hosted by server 12A (e.g., pod 22A), virtual router 21A connects the tunnel encapsulation header, which indicates the virtual network of the packet to generate an encapsulated or "tunnel" packet, and virtual router 21A outputs the encapsulated packet to a physical destination computing device, such as another one of servers 12, via the overlay tunnel of the virtual network. As used herein, virtual router 21 can perform the operation of a tunnel endpoint to encapsulate an internal packet obtained by a virtual network endpoint to generate a tunnel packet and decapsulate the tunnel packet to obtain an internal packet for routing to other virtual network endpoints.
[0063] The computing infrastructure 8 implements an automation platform for automating the deployment, expansion, and operation of virtual execution elements on the server 12 to provide a virtualized infrastructure for executing application workloads and services. In some examples, the platform can be a container orchestration platform that provides a container-centric infrastructure for automating the deployment, scaling, and operation of containers to provide a container-centric infrastructure. "Orchestration" in the context of virtualized computing infrastructure generally refers to the provision, scheduling, and management of virtual execution elements and / or applications and services executed on such virtual execution elements to host servers available to the orchestration platform. Specifically, container orchestration allows container coordination and refers to, for example, the deployment, management, scaling, and configuration of containers to host servers through a container orchestration platform. Examples of orchestration platforms include Kubernetes, D Docker Swarm, Mesos / Marathon, OpenShift, OpenStack, VMware, and Amazon ECS.
[0064] The elements of the automation platform of the computing infrastructure 8 include at least a server 12, an orchestrator 23, and a network controller 24. The virtual execution elements can be deployed to the virtualized environment using a cluster-based framework, wherein a cluster master node of the cluster manages the deployment and operation of containers to one or more cluster slave nodes of the cluster. The terms "master node" and "slave node" used herein include different orchestration platform terms for similar devices, which distinguish between the main management element of the cluster and the main virtual execution element hosting device of the cluster. For example, the Kubernetes platform uses the terms "cluster master node" and "slave node", while the Docker Swarm platform refers to the cluster manager and cluster nodes.
[0065] The orchestrator 23 and the network controller 24 together implement the controller 5 of the computing infrastructure 8. The orchestrator 23 and the network controller 24 can be executed on separate computing devices, or on the same computing device. Each of the orchestrator 23 and the network controller 24 can be a distributed application executed on one or more computing devices. The orchestrator 23 and the network controller 24 can implement corresponding master nodes for one or more clusters, each cluster having one or more slave nodes implemented by corresponding servers 12. Typically, the network controller 24 controls the network configuration of the data center 10 structure, for example, to establish one or more virtual networks for packet communication between virtual network endpoints. The network controller 24 provides a logically and in some cases physically centralized controller for facilitating the operation of one or more virtual networks within the data center 10. In some examples, the network controller 24 can operate in response to configuration input received from the orchestrator 23 and / or an administrator / operator. For additional information about the network controller 24 operating with other devices or other software defined networks of the data center 10, see International Application No. PCT / US2013 / 044378, filed on June 5, 2013, entitled "PHYSICAL PATH DETERMINATION FOR VIRTUAL NETWORK PACKET Flows"; and U.S. Patent Application No. 14 / 226,509, filed on March 26, 2014, entitled "Tunneled Packet Aggregation for Virtual Networks", each of which is incorporated herein by reference as if fully set forth herein. U.S. Patent Application No. 14 / 226,509 also includes further description of virtual routers (e.g., virtual router 21A).
[0066] Typically, the orchestrator 23 controls the deployment, scaling, and operation of virtual execution elements on the server 12 cluster and provides a computing infrastructure, which may include a container-centric computing infrastructure. The orchestrator 23 and (in some cases) the network controller 24 can implement corresponding cluster master nodes for one or more Kubernetes clusters. As an example, Kubernetes provides a container management platform that provides portability on public and private clouds, each of which can provide a virtualized infrastructure for the container management platform.
[0067] In one example, pod 22A is a Kubernetes pod and is an example of a virtual network endpoint. A pod is a group of one or more logically related containers ( Figure 1Containers of a pod are always located on the same server, co-scheduled, and run in a shared context. The shared context of a pod can be a set of Linux namespaces, cgroups, and other aspects of isolation. Within the context of a pod, further sub-isolations may be applied to a single application.
[0068] Typically, containers in a pod have a common IP address and port space and are able to detect each other via localhost. Because the containers have a shared context, containers in a pod also communicate with each other using inter-process communication (IPC). Examples of IPC include SystemV semaphores or POSIX shared memory. Typically, containers belonging to different pods have different IP addresses and cannot communicate via IPC without a configuration that enables this feature. Containers belonging to different pods typically communicate with each other via the pod IP address.
[0069] Server 12A includes a container platform 19A for running containerized applications, such as applications for pod 22A. Container platform 19A receives a request from orchestrator 23 to obtain and host a container in server 12A. Container platform 19A obtains and executes the container. Container platform 19A includes a network module 17A that configures a virtual network interface for a virtual network endpoint. Container platform 19A uses network module 17A to manage networking of pods, including pod 22A. For example, network module 17A creates a virtual network interface to connect the pod to a virtual router 21A and enables containers of such pod to communicate with other virtual network endpoints through a virtual network via the virtual network interface. For additional details, see U.S. application Ser. No. 16 / 118,107, filed Aug. 30, 2018, the entire contents of which are incorporated herein by reference.
[0070] The network module 17A may, for example, insert a virtual network interface of the virtual network into the network namespace of the container in the cabin 22A, and configure (or request configuration of) the virtual network interface of the virtual network in the virtual router 21A, so that the virtual router 21A is configured to send packets received from the virtual network via the virtual network interface to the container in the cabin 22A, and to send packets received from the container in the cabin 22A via the virtual network interface on the virtual network. The network module 17A may allocate a network address (e.g., a virtual IP address of the virtual network), and may set a route for the virtual network interface.
[0071] In Kubernetes, by default, all pods can communicate with all other pods without using network address translation (NAT). In some cases, the orchestrator 23 and the network controller 24 create service virtual networks and pod virtual networks shared by all namespaces, and allocate service and pod network addresses from these namespaces, respectively. In some cases, all pods in all namespaces generated in the Kubernetes cluster may be able to communicate with each other, and the network addresses of all pods can be allocated from the pod subnet specified by the orchestrator 23. When a user creates an isolated namespace for a pod, the orchestrator 23 and the network controller 24 can create a new pod virtual network and a new shared service virtual network for the new isolated namespace. Pods in the isolated namespace generated in the Kubernetes cluster extract network addresses from the new pod virtual network, and the corresponding services of such pods extract network addresses from the new service virtual network.
[0072] The network module 17A may represent a library, plugin, module, runtime, or other executable code of the server 12A. The network module 17A may at least partially conform to the container network interface (CNI) specification or the rkt network proposal. The network module 17A may represent a Contrail or OpenContrail network plugin. The network module 17A may also be referred to as a network plugin or a CNI plugin or a CNI instance. For the CNI specification, a container can be considered a synonym for a Linux network namespace. Which unit this corresponds to depends on the specific container runtime implementation: for example, in an implementation of the application container specification (e.g., rkt), each cabin runs in a unique network namespace. However, in Docker, a network namespace typically exists in each individual Docker container. For the CNI specification, a network refers to a set of entities that are uniquely addressable and can communicate with each other. This can be a separate container, a machine / server (real or virtual), or some other network device (e.g., a router). Containers can be conceptually added to or removed from one or more networks.
[0073] The CNI specification specifies a number of considerations for conformance plugins (“CNI plugins”). These include the following:
[0074] The container runtime must create a new network namespace for the container before invoking any CNI plugins.
[0075] The container runtime must determine which networks the container should belong to and, for each network, which plugins must be executed;
[0076] The container runtime must add the container to each network by executing the corresponding plugin for each network in turn.
[0077] In some examples, a single network module 17A configures a plurality of virtual network interfaces 26A-26N ("virtual network interfaces") for a pod 22A for use with corresponding virtual networks configured in the switch fabric 14, wherein any container of the pod 22A may utilize (i.e., share) any of the plurality of virtual network interfaces 26. In this manner, as further described below, the network module 17A addresses certain limitations of CNI plugins that strictly conform to the CNI specification.
[0078] Each virtual network interface 26 can represent a virtual Ethernet ("veth") pair, where each end of the pair is a separate device (e.g., a Linux / Unix device), one end of the pair is assigned to the cabin 22A, and one end of the pair is assigned to the virtual router 22A. A veth pair or one end of a veth pair is sometimes referred to as a "port." Each virtual network interface 26 can alternatively represent a macvlan network having media access control (MAC) addresses assigned to the cabin 22A and the vrout 21A for communication between the containers of the cabin 22A and the vrout 21A. Each virtual network interface 26 can alternatively represent a different type of interface between the virtual router 21A or other network virtual entity and a virtual network endpoint. For example, a virtual network interface 26 can alternatively be referred to as a virtual machine interface (VMI), a cabin interface, a container network interface, a tap interface, a veth interface, or simply a network interface (in a particular context).
[0079] exist Figure 1 In the example server 12A, pod 22A is a virtual network endpoint in multiple different virtual networks. Orchestrator 23 may store or otherwise manage configuration data for application deployment that specifies multiple virtual networks and specifies that pod 22A (or one or more containers therein) is a virtual network endpoint for each of the multiple virtual networks. For example, orchestrator 23 may receive the configuration data from a user, operator / administrator, or other machine system.
[0080] As part of the process of creating the pod 22A, the orchestrator 23 sends a request 29 to request the network controller 24 to create corresponding virtual network interfaces for a plurality of virtual networks (indicated in the configuration data). The network controller 24 processes the request 29 to generate interface configuration data 25 for a plurality of virtual network interfaces 26 for the pod 22A. The interface configuration data 25 may include a container or pod unique identifier and a list or other data structure specifying network configuration data for configuring the virtual network interface for each virtual network interface 26. The network configuration data for the virtual network interface may include a network name, an assigned virtual network address, a MAC address, and / or a domain name server value.
[0081] An example of network configuration data in Javascript Object Notation (JSON) format is as follows. Multiple virtual network interfaces 26 correspond to multiple virtual networks, respectively. The network controller 24 sends the interface configuration data 25 to the server 12A, and more specifically, in some cases, to the virtual router 21A. In order to configure one or more virtual network interfaces for the cabin 22A, in some implementations, the container platform 19A can call a single instance of the network module 17A. The network module 17A obtains and processes the interface configuration data 25. For each virtual network interface specified in the interface configuration data 25, the network module 17A creates a virtual network interface 26.
[0082] For example, network module 17A may connect one end of a veth pair implementing virtual network interface 26A to virtual router 21A, and may connect the other end of the same veth pair to pod 22A. Similarly, network module 17A may connect one end of a veth pair implementing virtual network interface 26N to virtual router 21A, and may connect the other end of the same veth pair to pod 22A. In this manner, a single instance of network module 17A configures multiple virtual network interfaces 26 for one or more virtual executives that share at least one virtual network interface, in this case pod 22A.
[0083] The following is an example of network configuration data for pod 22A for a plurality of virtual network interfaces 26A-26N, where N=3 in this example.
[0084] [{
[0085] / / virtual network interface 26A
[0086] "id":"fe4bab62-a716-11e8-abd5-0cc47a698428",
[0087] "instance-id":"fe3edca5-a716-11e8-822c-0cc47a698428",
[0088] "ip-address":"10.47.255.250",
[0089] "plen":12,
[0090] "vn-id":"56dda39c-5e99-4a28-855e-6ce378982888",
[0091] "vm-project-id":"00000000-0000-0000-0000-000000000000",
[0092] "mac-address":"02:fe:4b:ab:62:a7",
[0093] "system-name":"tapeth0fe3edca",
[0094] "rx-vlan-id":65535,
[0095] "tx-vlan-id":65535,
[0096] "vhostuser-mode":0,
[0097] “v6-ip-address”:“::“,
[0098] “v6-plen”:,
[0099] “v6-dns-server”:“::”,
[0100] “v6-gateway”:“::”,
[0101] "dns-server":"10.47.255.253",
[0102] "gateway":"10.47.255.254",
[0103] "author":" / usr / bin / contrail-vrouter-agent",
[0104] "time":"426404:56:19.863169"
[0105] },{
[0106] / / virtual network interface 26B
[0107] "id":"fe611a38-a716-11e8-abd5-0cc47a698428",
[0108] "instance-id":"fe3edca5-a716-11e8-822c-0cc47a698428",
[0109] "ip-address":"30.1.1.252",
[0110] "plen":24,
[0111] "vn-id":"b0951136-a702-43d2-9e90-3e5a9343659d",
[0112] "vm-project-id":"00000000-0000-0000-0000-000000000000",
[0113] "mac-address":"02:fe:61:1a:38:a7",
[0114] "system-name":"tapeth1fe3edca",
[0115] "rx-vlan-id":65535,
[0116] "tx-vlan-id":65535,
[0117] "vhostuser-mode":0,
[0118] “v6-ip-address”:“::“,
[0119] “v6-plen”:,
[0120] “v6-dns-server”:“::”,
[0121] “v6-gateway”:“::”,
[0122] "dns-server":"30.1.1.253",
[0123] "gateway":"30.1.1.254",
[0124] "author":" / usr / bin / contrail-vrouter-agent",
[0125] "time":"426404:56:19.863380"
[0126] },{
[0127] / / virtual network interface 26N
[0128] "id":"fe7a52aa-a716-11e8-abd5-0cc47a698428",
[0129] "instance-id":"fe3edca5-a716-11e8-822c-0cc47a698428",
[0130] "ip-address":"40.1.1.252",
[0131] "plen":24,
[0132] "ip6-address":"::",
[0133] "vn-id":"200cb1e6-7138-4a55-a8df-936bb7515052",
[0134] "vm-project-id":"00000000-0000-0000-0000-000000000000",
[0135] "mac-address":"02:fe:7a:52:aa:a7",
[0136] "system-name":"tapeth2fe3edca",
[0137] "rx-vlan-id":65535,
[0138] "tx-vlan-id":65535,
[0139] "vhostuser-mode":0,
[0140] “v6-ip-address”:“::“,
[0141] “v6-plen”:,
[0142] “v6-dns-server”:“::”,
[0143] “v6-gateway”:“::”,
[0144] "dns-server":"40.1.1.253",
[0145] "gateway":"40.1.1.254",
[0146] "author":" / usr / bin / contrail-vrouter-agent",
[0147] "time":"426404:56:19.863556"
[0148] }]
[0149] A traditional CNI plugin is called by a container platform / runtime, receives an add command from the container platform to add a container to a single virtual network, and may subsequently call such a plugin to receive a remove command from the container / runtime and remove the container from the virtual network. The add command only supports adding a single virtual network, and must be called multiple times in order to add a pod to multiple virtual networks. The single network module 17A called by the container platform 19A extends the functionality of the traditional CNI plugin by obtaining interface configuration data 25 and adding multiple different virtual network interfaces 26. The term "call" may refer to the instantiation of a software component or module in memory (e.g., user space 245) executed by the microprocessor 210 as executable code.
[0150] According to aspects of the present disclosure, the orchestrator 23 receives a service definition for a service, which is an abstraction that defines a set of logical pods and policies for accessing them. This type of service is sometimes referred to as a microservice. According to the techniques described herein, the service definition is annotated to specify a backend virtual network for exposing a backend to the service, wherein the backend may include a POD 22A. The backend may also be referred to as a load balancer element because they are elements of a backend pool of virtual machines or pod / container applications. The orchestrator 23 may use a load balancer to implement the service and create a load balancer object. The network controller 24 instantiates the load balancer object as a load balancer 31, shown here as a virtual execution element. In some examples, the load balancer 31 is a dedicated hardware device or implemented in a virtual router 21A. The load balancer 31 may be an ECMP local load balancer and may be configured in multiple virtual routers 21. Although shown here as being executed by a server 12A that also executes the pod 22A, the load balancer and the backend may be executed on different host computing devices. The load balancer 31 may be configured in multiple host computing devices (computing nodes) 12 to load balance traffic to the service IP address of the service among the backends.
[0151] Each pod in a service is assigned a unique IP address in the virtual network, and all pods in a service use the same service IP address as the service address. In some examples, the service IP address can be a floating IP address. The service address is used to send traffic from pods in other services or external clients or servers to the service. In some examples, when traffic is sent from a pod to the service IP, the virtual router 21 connected to the pod performs ECMP load balancing using routes to the service IP address, which resolve to the interfaces of the various backend pods that form the destination service.
[0152] The network controller 24 identifies the corresponding virtual network interface in each pod for the specified backend virtual network to be used by the load balancer 31. In this example, virtual network interface 26N corresponds to the specified backend virtual network. However, virtual network interface 26A may be the primary virtual network interface for pod 22A. The network controller 24 configures the load balancer 31 to use virtual network interface 26N corresponding to the specified backend virtual network, for example, as the next hop for service traffic 32. (The next hop may be an equivalent multipath next hop or other composite next hop.) For example, the network controller 24 may configure the load balancer 31 with an identifier or composite next hop of virtual network interface 26N, which enables the load balancer 31 to forward service traffic 32 to virtual network interface 26N. In this way, the orchestrator 23 and the network controller 24 may promote consistency in service traffic processing for services implemented by the load balancer 31 by reducing the variability of the virtual network interfaces exposed to the service by a given pod.
[0153] Figure 2 is a block diagram of an example computing device (e.g., a host) according to the techniques described in the present disclosure, the example computing device including a network module for configuring multiple virtual network interfaces for virtual execution elements that share at least one virtual network interface, and exposing the virtual execution elements to a load balancer object using any one of the multiple virtual network interfaces. Figure 2 The computing device 200 may represent a real or virtual server and may represent Figure 1 12. In this example, the computing device 200 includes a bus 242 that couples hardware components of the computing device 200 hardware environment.
[0154] Bus 242 couples a network interface card (NIC) 230, a storage disk 246, and one or more microprocessors 210 (hereinafter referred to as "microprocessors 210"). NIC 230 may support SR-IOV. In some cases, a front-end bus may couple microprocessor 210 and storage device 244. In some examples, bus 242 may couple storage device 244, microprocessor 210, and NIC 230. Bus 242 may represent a peripheral component interface (PCI) express (PCIe) bus. In some examples, a direct memory access (DMA) controller may control DMA transfers between components coupled to bus 242. In some examples, components coupled to bus 242 control DMA transfers between components coupled to bus 242.
[0155] The microprocessor 210 may include one or more processors, each processor including an independent execution unit to execute instructions that conform to an instruction set architecture, which are stored in a storage medium. The execution unit may be implemented as a separate integrated circuit (IC), or may be combined in one or more multi-core processors (or "multi-core" processors), each of which is implemented using a single IC (i.e., a chip multiprocessor). The microprocessor 210 may represent various types of processing circuits, such as fixed-function circuits, programmable circuits, or any combination of fixed-function circuits and programmable circuits, which are operable to execute instructions stored in volatile or non-volatile memory to perform various actions.
[0156] Disk 246 represents a computer-readable storage medium, which includes volatile and / or nonvolatile, removable and / or non-removable media implemented in any method or technology for storage of information such as processor-readable instructions, data structures, program modules or other data. Computer-readable storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), EEPROM, flash memory, compact disks, digital versatile disks (DVD) or other optical storage devices, cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by microprocessor 210.
[0157] The main memory 244 includes one or more computer-readable storage media, which may include random access memory (RAM), such as various forms of dynamic RAM (DRAM) (e.g., DDR2 / DDR3 SDRAM) or static RAM (SRAM), flash memory, or any other form of fixed or removable storage medium, which can be used to transmit or store desired program code and program data in the form of instructions or data structures and can be accessed by the computer. The main memory 244 provides a physical address space consisting of addressable storage locations.
[0158] The network interface card (NIC) 230 includes one or more interfaces 232 configured to exchange packets using the links of the underlying physical network. The interface 232 may include a port interface card having one or more network ports. The NIC 230 may also include on-card memory, for example, to store packet data. Direct memory access transmissions between the NIC 230 and other devices coupled to the bus 242 may read / write the NIC memory from the NIC memory.
[0159] Memory 244, NIC 230, storage disk 246 and microprocessor 210 can provide an operating environment for a software stack, which includes an operating system kernel 214 executed in kernel space. Kernel 214 can represent, for example, Linux, Berkeley Software Distribution (BSD), another Unix variant kernel or Windows server operating system kernel available from Microsoft. In some cases, the operating system can execute a hypervisor and one or more virtual machines managed by the hypervisor. Example hypervisors include kernel-based virtual machines (KVM) for Linux kernels, Xen, ESXi provided by VMware, Windows Hyper-V provided by Microsoft, and other open source and proprietary hypervisors. The term hypervisor may include a virtual machine manager (VMM). The operating system including kernel 214 provides an execution environment for one or more processes in user space 245.
[0160] The kernel 214 includes a physical driver 225 that uses a network interface card 230. The network interface card 230 may also implement SR-IOV to enable sharing of physical network functions (I / O) between one or more virtual execution elements, such as containers 229A-229B or one or more virtual machines ( Figure 2 230). A shared virtual device (e.g., a virtual function) may provide dedicated resources so that each virtual execution element may access dedicated resources of the NIC 230, and thus, the NIC 230 appears as a dedicated NIC to each virtual execution element. A virtual function may represent a lightweight PCIe function that shares physical resources with a physical function used by the physical driver 225 and other virtual functions. For a NIC 230 that supports SR-IOV, the NIC 230 may have thousands of virtual functions available according to the SR-IOV standard, but for I / O intensive applications, the number of configured virtual functions is typically much smaller.
[0161] The computing device 200 may be coupled to a physical network switch fabric that includes an overlay network that extends the switch fabric from physical switches to software or "virtual" routers of physical servers coupled to the switch fabric, including virtual router 220. A virtual router may be a physical server (e.g., Figure 1A process or thread or component thereof executed by a server 12) that dynamically creates and manages one or more virtual networks that can be used for communication between virtual network endpoints. In one example, the virtual router implements each virtual network using an overlay network that provides the ability to decouple the virtual address of the endpoint from the physical address (e.g., IP address) of the server on which the endpoint is executing. Each virtual network can use its own addressing and security scheme and can be considered orthogonal to the physical network and its addressing scheme. Various techniques can be used to transmit packets within and between virtual networks through the physical network. The term "virtual router" as used herein may include an open vSwitch (OVS), an OVS bridge, a Linux bridge, a Docker bridge, or other devices and / or software that resides on a host device and performs switching, bridging, or routing packets between virtual network endpoints of one or more virtual networks, where the virtual network endpoints are hosted by one or more servers 12. In Figure 2 In the example computing device 200 of , the virtual router 220 executes within the kernel 214, but in various implementations, the virtual router 220 may execute within a hypervisor, a host operating system, a host application, or a virtual machine.
[0162] Virtual router 220 can replace and include the virtual routing / bridging functionality of the Linux bridge / OVS module typically used for Kubernetes deployment of pod 202. Virtual router 220 can perform bridging (e.g., E-VPN) and routing (e.g., L3VPN, IP VPN) for virtual networks. Virtual router 220 can perform network services, such as applying security policies, NAT, multicast, mirroring, and load balancing. For additional details on IP-VPN, see "BGP / MPLS IP Virtual Private Networks (VPNs)" Request for Comments 4364 (Internet Engineering Task Force Network Working Group, February 2006), hereinafter referred to as "RFC 4364", the entire contents of which are incorporated herein by reference. Virtual router 220 can represent a PE router, and the virtual execution endpoint can be an example of a CE device described in RFC 4364.
[0163] In general, each pod 202A-202B may be assigned one or more virtual network addresses for use within a corresponding virtual network, wherein each virtual network may be associated with a different virtual subnet provided by virtual router 220. Pod 202B may be assigned its own virtual layer 3 (L3) IP address, e.g., for sending and receiving communications, but may not be aware of the IP address of the computing device 200 in which pod 202B resides. The virtual network address may therefore be different from the logical address of the underlying physical computer system (e.g., computing device 200).
[0164] The computing device 200 includes a virtual router agent 216 that controls the overlay of the virtual network of the computing device 200 and coordinates the routing of data packets within the computing device 200. Typically, the virtual router agent 216 communicates with the network controller 24 of the virtualization infrastructure, which generates commands to control the creation of virtual networks and configure network virtualization endpoints, such as the computing device 200, and more specifically, the virtual router 220 and the virtual network interfaces 212, 213. By configuring the virtual router 220 based on information received from the network controller 24, the virtual router agent 216 can support the configuration of network isolation, policy-based security, gateways, source network address translation (SNAT), load balancers, and service chaining capabilities for orchestration.
[0165] In one example, a network packet (e.g., a layer 3 (L3) IP packet or a layer 2 (L2) Ethernet packet) generated or consumed by a container 229A-229B within a virtual network domain may be encapsulated in another packet (e.g., another IP or Ethernet packet) transmitted by a physical network. Packets transmitted in a virtual network may be referred to herein as "inner packets," while physical network packets may be referred to herein as "outer packets" or "tunnel packets." Virtual router 220 may perform encapsulation and / or decapsulation of virtual network packets within physical network packets.
[0166] This functionality is referred to herein as "tunneling" and can be used to create one or more overlay networks. In addition to IPinIP, other examples of tunneling protocols that can be used include IP over Generic Routing Encapsulation (GRE), VxLAN, Multi-Protocol Label Switching (MPLS) over GRE, MPLS over User Datagram Protocol (UDP), etc. The virtual router 220 performs tunnel encapsulation / decapsulation on packets originating from / going to any container in the cabin 202, and the virtual router 220 exchanges packets with the cabin 202 via the bus 242 and / or the bridge of the NIC 230.
[0167] As mentioned above, Figure 1 The illustrated network controller 24 may provide a logically centralized controller to facilitate the operation of one or more virtual networks. The network controller 24 may, for example, maintain a routing information base, such as one or more routing tables storing routing information for a physical network and one or more overlay networks. The virtual router 220 implements one or more virtual routing and forwarding instances (VRFs) 222A-222B for a corresponding virtual network, and the virtual router 220 operates on it as a corresponding tunnel endpoint.
[0168] Typically, each VRF 222 stores forwarding information for the corresponding virtual network and identifies where the data packet will be forwarded and whether the packet will be encapsulated in a tunnel protocol, for example, with a tunnel header that may include one or more headers of different layers of the virtual network protocol stack. Each VRF 222 may include a network forwarding table that stores routing and forwarding information for the virtual network.
[0169] NIC 230 may receive a tunnel packet. Virtual router 220 processes the tunnel packet to determine the virtual networks of the source endpoint and the destination endpoint of the inner packet from the tunnel encapsulation header. Virtual router 220 may strip off the Layer 2 header and the tunnel encapsulation header so that only the inner packet is forwarded internally. The tunnel encapsulation header may include a virtual network identifier, such as a VxLAN label or an MPLS label, indicating a virtual network, such as a virtual network corresponding to VRF 222A. VRF 222A may include forwarding information for the inner packet. For example, VRF 222A may map the destination Layer 3 address of the inner packet to virtual network interface 212A. In response, VRF 222A forwards the inner packet to cabin 202A via virtual network interface 212A.
[0170] Containers 229A-229B may also source internal packets as a virtual network endpoint. For example, container 229A may generate a layer 3 internal packet destined for a destination virtual network endpoint executed by another computing device (i.e., not computing device 200) or another of containers 229A-229B. In this example, container 229A sends the layer 3 internal packet to virtual router 220 via virtual network interface 212A connected to VRF 222A.
[0171] The virtual router 220 receives the inner packet and the layer 2 header and determines a virtual network for the inner packet. The virtual router 220 may use any of the above virtual network interface implementation technologies (e.g., macvlan, veth, etc.) to determine the virtual network. The virtual router 220 uses the VRF 222A corresponding to the virtual network of the inner packet to generate an outer header of the inner packet, the outer header including an outer IP header covering the tunnel and a tunnel encapsulation header identifying the virtual network.
[0172] The virtual router 220 encapsulates the inner packet with an outer header. The virtual router 220 may encapsulate the tunnel packet with a new layer 2 header having a destination layer 2 address associated with a device external to the computing device 200 (e.g., a TOR switch 16 or one of the servers 12). If external to the computing device 200, the virtual router 220 outputs the tunnel packet with the new layer 2 header to the NIC 230 using the physical function 221. The NIC 230 outputs the packet on the outbound interface. If the destination is another virtual network endpoint executing on the computing device 200, the virtual router 220 routes the packet to the appropriate one of the virtual network interfaces 212, 213.
[0173] In some examples, a controller of computing device 200 (e.g., Figure 1 The network controller 24 of the embodiment of the present invention configures a default route in each pod 202 so that the virtual machine 224 uses the virtual router 220 as the initial next hop for outbound packets. In some examples, the NIC 230 is configured with one or more forwarding rules so that all packets received from the virtual machine 224 are switched to the virtual router 220. The pods 202A-202B can be represented in more detail. Figure 1 202A includes one or more containers 229A, and the compartment 202B includes one or more containers 229B.
[0174] The container platform 204 may be represented in more detail Figure 1 Container platform 204 includes container runtime 208, orchestration agent 209, service agent 211, and network modules 206A-206B. Each of network modules 206A-206B may represent Figure 1 In the example instance of network module 17A, each cabin 202 calls a network module 206.
[0175] The container engine 208 includes code that can be executed by the microprocessor 210. The container runtime 208 can represent one or more computer processes. The container engine 208 runs containerized applications in the form of containers 229A-229B. The container engine 208 can represent Dockert, rkt, or other container engines for managing containers. Generally, the container engine 208 receives requests and manages objects such as images, containers, networks, and volumes. An image is a template with instructions to create a container. A container is an executable example of an image. Based on instructions from the controller agent 209, the container engine 208 can obtain an image and instantiate it into an executable container 229A-229B in a pod 202A-202B.
[0176] The service agent 211 includes code that can be executed by the microprocessor 210. The service agent 211 can represent one or more computer processes. The service agent 211 monitors the addition and removal of services and endpoint objects, and maintains the network configuration of the computing device 200 to ensure communication between the cabin and the container, for example, using the service. The service agent 211 can also manage iptables to capture traffic to the virtual IP address and port of the service and redirect the traffic to the proxy port of the proxy backup cabin. The service agent 211 can represent the Kube agent of the slave node of the Kubernetes cluster. In some examples, the container platform 204 does not include the service agent 211, or disables the service agent 211 to support the configuration of the virtual router 220 and the cabin 202 by the network module 206.
[0177] Orchestration agent 209 includes code that can be executed by microprocessor 210. Orchestration agent 209 can be one or more computer processes. Orchestration agent 209 can represent a kubelet of a slave node of a Kubernetes cluster. Orchestration agent 209 is an orchestrator (e.g., Figure 1 23) receives container specification data of a container and ensures that the container is executed by computing device 200. The container specification data may be in the form of a manifest file sent from orchestrator 23 to orchestration agent 209 or received indirectly via a command line interface, HTTP endpoint, or HTTP server. The container specification data may be a pod specification (e.g., PodSpec—a YAML (yet another markup language) or JSON object describing a pod) of one pod 202 of container 229. Based on the container specification data, orchestration agent 209 instructs container engine 208 to obtain and instantiate a container image of container 229 for execution of container 229 by computing device 200. Orchestration agent 209 may also be considered or referred to as a "kube manager."
[0178] Orchestration agent 209 can instantiate a single network module 206 to configure one or more virtual network interfaces for each pod 202. Each network module 206 can represent Figure 1 For example, orchestration agent 209 may receive container specification data for pod 202A and instruct container engine 208 to create pod 202A with container 229A based on the container specification data for pod 202A.
[0179] Orchestration agent 209 also calls single network module 206A to configure multiple virtual network interfaces 212A-212B for pod 202A corresponding to virtual networks of VRFs 222A-222B, respectively. In a similar manner, orchestration agent 209 instructs container engine 208 to create pod 202B with container 229B based on the container specification data of pod 202B. Orchestration agent 209 also calls single network module 206B to configure virtual network interfaces 213A and 213B for pod 202B corresponding to virtual networks of each of VRFs 222A and 222B. In this example, pod 202A and pod 202B are both virtual network endpoints of the virtual network corresponding to VRF 222B. Any one of virtual network interfaces 212, 213 may represent a virtual network interface 213A and 213B. Figure 1 An example instance of a virtual network interface 26 is described in .
[0180] The network module 206A may obtain interface configuration data for configuring a virtual network interface for the pod 202. The virtual router agent 216 operates as a virtual network control plane module for enabling the network controller 24 to configure the virtual router 220. Unlike the orchestration control plane (including the container platform 204 for slave nodes and master nodes, e.g., the orchestrator 23) that manages the provisioning, scheduling, and management of virtual actuators, the virtual network control plane (including the network controller 24 and the virtual router agent 216 for the slave nodes) manages the configuration of the virtual network implemented in part in the data plane by the virtual router 220 of the slave nodes.
[0181] Virtual router agent 216 transmits interface configuration data of the virtual network interface to network module 206 to enable the orchestration control plane element (i.e., network module 206) to configure the virtual network interface according to the configuration state determined by network controller 24, thereby bridging the gap between the orchestration control plane and the virtual network control plane. In addition, this can enable a single network module 206A to obtain interface configuration data of multiple virtual network interfaces of a pod and configure multiple virtual network interfaces, which can reduce the communication and resource overhead inherent in calling a separate network module 206 to configure each virtual network interface.
[0182] According to aspects of the present disclosure, computing device 200 generates a composite equal-cost multipath routing (ECMP) next-hop solution using configurable / customizable endpoint selection. An example workflow is described below, according to which computing device 200 generates an ECMP next-hop solution using configurable endpoint selection. First, orchestration agent 209 configures multiple virtual network interfaces 212 and 213 for virtual networks corresponding to VRFs 222A-222B, respectively, for each pod 202. Next, network controller 24 sends any configuration updates to hosts contained in pod 202.
[0183] The hosts of the pods 202 use the service IP addresses associated with the service monitors 231 of the computing device 200 to advertise their corresponding next-hop routes to the network controller 24. The network controller 24 aggregates the next-hop routes received from the hosts of the pods 202 to form a merged ECMP next-hop scheme for the pods 202. The network controller 24 sends the ECMP next-hop information to all pods 202. Using the relevant portion of the ECMP next-hop combination, each pod 202 can provide a service IP to a selected VRF 222. In turn, each pod 202 can advertise / expose a specific selected virtual network connection 212 or 213 (based on the specific VRF 222 that provides the service IP) to the load balancer element object created by the orchestration agent 209.
[0184] Figure 3 is a conceptual diagram illustrating a system 250 that implements the configurable endpoint technology of the present disclosure. Figure 3 Some elements of Figure 1 and Figure 2 In some examples, Kube manager 248 implements Figure 4 The functions of the network controller manager 325 shown partially or completely overlap the functions. The kube manager 248 obtains the virtual network identifiers 212 and 213 associated with the pod 202 via the network controller 24.
[0185] Kube manager 248 generates Kubernetes service 252. In some examples, Kubernetes service 252 represents an L4 load balancer. Kubernetes service 252 includes label selector 254, which selects from network labels 256. Network label 256 identifies an endpoint network associated with VRF 222. For example, according to aspects of the present disclosure, Kubernetes service 252 calls label selector 254 to select a network label 256 to configure a portion of load balancer object 258. According to its L4 load balancer configuration, Kubernetes service 252 includes four objects, Figure 3 258 is shown as part of a load balancer object 258. In some examples, the load balancer object 258 represents Products of Internet companies That is, the Kube manager 248 listens for an event in which the label selector 254 selects a network label 256, and in response, creates a load balancer object 258, wherein the VMI ID annotation 272 indicates the specific virtual network interfaces 212, 213 through which the pod 202 is linked to the selected virtual network.
[0186] In the example of system 250, load balancer object 258 includes load balancer object 262, load balancer listener object 264, load balancer pool object 266, and load balancer element object 268. Load balancer object 262 polls the service IP address associated with Kubernetes service 252. As described above, the service IP address of Kubernetes service 252 provides a consistent mechanism for accessing each pod 202, despite the uncertainty of the IP address of each pod 202. Load balancer listener object 264 saves port number information associated with Kubernetes service 252. Load balancer pool object 266 saves a link to load balancer element object 268.
[0187] According to aspects of the present disclosure, the Kube manager 248 annotates the load balancer element object 268 with a VMI ID annotation 272. More specifically, the Kube manager 248 forms the VMI ID annotation 272 based on the specific virtual network interface 212, 213 corresponding to the specific network label 256 selected by the label selector 254. As described above, according to the configuration of the present disclosure, the VMI ID annotation 272 can, but is not required to, map to the first (or default) virtual network interface 212, 213 of the pod 202. In this way, the Kube manager 248 can use the VMI ID annotation 272 to expose one or more pods 202 to the Kubernetes service 252 using a configurable endpoint, rather than simply exposing the corresponding pod 202 using the default (e.g., first) endpoint based on the specific network label 256 selected by the label selector 254. The VMI ID annotation 272 may include different annotations for each pod 202. Likewise, each virtual network interface 212 , 213 is linked to a different VMI ID, and therefore, when referring to a particular virtual network interface 212 , 213 of a pod 202 , the VMI ID annotation 272 is specific to the virtual network interface.
[0188] By exposing one or more pods 202 to the Kubernetes service 252 using a selected one of the multiple virtual network interfaces 212, 213 instead of the default selection, the techniques and system configurations of the present disclosure provide various technical improvements in the practical application of container-based multi-environment computing. As an example, the Kube manager 248 is able to process management data separately through the management interface and process service data separately through the data interface. That is, according to the techniques and system configurations of the present disclosure, the Kube manager 248 can implement the techniques of the present disclosure so that the processing of service data does not burden the management interface.
[0189] The Kube manager 248 utilizes a single selected network label 256 (which in turn maps to a single VRF 222) to identify a corresponding VMI ID annotation 272. Each such VMI ID annotation 272 can be shared by multiple pods 202 and can fall anywhere in the sequence of virtual network interfaces 212, 213, and in some cases, the number of virtual network interfaces 212, 213 can exceed ten in the case of a single pod 202. In this way, the Kube manager 248 configures the Kubernetes service 252 to use a single VMI ID annotation 272 to link to potentially multiple backends (pods 202).
[0190] In addition, Kube manager 248 implements the technology of the present disclosure to improve data accuracy and efficiency of use of containers of pod 202. Kube manager 248 improves data accuracy by exposing pod 202 to Kubernetes service 252 using specific virtual network interfaces 212, 213 by default instead of using the main interface. That is, each pod 202 is linked to Kubernetes service 252 according to VMI ID annotation 272, which accurately identifies the specific VRF 222 on which the function of pod 202 is executed relative to Kubernetes service 252. In the case where Kubernetes service 252 is one of multiple Kubernetes services, Kube manager 248 improves network load balancing by assigning a separate endpoint network to each Kubernetes service, thereby reducing the load on the main network of each pod 202.
[0191] like Figure 3 As shown, the network controller 24 includes a service monitor 274. The service monitor 274 listens for configuration updates generated via the load balancer object 258. The service monitor 274 saves all VMIIDs (VMI IDs 278) associated with the virtual network interfaces 212, 213. The service monitor 274 also generates a service IP address 276 and links the service IP address 276 to the VMI ID 278. From a configuration perspective, the linking of the service IP address 276 with all VMI IDs 278 represents a configuration update or "config update." The network controller 24 pushes the config update to the virtual router agent 216, and the virtual router agent 216 uses the config update to determine the next hop information for the cabin 202.
[0192] Figure 4 is a block diagram of an example computing device that operates as a controller of a virtualized computing infrastructure. Computing device 300 is an example instance of a controller 5 of a virtualized computing infrastructure. Figure 4Computing device 300 may represent one or more real or virtual servers configured to perform operations on at least one of network controller 24 and orchestrator 23. As such, computing device 300 may, in some cases, implement one or more master nodes for a corresponding cluster.
[0193] Although the scheduler 322, API server 320, network controller manager 326, network controller 324, network controller manager 325, and configuration storage 328 are shown and described as being executed by a single computing device 300, they may be distributed among multiple computing devices 300 that make up a computing system or a hardware / server cluster. In other words, each of the multiple computing devices 300 may provide a hardware operating environment for one or more instances of any one or more of the scheduler 322, API server 320, network controller manager 326, network controller 324, network controller manager 325, or configuration storage 328. The network controller 324 may represent Figure 1 Scheduler 322, API server 320, controller manager 326, and network controller manager 325 may implement an example instance of orchestrator 23. Network controller manager 325 may represent an example implementation of a Kubernetes cloud controller manager. Network controller 324 may represent an example instance of network controller 24.
[0194] In this example, computing device 300 includes a bus 342 that couples hardware components of the computing device 300 hardware environment. Bus 342 couples a network interface card (NIC) 330, a storage disk 346, and one or more microprocessors 310 (hereinafter referred to as "microprocessors 310"). In some cases, a front-end bus can couple microprocessor 310 and storage device 344. In some examples, bus 342 can couple memory device 344, microprocessor 310, and NIC 330. Bus 342 can represent a peripheral component interface (PCI) express (PCIe) bus. In some examples, a direct memory access (DMA) controller can control DMA transfers between components coupled to bus 242. In some examples, components coupled to bus 342 control DMA transfers between components coupled to bus 342.
[0195] The microprocessor 310 may include one or more processors, each processor including an independent execution unit to execute instructions that conform to an instruction set architecture, which are stored in a storage medium. The execution units may be implemented as separate integrated circuits (ICs), or may be combined in one or more multi-core processors (or "multi-core" processors), each of which is implemented using a single IC (i.e., a chip multiprocessor).
[0196] Disk 346 represents a computer-readable storage medium, which includes volatile and / or nonvolatile, removable and / or non-removable media implemented in any method or technology for storage of information such as processor-readable instructions, data structures, program modules or other data. Computer-readable storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), EEPROM, flash memory, compact disks, digital versatile disks (DVD) or other optical storage devices, cassettes, magnetic tape, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by microprocessor 310.
[0197] The main memory 344 includes one or more computer-readable storage media, which may include random access memory (RAM), such as various forms of dynamic RAM (DRAM) (e.g., DDR2 / DDR3 SDRAM) or static RAM (SRAM), flash memory, or any other form of fixed or removable storage media, which can be used to transmit or store desired program code and program data in the form of instructions or data structures and can be accessed by the computer. The main memory 344 provides a physical address space consisting of addressable storage locations.
[0198] The network interface card (NIC) 330 includes one or more interfaces 332 configured to exchange packets using the links of the underlying physical network. The interface 332 may include a port interface card having one or more network ports. The NIC 330 may also include on-card memory, for example, to store packet data. Direct memory access transmissions between the NIC 330 and other devices coupled to the bus 342 may read / write the NIC memory from the NIC memory.
[0199] Memory 344, NIC 330, storage disk 346 and microprocessor 310 can provide an operating environment for a software stack, which includes an operating system kernel 314 executed in kernel space. Kernel 314 can represent, for example, Linux, Berkeley Software Distribution (BSD), another Unix variant kernel or Windows server operating system kernel available from Microsoft. In some cases, the operating system can execute a hypervisor and one or more virtual machines managed by the hypervisor. Example hypervisors include kernel-based virtual machines (KVM) for Linux kernels, Xen, ESXi provided by VMware, Windows Hyper-V provided by Microsoft, and other open source and proprietary hypervisors. The term hypervisor can include a virtual machine manager (VMM). An operating system including kernel 314 provides an execution environment for one or more processes in user space 345. Kernel 314 includes a physical driver 325 using a network interface card 230.
[0200] The computing device 300 may be coupled to a physical network switch fabric that includes an overlay network that extends the switch fabric from physical switches to software or "virtual" routers of physical servers coupled to the switch fabric, e.g., Figure 2 The computing device 300 may use one or more dedicated virtual networks to configure the slave nodes of the cluster.
[0201] API server 320, scheduler 322, controller manager 326, and configuration store may implement a master node of a cluster, and may alternatively be referred to as a “master component.” The cluster may be a Kubernetes cluster, and the master node may be a Kubernetes master node, in which case the master component is a Kubernetes master component.
[0202] The API server 320 includes code that can be executed by the microprocessor 310. The API server 320 can be one or more computer processes. The API server 320 verifies and configures data for objects, such as virtual execution elements (e.g., containers), services, and replication controllers. A service can be an abstraction that defines a set of logical compartments and policies for accessing these compartments. A set of compartments that implement the service is selected based on the service definition. A service can be partially implemented as a load balancer, or otherwise include a load balancer. The API server 320 can implement a representational state transfer (REST) interface to handle REST operations and provide a front end to the shared state of the corresponding cluster stored in the configuration storage 328. The API server 320 can authenticate and authorize requests. The API server 320 communicates with other components to instantiate virtual execution elements in the computing infrastructure 8. The API server 320 can represent a Kubernetes API server.
[0203] Configuration store 328 is a backing store for all cluster data. Cluster data may include cluster state and configuration data. Configuration data may also provide a backend for service discovery and / or provide locking services. Configuration store 328 may be implemented as a key-value store. Configuration store 328 may be a central database or a distributed database. Configuration store 328 may represent etcd storage. Configuration store 328 may represent Kubernetes configuration storage.
[0204] Scheduler 322 includes code executable by microprocessor 310. Scheduler 322 can be one or more computer processes. Scheduler 322 monitors newly created or requested virtual execution elements (e.g., pods of containers) and selects slave nodes on which the virtual execution elements will run. Scheduler 322 can select slave nodes based on resource requirements, hardware constraints, software constraints, policy constraints, location, etc. Scheduler 322 can represent a Kubernetes scheduler.
[0205] Typically, the API server 320 may call the scheduler 322 to schedule a virtual execution element, the virtual execution element may select a slave node and return an identifier of the selected slave node to the API server 320, and the API server 320 may write the identifier in association with the virtual execution element to the configuration storage 328. The API server 320 may call the orchestration agent 209 for the selected slave node, which may cause the container engine 208 of the selected slave node to obtain the virtual execution element from the storage server and create the virtual execution element on the slave node. The orchestration agent 209 of the selected slave node may update the state of the virtual execution element to the API server 320, and the API server 320 may save the new state to the configuration storage 328. In this way, the computing device 300 instantiates a new virtual execution element in the computing infrastructure 8.
[0206] Controller manager 326 includes code that can be executed by microprocessor 310. Controller manager 326 can be one or more computer processes. Controller manager 326 can be embedded in the core control loop to monitor the shared state of the cluster by obtaining notifications from API server 320. Controller manager 326 can attempt to move the state of the cluster to a desired state. Example controllers (not shown) managed by controller manager 326 can include replication controllers, endpoint controllers, namespace controllers, and service account controllers. Controller manager 326 can perform lifecycle functions, such as namespace creation and lifecycle, event garbage collection, termination pod garbage collection, cascade deletion garbage collection, node garbage collection, etc. Controller manager 326 can represent a Kubernetes controller manager for a Kubernetes cluster.
[0207] The network controller 324 includes code that can be executed by the microprocessor 310. The network controller 324 may include one or more computer processes. The network controller 324 may represent Figure 1 An example instance of a network controller 24 of . The network controller 324 can be a logically centralized but physically distributed software defined network (SDN) controller that is responsible for providing management, control, and analysis functions for a virtualized network. In particular, the network controller 324 can be a logically centralized control plane and management plane for the computing infrastructure 8 and orchestrate vRouter for one or more slave nodes.
[0208] The network controller 324 can provide cloud networking for computing architectures running on the network infrastructure. Cloud networking can include private clouds of enterprises or service providers, infrastructure as a service (IaaS), and virtual private clouds (VPCs) of cloud service providers (CSPs). Private cloud, VPC, and IaaS use cases can involve multi-tenant virtualized data centers, such as Figure 1 In this case, multiple tenants in a data center share the same physical resources (physical servers, physical storage, physical networks). Each tenant is allocated its own logical resources (virtual machines, containers, or other forms of virtual execution elements; virtual storage; virtual networks). These logical resources are isolated from each other unless specifically allowed by security policies. Virtual networks in a data center can also be interconnected to physical IP VPNs or L2VPNs.
[0209] The network controller 324 can provide network function virtualization (NFV) to networks such as business edge networks, broadband user management edge networks, and mobile edge networks. NFV involves the orchestration and management of network functions, such as firewalls, intrusion detection or prevention systems (IDS / IPS), deep packet inspection (DPI), caching, wide area network (WAN) optimization, etc., in virtual machines, containers, or other virtual execution elements rather than on physical hardware devices. The main drivers for network service virtualization in this market are time to market and cost optimization.
[0210] The network controller 324 programs the network infrastructure elements to create a virtual network and can create interface configurations for the virtual network interfaces of the virtual network. For additional information about the network controller 24 operating with other devices of the data center 10 or other software defined networks, see International Application No. PCT / US2013 / 044378 and U.S. Patent Application No. 14 / 226,509, which are incorporated herein by reference.
[0211] The network controller manager 325 includes code that can be executed by the microprocessor 310. The network controller manager 325 can be one or more computer processes. The network controller manager 325 operates as an interface between the orchestration-oriented elements (e.g., the scheduler 322, the API server 320, the controller manager 326, and the configuration storage 328) and the network controller 324. In general, the network controller manager 325 monitors the cluster for new objects (e.g., pods and services). The network controller manager 325 can isolate pods in virtual networks and connect pods to services.
[0212] The network controller manager 325 can be executed as a container of the master node of the cluster. In some cases, the network controller manager 325 is used to enable the service agent (e.g., Kubernetes kube agent) of the slave node to be disabled, thereby using a virtual router to achieve all cabin connections, as described herein.
[0213] The network controller manager 325 can use the controller framework of the orchestration platform to listen to (or otherwise monitor) changes to objects defined in the API and add annotations to some of these objects. An annotation can be a label or other identifier that specifies an object property (e.g., "virtual network green"). The network controller manager 325 can create a network solution for an application using an interface to the network controller 324 to define network objects, such as virtual networks, virtual network interfaces, and access control policies. The network controller 324 can implement the network solution in the computing infrastructure by configuring one or more virtual networks and virtual network interfaces, for example, in a virtual router.
[0214] The following example deployment configuration for the application consists of a pod and the pod's virtual network information:
[0215] apiVersion:v1
[0216] kind:Pod
[0217] metadata:
[0218] name:multi-net-pod
[0219] annotations:
[0220] networks:'[
[0221] {"name":"red-network"},
[0222] {"name":"blue-network"},
[0223] {"name":"default / extns-network"}
[0224] ]'
[0225] spec:
[0226] containers:
[0227] -image:busybox
[0228] command:
[0229] -sleep
[0230] -"3600"
[0231] imagePullPolicy:IfNotPresent
[0232] name:busybox
[0233] stdin:true
[0234] tty:true
[0235] restartPolicy:Always
[0236] This metadata information is replicated to each pod replica created by the controller manager 326. When the network controller manager 325 is notified of these pods, the network controller manager 325 can create the virtual networks listed in the annotations (in the above example, "Red Network", "Blue Network", and "Default / External Network"), and for each virtual network, create a virtual network interface for each pod replica (e.g., pod 202A) with a unique private virtual network address from the virtual network's cluster-wide address block (e.g., 10.0 / 16). According to the techniques described herein, the network controller manager 325 can use a single network module 206A to drive the creation of multiple virtual network interfaces for each pod replica to configure the pod replica hosts.
[0237] Figures 1 to 3Various components, functional units and / or modules shown in and / or shown or described elsewhere in the present disclosure can perform operations described using software, hardware, firmware or a mixture of hardware, software and firmware resident in and / or executed on one or more computing devices. For example, a computing device can execute one or more such modules with multiple processors or multiple devices. A computing device can execute one or more such modules, for example, a virtual machine executed on underlying hardware. One or more such modules can be executed as one or more services of an operating system or computing platform. One or more such modules can be executed as one or more executable programs at the application layer of a computing platform. In other examples, the functions provided by the modules can be implemented by dedicated hardware devices. Although some modules, data stores, components, programs, executable files, data items, functional units and / or other items included in one or more storage devices can be shown separately, one or more such items can be combined and operated as a single module, component, program, executable file, data item or functional unit. For example, one or more modules or data stores can be combined or partially combined so as to operate or provide functions as a single module. In addition, one or more modules can be operated in conjunction with each other so that, for example, one module acts as a service or extension of another module. In addition, each module, data store, component, program, executable file, data item, functional unit or other item shown in the storage device may include multiple components, subcomponents, modules, submodules, data stores and / or other components or modules or data stores not shown. In addition, each module, data store, component, program, executable file, data item, functional unit or other item shown in the storage device can be implemented in various ways. For example, each module, data store, component, program, executable file, data item, functional unit or other item shown in the storage device can be implemented as part of an operating system executed on a computing device.
[0238] Figure 5 is a flowchart illustrating an example of using a single network module to create multiple network virtual interfaces for a virtual execution element according to the techniques described in this disclosure. Figure 2 and Figure 4 The computing devices 200 and 300 and Figure 3The operations are described with respect to components of the system 250. The API server 320 receives a request to instantiate a pod 202A and modifies the configuration storage 328 (402) by generating and storing configuration information for creating the pod 202A. The scheduler 322 may select a computing device 200 as a host slave node for the pod 202A. The API server 320 may annotate the pod 202A with a list of multiple virtual networks and the pod's uuid (pod_uuid). Other forms of identifiers for the pods may be used. The annotations may be labels indicating the pod configurations of the virtual networks, for example, "Virtual Network A" and "Virtual Network B."
[0239] The network controller manager 325 listens for new objects from the API server 320 and determines that the pod 202A will be instantiated on the computing device 200 and determines from the annotation that the pod 202A requires virtual network interfaces with multiple virtual networks indicated in the annotation. For example, the listening may be responsive to subscribing to API server 320 notifications on a RESTful interface.
[0240] The network controller manager 325 instructs the network controller 324 to create a virtual network and a virtual network interface for the pod 202A of the virtual network (404). The network controller manager 325 may annotate the pod with the corresponding uuids of one or more virtual network interfaces (e.g., vni_uuids) to be created by the network controller 324 and the corresponding unique dedicated virtual network addresses (and MAC addresses in some cases) assigned. Other forms of identifiers for the virtual network interfaces may be used.
[0241] The network controller 324 may associate the virtual network interface with the pod in the interface configuration 25 of the pod 202A. For example, the network controller 324 may create a list of virtual network interfaces for the virtual network and may associate the vni_uuids with the pod_uuid in the interface configuration data 25 of the pod 202A. The vni-uuid may be another identifier of the virtual network interface, such as a virtual machine interface identifier. The network controller 324 may send the interface configuration data 25 to the virtual router agent 216 of the virtual router 220 of the computing device 200 and configure the corresponding virtual network interface 212A, 212b in the computing device 200 (406). The virtual router agent 216 may store the association of each vni_uuid with the corresponding configured virtual network interface.
[0242] To set up pod 202A, orchestration agent 209 obtains container specification data for pod 202A and ensures that the container is executed by computing device 200 (408). The container specification data may include the pod_uuid of pod 202A. Orchestration agent 209 calls single network plug-in 206A to configure the virtual network interface of pod 202A (410). Network plug-in 206A requests (412) and obtains interface configuration data 25 from virtual router agent 216 (414). Network plug-in 206A may obtain interface configuration data 25 from virtual router agent 216 by requesting the interface configuration data of the pod corresponding to the pod_uuid included in the container specification data of pod 202A.
[0243] To create each of the virtual network interfaces 212A, 212B indicated in the interface configuration data 25 (416), the network plug-in 206A can insert the virtual network interface into the pod 202A network namespace (e.g., as one end of a veth pair for the virtual network interface) (418), and can make any necessary changes on the computing device 200 (e.g., connecting the other end of the veth pair to the virtual router 220, which end may have been previously connected to another bridge).
[0244] The network plug-in 206A informs the virtual router agent 216 of the virtual network interfaces 212A, 212B that are now operating (by inserting the cabin 202A) (420). The network plug-in 206A can also obtain the virtual network address from the virtual router agent 216, which can proxy the DHCP request (422) or by calling the appropriate IPAM plug-in. The network plug-in 206A can configure the virtual network address within the cabin 202A network namespace and can set up routes by calling the virtual router agent 216. The virtual router agent 216 installs a route to the IP and MAC address of the cabin 202A of the virtual router agent 216 through the next hop of the virtual network interface 26. The virtual router agent 216 can assign labels to each virtual network interface 26 and install corresponding label routes in the MPLS table. The virtual router 216 can send an XMPP or other message to the network controller 24, containing the route to the new cabin 202A virtual network interface 26. The route for virtual network interface 26A has a next hop of the IP address of server 21A on which virtual router 21A is running, and the route can specify the encapsulation protocol using the label just assigned. For virtual network interface 26N, which is a virtual network interface for a designated backend virtual network for a service, the route can also specify the service IP address assigned to pod 202A. Network controller 24 distributes the route to virtual network interface 26 to other virtual routers 21 that have pods with virtual network interfaces in the same virtual network, as allowed by network policy. If the route includes the service IP address, as the route for virtual network interface 26N can include, virtual router agent 216 adds (or creates) the route to the load balancer (e.g., by adding the route to the ECMP next hop in virtual router 21). In this way, virtual router 21 can load balance service traffic to pod 202A via virtual network interface 26N. Network controller 24 also sends routes to other pods in the virtual network of the virtual network interface that are allowed by the policy to virtual router 21A.
[0245] Optionally, network plug-in 206A can configure a virtual network address within the network namespace of pod 202A and can set up routing consistent with the IP address management portion by calling the appropriate IPAM plug-in. Network plug-in 206A can update the orchestration control plane by notifying orchestration agent 209 (424).
[0246] The virtual router agent 216 can provide the virtual network interface 26 to the network controller 324, for example, using an identifier or as a synthetic next hop. The network controller 324 configures a load balancer for the service 252, wherein the label selector 254 selects a network label 256 (426). Using the selected network label 256, the Kubernetes service 252 generates a load balancer element object 268 to include a corresponding VMI ID annotation 272, which represents a specific virtual network interface through which each pod 202 is linked to the network corresponding to the selected network label 256. The network controller 324 calls the service monitor 274, which uses the configurable endpoint (represented by the virtual network interface, represented by the VMI ID annotation 272) to form a VMI ID 278 to be linked to the service IP address 276.
[0247] Various techniques described herein enable a user to provide a list of networks as comments in the pod 202A YAML. The network controller manager 325 can parse the list of networks and create corresponding ports in the virtual router 220. When the pod 202A is scheduled on the computing device 200, the network plug-in 206A can query the virtual router agent 216 for ports. The virtual router agent 216 will reply with a list of ports, and for each element of the list, the network plug-in 206A will create a tap interface and connect the tap interface to the pod 202A. Because all virtual network interfaces 212A, 212B are created in a single call flow, this can provide better performance when creating virtual network interfaces and connecting them to pods. The container 229A can communicate via any of the virtual network interfaces 212A, 212B to exchange packets with other pods of the cluster on the corresponding network, or exchange packets outside of the pods of the virtual network and cluster using, for example, a gateway.
[0248] In some cases, these techniques can use an orchestration platform to run different containerized network functions in a computing infrastructure, such as a containerized security device or a containerized router. Containerized network functions can typically require network interfaces for multiple networks, such as routers, NAT devices, packet analyzers, and firewalls or other security devices. Therefore, these techniques enable service links with container orchestration platforms for container-centric computing infrastructures.
[0249] For example, any one or more of the containers 229A may represent a containerized network function or a containerized network function virtualization (NFV) instance. The container 229A of the pod 202A has a virtual network interface 212A with a first virtual network corresponding to VRF 222A and a virtual network interface 212B with a second virtual network corresponding to VRF 222B. Other containerized applications executed in pods on other slave nodes of the computing device 200 or cluster and having virtual network interfaces in the first virtual network or the second virtual network may exchange packets with the container 229A and the containerized network function. The service chain of one or more containerized network functions may apply a service sequence to network packets traversing the service chain. The VRF 222 of the virtual router 220 for the slave node may be configured to forward traffic along the service sequence, for example, by configuring the service VRF for the containerized network function to be used as the remaining VRF for the service.
[0250] In an example use case, for a two-tier application with a front end and a database back end, the front end pod can be configured as a virtual network endpoint of virtual network A (corresponding to VRF 222A), and the database pod can be configured as a virtual network endpoint of virtual network B (corresponding to VRF 222B). The containerized firewall can be deployed as a container 229A instance of pod 202A. Virtual network interface 212A is an interface of virtual network A, and virtual network interface 212B is an interface of virtual network B. Packets received from the front end pod at virtual network interface 212A can be processed by the containerized firewall and output to the back end database pod through virtual network B via virtual network interface 212B.
[0251] The techniques of this disclosure enable Kube manager 248 (an example of network controller manager 325) to implement Kubernetes service 252 using custom selected virtual network interfaces 212, 213 for each pod 202, rather than using the default virtual network interfaces 212, 213. Because each of the virtual network interfaces 212, 213 is linked to a different virtual network, the orchestration agent 209 implements the techniques of this disclosure to specify a specific virtual network (in this case, A or B) by selecting from network labels 256. Using the selected one of the network labels 256, Kube manager 248 generates Kubernetes service 252 so that load balancer element 268 includes a VMI ID annotation 272 specifying the specific virtual network interface 212, 213 that links the corresponding pod 202 to the selected virtual network. In turn, the service monitor 274 that listens to config updates generated by the Kubernetes service 252 populates VMI ID 278 with the VMI ID annotation 272 of the config update. In this way, Kube manager 248 implements the techniques of the present disclosure to configure Kubernetes service 252 using a custom selected virtual network interface for each pod 202, rather than relying on a default virtual network interface selection.
[0252] In a use case scenario where a pod 202 can be linked to multiple VRFs 222, an example of a Kubernetes replication controller YAML file is shown below. In this case, the virtual networks corresponding to VRFs 222 are color-coded. That is, network label 256 corresponds to a unique color code assigned to each virtual network associated with VRF 222.
[0253] apiVersion:v1
[0254] kind:ReplicationController
[0255] metadata:
[0256] name:multi-intf-nginx
[0257] spec:
[0258] replicas:3
[0259] template:
[0260] metadata:
[0261] labels:
[0262] run:nginx
[0263] annotations:
[0264] k8s.v1.cni.cncf.io / networks:'[
[0265] {"name":"green"},
[0266] {"name":"red"},
[0267] {"name":"white"}
[0268] ]'
[0269] spec:
[0270] containers:
[0271] -name:nginx
[0272] image:nginx
[0273] ports:
[0274] -containerPort:80
[0275] In a use case scenario where one or more endpoint networks are associated with a Kubernetes service 252, an example of a Kubernetes service YAML file is shown below. The backend network in the use case scenario below is a virtual network, whose network label 256 corresponds to the "white" code in the Kubernetes replication controller YAML file above.
[0276] apiVersion:v1
[0277] kind:Service
[0278] metadata:
[0279] labels:
[0280] run:nginx
[0281] name:nginx
[0282] namespace:default
[0283] annotations:
[0284] k8s.v1.cni.cncf.io / endpoint.networks:'[
[0285] {"name":"white"}
[0286] ]'
[0287] spec:
[0288] ports:
[0289] -port:80
[0290] protocol:TCP
[0291] targetPort:80
[0292] selector:
[0293] run:nginx
[0294] type:ClusterIP
[0295] status:
[0296] loadBalancer:{}
[0297] Figure 6 is a screenshot showing an example of a Kubernetes service of the present disclosure. Figure 6 The Kubernetes service is an example of a contrail ECMP load balancer of the present disclosure.
[0298] Figure 7 is a screenshot illustrating an example of one or more load balancer listeners of the present disclosure.
[0299] Figure 8 is a screenshot showing an example of a load balancer pool of the present disclosure.
[0300] Fig. 9 is a screenshot illustrating an example of one or more load balancer elements of the present disclosure.
[0301] Fig.10 is a screenshot showing an example of annotated load balancer elements of the present disclosure.
[0302] Fig.11 is a screenshot showing an example of service IP routing for a compute node in accordance with aspects of the present disclosure. Fig.11 The compute node of represents "Compute 1" in this example use case scenario.
[0303] Fig.12 is a screenshot illustrating an example of service IP routing for another computing node in accordance with aspects of the present disclosure. Fig.12 The compute node of represents "Compute 2" in this example use case scenario.
[0304] Fig.13 is a screenshot illustrating an example of service IP routing for another computing node in accordance with aspects of the present disclosure. Fig.13 The compute node represents "Compute 3" in this example use case scenario.
[0305] As described in further detail above, to provide reliable services, some orchestration systems (e.g., Kubernetes) have a service building block, which is a load balancer that load balances service traffic between one or more pods that act as backends (also called endpoints).
[0306] Although a pod can have multiple IP / virtual network interfaces, the primary IP / virtual network interface of the pod is used in the endpoints of the Kubernetes service. To facilitate the pod to be exposed to the Kubernetes service using interfaces other than the primary IP / virtual network interface, techniques are described for specifying a virtual network that can be used to identify and configure the preferred virtual network interface. A network controller (e.g., Contrail) provides a method to configure the endpoint network and associate the corresponding IP / virtual network interface of the pod with the Kubernetes service as a backend.
[0307] As mentioned above, the network controller manager (e.g., Contrail kube-manager) listens to Kubernetes events and creates / updates / deletes trajectory objects in the trajectory system. Kubernetes services are mapped to trajectory load balancer objects. Whenever a Kubernetes service is created / updated / deleted, trajectory load balancer, load balancer listener, and load balancer pool objects are created / updated / deleted. Whenever a Kubernetes endpoint is created / updated / deleted, a load balancer element is created / updated / deleted. By annotating the endpoint network in the Kubernetes service, the network controller manager can identify the endpoint network / IP / virtual network interface of the pod and configure it as the backend of the load balancer in trajectory. Using this approach, any IP / virtual network interface of the pod can be exposed as a backend for a Kubernetes service.
[0308] The techniques described herein may be implemented in hardware, software, firmware, or any combination thereof. The various features described as modules, units, or components may be implemented together in an integrated logic device, or separately as discrete but interoperable logic devices or other hardware devices. In some cases, various features of electronic circuits may be implemented as one or more integrated circuit devices, such as an integrated circuit chip or chipset.
[0309] If implemented in hardware, the present disclosure may be directed to a device such as a processor or an integrated circuit device (e.g., an integrated circuit chip or chipset). Alternatively or additionally, if implemented in software or firmware, the techniques may be implemented at least in part by a computer-readable data storage medium that includes instructions that, when executed, cause a processor to perform one or more of the above methods. For example, a computer-readable data storage medium may store the instructions for execution by a processor.
[0310] The computer-readable medium may form part of a computer program product, which may include packaging materials. The computer-readable medium may include computer data storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory, magnetic or optical data storage media, etc. In some examples, the article of manufacture may include one or more computer-readable storage media.
[0311] In some examples, computer-readable storage media may include non-transitory media. The term "non-transitory" may mean that the storage medium is not contained in a carrier wave or propagating signal. In some examples, non-transitory storage media may store data that changes over time (e.g., in RAM or cache).
[0312] The code or instructions may be software and / or firmware executed by a processing circuit that includes one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described in the present disclosure may be provided within a software module or a hardware module.
Claims
1. A system for configuring a load balancer, include: An orchestrator for virtualizing a computing infrastructure, wherein the orchestrator comprises a processing circuit coupled to a storage device and configured to: Receiving a service definition of a service, wherein the service definition specifies a backend virtual network for the service; creating a load balancer object for the load balancer, wherein the load balancer object includes a load balancer element object, and annotating the load balancer element object with an annotation to specify a virtual network interface corresponding to a network label identifying the backend virtual network; and A network controller, wherein the network controller comprises a processing circuit coupled to a storage device, configured to: Sending interface configuration data to a computing device hosting a backend virtual executive element of the service to configure the virtual network interface for the backend virtual network for the backend virtual executive element; and Based on the annotation of the load balancer element object specifying the virtual network interface, the load balancer is configured to partially load balance service traffic for the service to the virtual network interface of the backend virtual network.
2. The system according to claim 1, in, The orchestrator is configured to direct the network controller to create the load balancer for the service.
3. The system according to claim 1, in, The network controller is configured to: assigning a service Internet Protocol address to the service; and The service is configured using the service Internet Protocol address.
4. The system according to claim 1, in, The orchestrator is configured to annotate configuration data of the backend virtual executive to specify the backend virtual network, and The network controller is configured to send the interface configuration data based on the configuration data of the backend virtual execution element, so as to configure the backend virtual network interface of the backend virtual network for the backend virtual execution element.
5. A system according to any one of claims 1 to 4, in, To configure the load balancer, the network controller is configured to: receiving a virtual network address for the virtual network interface of the backend virtual network; and A load balancer is configured to load balance, in part, the service traffic to the virtual network address.
6. A system according to any one of claims 1 to 4, in, To configure the load balancer, the network controller is configured to: receiving a virtual network address of the virtual network interface of the backend virtual network associated with a service Internet Protocol address of the service; and The load balancer is configured to load balance, in part, the service traffic sent to the service Internet Protocol address to the virtual network address.
7. A system according to any one of claims 1 to 4, in, The virtual network interface of the backend virtual network is the primary interface of the backend virtual execution element.
8. A system according to any one of claims 1 to 4, in, The backend virtual execution element includes a Kubernetes container.
9. The system according to claim 8, in, The load balancer includes a Kubernetes service that provides access to the Kubernetes pod via a service Internet Protocol address assigned to the Kubernetes service.
10. An orchestrator for virtualizing computing infrastructure, the orchestrator include: A processing circuit coupled to the storage device is configured to: Receiving a service definition of a service, wherein the service definition specifies a backend virtual network for the service; creating a load balancer object for the load balancer, wherein the load balancer object includes a load balancer element object; annotating the load balancer element object with an annotation to specify a virtual network interface corresponding to a network label identifying the backend virtual network; and Based on the annotation of the load balancer element object specifying the virtual network interface, a network controller is configured to configure the load balancer to partially load balance service traffic of the service to the virtual network interface of the backend virtual network.
11. A method of configuring a load balancer, include: Receiving, by an orchestrator for virtualizing computing infrastructure, a service definition for a service, wherein the service definition specifies a backend virtual network for the service; creating, by the orchestrator, a load balancer object for a load balancer, wherein the load balancer object comprises a load balancer element object; annotating the load balancer element object with an annotation to specify a virtual network interface corresponding to a network label identifying the backend virtual network; Sending, by a network controller, interface configuration data to a computing device hosting a backend virtual executive element of the service, so as to configure the virtual network interface for the backend virtual network to the backend virtual executive element; and The load balancer is configured, by the network controller, based on the annotation of the load balancer element object specifying the virtual network interface, to partially load balance service traffic of the service to the virtual network interface of the backend virtual network.
12. The method of claim 11, further comprising creating the load balancer for the service.
13. The method according to claim 11, further comprising: include: assigning a service Internet Protocol address to said service; and The service is configured using the service Internet Protocol address.
14. The method according to any one of claims 11 to 13, further comprising: include: annotating, by the orchestrator, configuration data of the backend virtual executive element to specify the backend virtual network, and Based on the annotated configuration data of the backend virtual executive element, the interface configuration data is sent to configure the virtual network interface of the backend virtual network for the backend virtual executive element.
15. The method according to any one of claims 11 to 13, in, Configuring the load balancer includes: receiving a virtual network address for the virtual network interface of the backend virtual network; and The load balancer is configured to load balance, in part, the service traffic to the virtual network address.
16. The method according to any one of claims 11 to 13, in, Configuring the load balancer includes: receiving a virtual network address of the virtual network interface of the backend virtual network associated with a floating Internet Protocol address of the service; and The load balancer is configured to load balance, in part, the service traffic sent to the service Internet Protocol address to the virtual network address.
17. A computer readable storage medium encoded with instructions for causing one or more programmable processors to perform the method according to any one of claims 11 to 16.
