CN106330923B - Node registering method and system based on Kubernetes system - Google Patents
Node registering method and system based on Kubernetes system Download PDFInfo
- Publication number
- CN106330923B CN106330923B CN201610744129.2A CN201610744129A CN106330923B CN 106330923 B CN106330923 B CN 106330923B CN 201610744129 A CN201610744129 A CN 201610744129A CN 106330923 B CN106330923 B CN 106330923B
- Authority
- CN
- China
- Prior art keywords
- node
- registered
- encapsulated tags
- address
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000004806 packaging method and process Methods 0.000 claims abstract description 13
- 230000001052 transient effect Effects 0.000 claims description 8
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000002224 dissection Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1073—Registration or de-registration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of node registering method and system based on Kubernetes system, wherein, this method comprises: the encapsulated tags that node to be registered is sent are received, wherein the encapsulated tags are that the node to be registered carries out the acquisition of Label Tag Packaging to the nodal information of the node to be registered;According to the encapsulated tags, IP address and port are distributed for the node to be registered, so that the node to be registered carries out inner parameter configuration according to the IP address and the port, completes the registration of the node to be registered.Node registering method and system provided in an embodiment of the present invention based on Kubernetes system, realizes the automatic registration of Kubernetes system lower node, improves the registration efficiency of Kubernetes system lower node.
Description
Technical field
The present embodiments relate to big data technical field more particularly to a kind of node notes based on Kubernetes system
Volume method and system.
Background technique
Kubernetes is the container cluster management system of Google open source, provides application deployment, maintenance, extension mechanism
Etc. functions, using Kubernetes can easily manage across machine operation containerization application, major function include such as
Under several aspects:
(1) operation such as packed, instantiate, run to application program using container engine Docker.
(2) it run in a manner of cluster, manage the container across machine.
(3) Docker is solved across the Communication between machine container.
But in existing Kubernetes system, the deployment of node is imitated there is still a need for registration configuration is manually carried out
Rate is lower.
Summary of the invention
The embodiment of the present invention provides a kind of node registering method and system based on Kubernetes system, to improve
The registration efficiency of Kubernetes system interior joint.
First aspect of the embodiment of the present invention provides a kind of node registering method based on Kubernetes system, this method packet
It includes:
Receive the encapsulated tags that node to be registered is sent, wherein the encapsulated tags be the node to be registered to it is described to
The nodal information of register node carries out the acquisition of Label Tag Packaging;
According to the encapsulated tags, IP address and port are distributed for the node to be registered, so that the node to be registered
Inner parameter configuration is carried out according to the IP address and the port, completes the registration of the node to be registered.
Second aspect of the embodiment of the present invention provides a kind of Kubernetes system, which includes:
Receiving unit, the encapsulated tags sent for receiving node to be registered, wherein the encapsulated tags are described wait infuse
Volume node carries out the acquisition of Label Tag Packaging to the nodal information of the node to be registered;
Configuration unit, for IP address and port being distributed for the node to be registered, so that institute according to the encapsulated tags
It states node to be registered and inner parameter configuration is carried out according to the IP address and the port, complete the note of the node to be registered
Volume.
The embodiment of the present invention, by receiving node to be registered according to Label Tag Packaging mechanism encapsulated tags generated,
It is that node to be registered distributes IP address and port according to the encapsulated tags, enables node to be registered according to the IP address and end
Mouth completes the configuration of inner parameter, realizes the automatic registration of Kubernetes system lower node, without as traditional technology
Like that, it is also necessary to manual configuration be carried out to the registration parameter of node, improve the registration efficiency of Kubernetes system lower node.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is the process signal for the node registering method based on Kubernetes system that the embodiment of the present invention one provides
Figure;
Fig. 2 is that the process of the node registering method provided by Embodiment 2 of the present invention based on Kubernetes system is illustrated
Figure;
Fig. 3 is the structural schematic diagram for the Kubernetes system that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the Kubernetes system that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The term " includes " of description and claims of this specification and " having " and their any deformation, it is intended that
Be to cover it is non-exclusive include, for example, the device of the process or structure that contain series of steps is not necessarily limited to clearly arrange
Those of out structure or step but may include other steps being not clearly listed or intrinsic for these processes or device
Rapid or structure.
Fig. 1 is the process signal for the node registering method based on Kubernetes system that the embodiment of the present invention one provides
Figure, this method can be executed by a Kubernetes system.As shown in Figure 1, method provided in this embodiment includes as follows
Step:
Step S101, the encapsulated tags that node to be registered is sent are received, wherein the encapsulated tags are the section to be registered
Point carries out the acquisition of Label Tag Packaging to the nodal information of the node to be registered.
" node to be registered " so-called in the present embodiment is first access Kubernetes system, and not in Kubernetes
The node registered in system.
Optionally, in the present embodiment, the encapsulated tags that node to be registered that Kubernetes system receives is sent can be with
It is specially Label label.
In practical application, node to be registered accesses Kubernetes system by the proxy server on node, and passes through
The proxy server distributes interim IP address and port.Kubernetes system is accessed in node to be registered and obtains agency's clothes
It is engaged in after the temporary ip address and transient port of device distribution, node to be registered is according to the Label Tag Packaging of Kubernetes system
Mechanism is packaged the nodal information of its own, forms encapsulated tags.Wherein, the nodal information of node to be registered include to
The node identification of register node, temporary ip address, transient port information, variable information and nodal function illustrate information.And
And what needs to be explained here is that: the packaging method of the present embodiment interior joint information and existing Label Tag Packaging mechanism class
Seemingly, it repeats no more herein.Further, node to be registered is after encapsulation forms encapsulated tags, according to the interim IP address
Send encapsulated tags in Kubernetes system with port so that Kubernetes system according to the encapsulated tags to its into
Row location registration process.
Step S102, according to the encapsulated tags, IP address and port are distributed for the node to be registered so that it is described to
Register node carries out inner parameter configuration according to the IP address and the port, completes the registration of the node to be registered.
In practical application, Kubernetes system carries out dissection process to the encapsulated tags after receiving encapsulated tags and obtains
The nodal information of node to be registered is taken, further, after the nodal information for obtaining node to be registered, Kubernetes system is logical
Cross its internal domain name system be the node to be registered distribute the IP address of the node to be registered in Kubernetes system and
Communication port, and the information of the IP address and the communication port is sent to the node to be registered, so that the node root to be registered
According to the parameter configuration inside the IP address and communication port progress of the distribution of Kubernetes system.To realize Kubernetes system
The automation registration of node under system.
The present embodiment, by receiving node to be registered according to Label Tag Packaging mechanism encapsulated tags generated, according to
The encapsulated tags are that node to be registered distributes IP address and port, enable node to be registered complete according to the IP address and port
At the configuration of inner parameter, the automatic registration of Kubernetes system lower node is realized, without conventionally,
It also needs the registration parameter to node to carry out manual configuration, improves the registration efficiency of Kubernetes system lower node.
Fig. 2 is that the process of the node registering method provided by Embodiment 2 of the present invention based on Kubernetes system is illustrated
Figure, as shown in Fig. 2, the present embodiment can also include after step slol step S103:
Step S103, the encapsulated tags are sent to by second agent's server by first agent's server, so that institute
It states second agent's server and the node to be registered is managed according to the encapsulated tags.
In practical application, first agent's server can be specially the Client Agent service in Kubernetes system
Device.After Kubernetes system receives the encapsulated tags that node to be registered is sent, by first agent's server by the envelope
Dress label is sent to second agent's server, enables second agent's server according to the encapsulated tags to the node to be registered
It is managed.
Specifically, optionally, second agent's server is obtained from encapsulated tags when being managed to the node to be registered
Take the variable information of node to be registered, wherein the variable information includes the title and the corresponding data parameters of variable of variable.Into
One step, second agent's server is realized according to the Label tag match algorithm under Kubernetes system to section to be registered
The management of point.Wherein, the Label tag match algorithm under Kubernetes system is that the prior art repeats no more herein.
The present embodiment, by receiving node to be registered according to Label Tag Packaging mechanism encapsulated tags generated, according to
The encapsulated tags are that node to be registered distributes IP address and port, enable node to be registered complete according to the IP address and port
At the configuration of inner parameter, the automatic registration of Kubernetes system lower node is realized, without conventionally,
It also needs the registration parameter to node to carry out manual configuration, improves the registration efficiency of Kubernetes system lower node.
Fig. 3 is the structural schematic diagram for the Kubernetes system that the embodiment of the present invention three provides, as shown in figure 3, this implementation
Example provide Kubernetes system include:
Receiving unit 11, the encapsulated tags sent for receiving node to be registered, wherein the encapsulated tags be it is described to
Register node carries out the acquisition of Label Tag Packaging to the nodal information of the node to be registered;
Configuration unit 12, for distributing IP address and port for the node to be registered according to the encapsulated tags, so that
The node to be registered carries out inner parameter configuration according to the IP address and the port, completes the note of the node to be registered
Volume.
Wherein, the encapsulated tags include the temporary ip address and transient port information of the node to be registered, wherein institute
When to state temporary ip address and transient port be the node access system to be registered, the third on the node to be registered acts on behalf of clothes
The business device node to be registered temporarily distributes.
The present embodiment can be used in the method for executing embodiment as shown in Figure 1, and executive mode is similar with beneficial effect,
Which is not described herein again.
Fig. 4 is the structural schematic diagram for the Kubernetes system that the embodiment of the present invention four provides, as shown in figure 4, this implementation
On the basis of example structure shown in Fig. 3, further includes:
Administrative unit 13, wherein the administrative unit includes first agent's server 131 and second agent's server 132;
First agent's server 131 is used to the encapsulated tags being sent to second agent's server 132;
Second agent's server 132 is for being managed the node to be registered according to the encapsulated tags.
Particularly, in the present embodiment, in the encapsulated tags include the node to be registered variable information, described second
Proxy server 132 is specifically used for being managed the node to be registered according to the variable information.
The present embodiment can be used in the method for executing embodiment as shown in Figure 2, and executive mode is similar with beneficial effect,
Which is not described herein again.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (4)
1. a kind of node registering method based on Kubernetes system characterized by comprising
The encapsulated tags that node to be registered is sent are received, wherein the encapsulated tags are the node to be registered to described to be registered
The nodal information of node carries out the acquisition of Label Tag Packaging;The encapsulated tags include the variable letter of the node to be registered
Breath;The variable information includes the title and the corresponding data parameters of variable of variable;
According to the encapsulated tags, distribute IP address and port for the node to be registered so that the node to be registered according to
The IP address and the port carry out inner parameter configuration, complete the registration of the node to be registered;
After the encapsulated tags for receiving node to be registered, the method also includes:
The encapsulated tags are sent to second agent's server by first agent's server, so that the second agent services
Device is managed the node to be registered according to the variable information.
2. the method according to claim 1, wherein the encapsulated tags include the interim of the node to be registered
IP address and transient port information, wherein when the temporary ip address and transient port are the node access system to be registered,
The third proxy server node to be registered on the node to be registered temporarily distributes.
3. a kind of Kubernetes system characterized by comprising
Receiving unit, the encapsulated tags sent for receiving node to be registered, wherein the encapsulated tags are the section to be registered
Point carries out the acquisition of Label Tag Packaging to the nodal information of the node to be registered;The encapsulated tags include described wait infuse
The variable information of volume node;The variable information includes the title and the corresponding data parameters of variable of variable;
Configuration unit, for distributing IP address and port for the node to be registered according to the encapsulated tags so that it is described to
Register node carries out inner parameter configuration according to the IP address and the port, completes the registration of the node to be registered;
The system also includes:
Administrative unit, wherein the administrative unit includes first agent's server and second agent's server;
First agent's server is used to the encapsulated tags being sent to second agent's server;
Second agent's server is for being managed the node to be registered according to the variable information.
4. system according to claim 3, which is characterized in that the encapsulated tags include the interim of the node to be registered
IP address and transient port information, wherein when the temporary ip address and transient port are the node access system to be registered,
The third proxy server node to be registered on the node to be registered temporarily distributes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610744129.2A CN106330923B (en) | 2016-08-26 | 2016-08-26 | Node registering method and system based on Kubernetes system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610744129.2A CN106330923B (en) | 2016-08-26 | 2016-08-26 | Node registering method and system based on Kubernetes system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106330923A CN106330923A (en) | 2017-01-11 |
CN106330923B true CN106330923B (en) | 2019-10-25 |
Family
ID=57791317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610744129.2A Active CN106330923B (en) | 2016-08-26 | 2016-08-26 | Node registering method and system based on Kubernetes system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106330923B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881455B (en) * | 2018-06-28 | 2020-12-08 | 西北工业大学 | Data packaging and transmission method in heterogeneous cloud storage system of low-capacity storage node |
CN109104305A (en) * | 2018-07-26 | 2018-12-28 | 广东浪潮大数据研究有限公司 | A kind of node increases method and relevant apparatus |
CN109656699A (en) * | 2018-12-14 | 2019-04-19 | 平安医疗健康管理股份有限公司 | Distributed computing method, device, system, equipment and readable storage medium storing program for executing |
CN112073449B (en) * | 2019-06-11 | 2023-04-18 | 易保网络技术(上海)有限公司 | Kubernetes-based environment switching processing method and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703211A (en) * | 2013-12-04 | 2015-06-10 | 华为技术有限公司 | A virtualization accessing method and apparatus |
CN105656653A (en) * | 2014-11-14 | 2016-06-08 | 华为技术有限公司 | Network access method of newly added node in distributed coordination system, device and system |
CN105743995A (en) * | 2016-04-05 | 2016-07-06 | 北京轻元科技有限公司 | Transplantable high-available container cluster deploying and managing system and method |
CN105897946A (en) * | 2016-04-08 | 2016-08-24 | 北京搜狐新媒体信息技术有限公司 | Obtaining method and system of access address |
-
2016
- 2016-08-26 CN CN201610744129.2A patent/CN106330923B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703211A (en) * | 2013-12-04 | 2015-06-10 | 华为技术有限公司 | A virtualization accessing method and apparatus |
CN105656653A (en) * | 2014-11-14 | 2016-06-08 | 华为技术有限公司 | Network access method of newly added node in distributed coordination system, device and system |
CN105743995A (en) * | 2016-04-05 | 2016-07-06 | 北京轻元科技有限公司 | Transplantable high-available container cluster deploying and managing system and method |
CN105897946A (en) * | 2016-04-08 | 2016-08-24 | 北京搜狐新媒体信息技术有限公司 | Obtaining method and system of access address |
Non-Patent Citations (1)
Title |
---|
Kubernetes初探;张俊;《https://blog.csdn.net/zhangjun2915/article/details/40598151》;20141030;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN106330923A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106330923B (en) | Node registering method and system based on Kubernetes system | |
CN106533935B (en) | A kind of method and apparatus obtaining business chain information in cloud computing system | |
CN107580083A (en) | A kind of method and system of container IP address distribution | |
CN104111944B (en) | Page processing method and device and page generation method and device | |
CN106790660A (en) | A kind of dispositions method and device for realizing distributed memory system | |
CN109818902A (en) | Automatic service deployment method, service dispatch management module and EPG platform | |
CN109634657A (en) | A kind of micro services are packaged dispositions method and system | |
CN105491039B (en) | A kind of distributed software shared system | |
CN106301829A (en) | A kind of method and apparatus of Network dilatation | |
CN102571997A (en) | Method, system and device for data access | |
CN108319463A (en) | A kind of application upgrade method, apparatus | |
CN103416025A (en) | Systems and methods for VLAN tagging via cloud bridge | |
CN107623729A (en) | A kind of caching method, equipment and cache service system | |
CN105553684B (en) | A kind of communication system and its router upgrade method of application | |
CN106506719A (en) | The collocation method of distribution policy and configuration system in name data network | |
CN108885564A (en) | Resource in network virtualization scene places control | |
CN104298733B (en) | A kind of service function implementation method and service function realization device | |
CN110213391A (en) | A kind of configuration method and device of internet protocol address | |
CN103902539B (en) | Extensible markup analysis method and device | |
CN102497436A (en) | Networked file storing method and system based on HTTP (Hyper Text Transport Protocol) | |
CN106708573A (en) | System and method used for automatic installation of Hadoop cluster | |
CN109858257A (en) | Access control method and device | |
CN109104368A (en) | A kind of request connection method, device, server and computer readable storage medium | |
CN104426759B (en) | Host routes acquisition methods, apparatus and system | |
CN109889625A (en) | Access method, equipment and the computer readable storage medium of server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |