Ip address allocation method for adding new node to container cluster service layer

A technology of ip address and container cluster, which is applied in the field of container cloud, can solve problems such as uncontrollable, and achieve the effect of efficient ip address allocation management

Active Publication Date: 2021-03-26
成都精灵云科技有限公司
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When adding nodes to the cluster, the creation of nodes involves IP address allocation. Usually, the bottom layer of the server performs dhcp allocation or manually sets static IP. The former cannot be controlled, and the latter is more troublesome. Therefore, in some special cases, a management platform business layer is required How to assign ip address

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
  • Ip address allocation method for adding new node to container cluster service layer
  • Ip address allocation method for adding new node to container cluster service layer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] see figure 1 , which is the overall architecture diagram of the container cluster platform. In this embodiment, the underlying servers of the container cluster are all created by openstack to ensure that the clusters are all in the same private network. Multiple created servers build a kubernets container cluster and deploy it in the kubernetes cluster The management platform server and the front-end program of the management platform. When the server program is initialized, it reads the configuration information of each node in the cluster and stores the configuration information in the program database.

[0033] In actual application, the flow chart of adding nodes is shown in figure 2 , where, when the user chooses to add a node on the front-end page, first select the cluster to which the node needs to be added, and then fill in the newly added node configuration information. After the front-end request is sent to the management platform server program, the managem...

Embodiment 2

[0036] In this embodiment, the IP address allocation method for adding a new node in the container cluster business layer specifically includes the following steps:

[0037] 1. The user selects the cluster that needs to add nodes on the front-end page of the platform, and fills in the resource size of the new node, such as: 8-core cpu, 16G memory and other configuration information.

[0038] 2. The front-end program sends a request to the management platform server program.

[0039] 3. The management platform server program queries the database to obtain cluster information.

[0040] 4. The management platform server queries the node information of the cluster in the database according to the cluster information, including but not limited to the network area uuid, subnet mask, and calculates the number and length of the first continuous ip address of the running node, which is named partial Offset (offset), for example: the ip addresses of nodes in a cluster are 192.168.1.1, ...

Embodiment 3

[0049] In this embodiment, the IP address allocation method for adding a new node in the container cluster business layer specifically includes the following steps:

[0050]Step 1: Use openstack to build a cloud computing platform and deploy the openstack server.

[0051] Step 2: Create three servers with ip addresses of 192.168.1.1, 192.168.1.2, and 192.168.1.3, deploy the kubernetes container cluster, and deploy the front end of the cluster management platform, the management platform server, which is the business layer and database.

[0052] Step 3: The user selects the cluster that needs to add nodes on the front-end page of the platform, and fills in the resource size of the new node, such as: 8-core cpu, 16G memory and other configuration information.

[0053] Step 4: The front-end program sends a request to the server program.

[0054] Step 5: The management platform server program queries the database to obtain cluster information.

[0055] Step 6: The management pla...

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 relates to the field of container clouds, and discloses an ip address allocation method for adding a new node to a container cluster service layer. The ip address allocation management method solves the problem of ip address allocation management when a new node is added to an existing container cluster, and comprises the steps: selecting the cluster needing to be added with the nodeon a front-end page, and filling in the configuration information of the new node; enabling the front end to send a request to the server; obtaining cluster information; querying the node informationof the cluster in a database according to the cluster information, and calculating the ip address offset according to the number of the first continuous ip addresses of the running nodes in the cluster; calculating an ip address which can be attempted to be allocated according to the ip address offset, the subnet mask and the ip address; enabling the server to performing querying until all the ipaddresses which can be attempted to be allocated are not allocated for use; enabling the server to create a new node meeting the condition; enabling the server to start a new thread to poll the operation condition of the new node; after the new node is successfully started, enabling the server to add the node to the corresponding cluster.

Description

technical field [0001] The invention relates to the field of container clouds, in particular to an IP address allocation method for adding a new node to a container cluster business layer. Background technique [0002] Today's popular technology in the container cloud field, especially the container scheduling engine - kubernetes is the most popular, and its biggest advantage is the unified management of resources such as CPU (central processing unit) and memory (memory) in the system. kubernetes, referred to as K8s, is an abbreviation formed by replacing the 8 characters "ubernete" with 8. It is an open source, used to manage containerized applications on multiple hosts in the cloud platform. The goal of Kubernetes is to make the deployment of containerized applications simple and efficient (powerful). Kubernetes provides application deployment, planning, updating, and maintenance. a mechanism. [0003] The traditional application deployment method is to install the appli...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12
CPCH04L61/4535H04L61/5007Y02D10/00
Inventor 晏东骆宇平李耀宗
Owner 成都精灵云科技有限公司
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