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

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

Example Embodiment

[0083] The present invention will be described in detail below with reference to 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, for those skilled in the art, several changes and improvements can be made without departing from the inventive concept. 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 a Pod network at runtime based on a CNI plug-in in K8s, such as figure 2 As shown, this system includes the following components: A node is a node in a K8s cluster, and its function is to run a physical machine or a virtual machine of the 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 components: Ku...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products