Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for modifying Pod network interface during operation based on CNI plug-in in K8s

A network interface and network technology, applied in the field of modifying the Pod network interface, can solve the problems that the Pod’s network interface cannot be modified, cannot meet such requirements, and cannot dynamically access data sources, etc., so as to improve the overall performance and reliability, and apply Strong performance and high fault tolerance

Active Publication Date: 2021-08-06
SHANGHAI NETIS TECH
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of the prior art mentioned above, the inventor believes that it is impossible to dynamically access different data sources or send them to different destinations on demand (such as external instructions) during the running of the Pod, and there are some specific business requirements (such as packet playback or During packet processing), the network interface of the Pod cannot be modified during operation to access different data sources
Such needs cannot be met using standard web plugins

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for modifying Pod network interface during operation based on CNI plug-in in K8s
  • Method and system for modifying Pod network interface during operation based on CNI plug-in in K8s
  • Method and system for modifying Pod network interface during operation based on CNI plug-in in K8s

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0083] The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0084] The embodiment of the present invention discloses a method and system for modifying the Pod network at runtime based on the CNI plug-in in K8s, such as figure 2 As shown, the system includes the following components: a node is a node in the K8s cluster, and its function is to run a physical machine or a virtual machine of a Pod. The API server is the K8s cluster API server, and the function of the API server is the cluster control center.

[0085] Among them, the node includes the following com...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a system for modifying a Pod network during operation based on a CNI plug-in in K8s. The method comprises the following steps: Pod is called to nodes; the Kubelet is used for calling a Multi CNI (Computer Network Interface) cmdAdd interface; the Multi CNI calls a Dturbo CNI cmdAdd interface, and the Dturbo CNI cmdAdd interface is called by the Multi CNI; the Dturbo CNI generates a Pod network namespace record in the cmdAdd interface; when the Operator monitors the newly added Pod network namespace record, the Operator creates a corresponding network interface according to the Pod network interface definition; the Pod is removed from the node; the Kubelet is used for calling a Multi CNI (Computer Network Interface) cmdDel interface; the Multi CNI calls a Dturbo CNI cmdDel interface, and the Dturbo CNI cmdDel interface is called by the Multi CNI; the Dturbo CNI deletes a Pod network namespace record in the cmdDel interface; when the Operator monitors that the network namespace record is deleted, the Operator deletes the existing network interface of the Pod; a Pod network interface definition is externally modified; the Operator monitors that the definition of the network interface in the Pod configuration is modified; the Operator deletes the existing network interface of the Pod; and the Operator creates a corresponding network interface according to the modified Pod network interface definition. According to the invention, the capability of modifying the Pod network interface during operation is provided, and specific service requirements are met.

Description

technical field [0001] The present invention relates to the technical field of modifying a Pod network interface in K8s, in particular to a method and a system for modifying a Pod network interface during runtime based on a CNI plug-in in K8s. Background technique [0002] To create a Pod in a Kubernetes (K8s for short) cluster, only one network card can be used by default, but in some cases (such as implementing the container routing function), a single network card cannot meet the experimental requirements. Multus-CNI provides the ability to add multiple interfaces to a Pod, which allows the Pod to connect to multiple networks through different interfaces, and each interface will use its own CNI plug-in (CNI plug-in refers to complying with the container network interface specification The implemented network plug-in is the implementation method of the mainstream network plug-in in the K8s community), that is, multiple network cards of different network segments are establ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/455G06F9/445
CPCG06F9/45558G06F9/44526G06F2009/45595
Inventor 李晶蔡晓华
Owner SHANGHAI NETIS TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products