CN109743192A - A kind of container cluster configuration management method and device - Google Patents
A kind of container cluster configuration management method and device Download PDFInfo
- Publication number
- CN109743192A CN109743192A CN201811472900.0A CN201811472900A CN109743192A CN 109743192 A CN109743192 A CN 109743192A CN 201811472900 A CN201811472900 A CN 201811472900A CN 109743192 A CN109743192 A CN 109743192A
- Authority
- CN
- China
- Prior art keywords
- source information
- container
- cluster configuration
- information
- configuration
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention proposes a kind of container cluster configuration management method and device, the application container source information and container cluster configuration source information that management control center generates are obtained by node control module, since this two parts information decouples each other, to during subsequent calls, the node control module of node is according to configuration mapping relation information, the configuration information in container cluster configuration source information can be obtained, to call the corresponding service function of application container source information.To while guaranteeing application container normal call, be updated in needs/functions such as rollback when, be updated only for container cluster configuration source information, without will affect application container source information.To improve the efficiency of service arrangement.And then when configuration occur, calling exception, by detection container cluster configuration source information, problem can be positioned faster, improve the safety of service invocation procedure.
Description
Technical field
The present invention relates to isomery clouds, in particular to a kind of container cluster configuration management method and device.
Background technique
In traditional application deployment scheme, it usually needs realize the installation of application by way of plug-in unit/script.Its
Operation relevant to application, configuration, management and all periods are all coupled with this using current operating system.Example
Such as, during enterprise-level application development, the prior art, which needs for the control function of relevant configuration to be deployed in business module, is deposited
Storage and calling.Its process disposed mainly is divided into three parts: the 1, generation of business module configuration information;2, configuration information
It calls;3, the update and rollback of configuration information.
But due in above-mentioned process between each part there are coupling, with the complication of application frame and business,
Its efficiency for disposing process can also gradually decrease.For example, one is requested before first reaching from user in traditional service call
It holds A (such as front-end interface), then by far call, reaches middleware B (such as load balancing)-C (such as gateway) of system, finally
It reaches back-end services (D), is calculated by a series of service logic, data are finally returned into user.Due in service dispatch
In the process, if B or C call D service when, dependent on the configuration of D, then when the configuration size variation of D or it is abnormal when, just than
It is more difficult to go to position or analyze, it is even more so when service module increases.
In conclusion there are couplings between each function, due in the deployment scheme of existing application so as to cause deployment
The efficiency of process reduces.
Summary of the invention
The purpose of the present invention is to provide a kind of container cluster configuration management method and devices, for improving using deployment
Efficiency.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the present invention proposes a kind of container cluster configuration management method, comprising:
Node control module obtains application container source information and container cluster configuration source information;The application container is blue
This information and the container cluster configuration source information are generated by management control center, the container cluster configuration source packet
Containing configuration mapping relation information corresponding with the application container source information;
The node control module obtains the container cluster configuration source information according to the configuration mapping relation information
In configuration information, to call the corresponding service function of the application container source information.
With reference to first aspect, in the first possible implementation, it is blue to obtain application container for the node control module
This information and container cluster configuration source information, comprising:
The node control module receives the application container source information that the management control center issues;
The node control module obtains the container cluster configuration source information in memory module.
The possible implementation of with reference to first aspect the first, in the second possible implementation, further includes:
The node control module monitors the memory module, when there are the container cluster configurations to update source
When information, obtains the container cluster configuration and update source information;The container cluster configuration updates source information by the pipe
Control centre is managed to generate;
The container cluster configuration source information update is container cluster configuration update by the node control module
Source information.
The possible implementation of second with reference to first aspect, in the third possible implementation, further includes:
The node control module obtains the container cluster configuration and updates source according to the configuration mapping relation information
Configuration information in information, to call the corresponding service function of the application container source information, comprising:
The node control module obtains the container cluster configuration and updates according to the configuration mapping relations more new information
Configuration information in source information, to call the corresponding service function of the application container source information.
Second aspect, the embodiment of the present invention propose a kind of container cluster configuration managing device, comprising: obtain module and service
Calling module;
The acquisition module, for obtaining application container source information and container cluster configuration source information;The application
Container source information and the container cluster configuration source information are generated by management control center, the container cluster configuration source
Information includes configuration mapping relation information corresponding with the application container source information;
The service calling module, for it is blue to obtain the container cluster configuration according to the configuration mapping relation information
Configuration information in this information, to call the corresponding service function of the application container source information.
In conjunction with second aspect, in the first possible implementation, the acquisition module is specifically used for receiving the pipe
The application container source information that reason control centre issues;Obtain the container cluster configuration source information in memory module.
In conjunction with the first possible implementation of second aspect, in the second possible implementation, the acquisition
Module is also used to monitor the memory module, when updating source information there are container cluster configuration, obtains the appearance
Device cluster configuration updates source information;It is that the container cluster configuration updates indigo plant by the container cluster configuration source information update
This information;The container cluster configuration updates source information and is generated by the management control center.
In conjunction with second of possible implementation of second aspect, in the third possible implementation, the service
Calling module is specifically used for obtaining the container cluster configuration according to the configuration mapping relations more new information and updating source letter
Configuration information in breath, to call the corresponding service function of the application container source information.
Compared with the prior art, the embodiment of the present invention has the advantages that
Container cluster configuration management method provided in an embodiment of the present invention and device, are managed by node control module
The application container source information and container cluster configuration source information that control centre generates, since this two parts information solves each other
Coupling, so that the node control module of node can obtain sets of containers according to configuration mapping relation information during subsequent calls
Configuration information in group configuration source information, to call the corresponding service function of application container source information.To guarantee to answer
While with container normal call, need to be updated/functions such as rollback when, only for container cluster configuration source information into
Row updates, without will affect application container source information.To improve the efficiency of service arrangement.And then when appearance configuration, tune
When exception, by detection container cluster configuration source information, problem can be positioned faster, improve service
The safety of calling process.
Other feature and advantage of the embodiment of the present invention will illustrate in subsequent specification, also, partly from specification
In become apparent, or by implement understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by institute
Specifically noted structure is achieved and obtained in specification, claims and the attached drawing write.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the configuration diagram of service arrangement in the prior art;
Fig. 2 is a kind of configuration diagram of container cluster configuration management system provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of container cluster configuration management method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another container cluster configuration management method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another container cluster configuration management method provided in an embodiment of the present invention;
Fig. 6 is a kind of Signalling exchange schematic diagram of container cluster configuration management method provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of container cluster configuration managing device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of node device provided in an embodiment of the present invention.
Icon: 10- management control center;11- node cluster;101-API server;102- memory module;103- operation
Management Controller;104- cloud controller manager;105- scheduler module;110- node control module;111- operating system;112-
Hardware module;30- container cluster configuration managing device;300- obtains module;301- service calling module;40- node device;
400- interface;401- processor;402- memory.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Fig. 1 is the configuration diagram of service arrangement in the prior art, and referring to Fig. 1, which includes: user port, statistics
Service (Statistics Service), account service (Account Service) and notice service (Notification
Service)。
Based on above-mentioned basic service module, rights service, configuration service, log analysis, data can be further realized
The functions such as service are searched in monitoring.
And the framework based on the existing service arrangement of Fig. 1, there are couplings between each service, for example, when user needs
When using configuration service, needing to call by operating system includes multiple services such as account service, notice service, rights service
Module can realize the configuration service of user's request.
For example, with reference to Fig. 1, user 1 encapsulates service configuration information, and the configuration information sample is as follows:
DB_PCO_ORDER_URL=jdbc:mysql: //ip/database? useUnicode=true&;
CharacterEncoding=utf-8, DB_PCO_ORDER_USER=usrname
Further, which is sent to lookup for the configuration information by user port (for example, API Gateway)
It services (such as EUREKA);And then the lookup service is scheduled, which is dispatched to configuration service (Config
Service), to complete to configure to specific transactions.
And another user 2 is then needed lookup into Fig. 1 to service and sends request, this is looked into when wanting to obtain the configuration information
After looking for service to receive request, then by dispatching the configuration information obtained in configuration service, feed back to user 2.
As it can be seen that being based on existing framework, multiple service modules in configuration/scheduling process of entire service configuration information
It must be coupling between (lookup service, configuration service in such as above-mentioned example), patrolling for specific transactions is established based on coupling
Volume, the configuration and scheduling of corresponding service can be completed.But with complicating with providing service, calling, configuration etc. are operated
The efficiency of service arrangement will be reduced because of the coupling between service.Even there are configuring redundancy, call the risks such as abnormal,
Reduce the configuration safety in service invocation procedure.
In order to avoid the reduction of above-mentioned existing framework service arrangement efficiency as caused by coupling, the following embodiments of the present invention
The implementation for providing a kind of container cluster configuration management system is able to carry out a kind of container cluster configuration management method, with
Just the efficiency of service arrangement is improved.
Fig. 2 is a kind of configuration diagram of container cluster configuration management system provided in an embodiment of the present invention, referring to fig. 2,
The container cluster configuration management system, including but not limited to: management control center 10 and node cluster 11.
Wherein, management control center 10 can be run on any node in node cluster 11.Usually it is in a void
The management control center 10 is run on quasi- machine (Virtual Machine, referred to as: VM) or entity device.
The management control center 10 is including but not limited to API server 101, memory module 102, operational management controller
103, cloud controller manager 104 and scheduler module 105;
Wherein, API server 101 is used to provide interactive interface with the node in node cluster 11, to realize that resource is asked
Seek/call operation.
Optionally, which can also have the port interacted with user.
Memory module 102, for the storage system of the system default, for storing the data of all node clusters 11.
Operational management controller 103, for handling the background thread of 11 normal work to do of node cluster.
Specifically, each controller can make individual process/be also possible to multiple processes.It can be with for different functions
Different controllers is configured, for example, Node Controller, copy controller, endpoint controller etc..
Cloud controller manager 104, for being interacted with the plateform system of bottom cloud.
Scheduler module 105 for monitoring that new creation is not allocated to the minimum process unit of node, and is the minimum process
One node of Unit selection.
Specifically, the minimum process unit represents a process being currently running on cluster.One minimum process unit envelope
It fills an application container (can also have multiple containers), storage resource, an independent network IP and management control container fortune
The policing option of line mode.Minimum process unit represents a unit of deployment: the example individually applied, it may be by single
The resource of container or the shared composition of multiple containers.
And for the present embodiments relate to container, be mutually isolated between each container, each container has respective text
Part system, process will not influence each other between container, can distinguish computing resource.Virtual machine in compared with the existing technology, container
Energy rapid deployment, since container and bottom facilities, machine file system decouple, so it can be operated in different clouds, different editions
It is migrated between system.
Container takes up less resources, disposes fastly, and each application can be packaged into a container mirror image, each application and container
Between in a pair a relationship, each application do not need to combine with remaining application stack, also not dependent on production environment foundation structure,
This makes from researching and developing to testing, produces and can provide consistent environment.Similarly, than empty machine light weight, more " transparent ", this is more convenient for container
Monitoring and management.
With continued reference to Fig. 2, which may include one or more nodes, and section is included at least on each node
Point control module 110, operating system 111 and hardware module 112.
Wherein, agency of the node control module 110 as the node is mainly used for monitoring and has distributed to the minimum of the node
Process unit.The node control module 110 can be interacted with API server 101 above.
Specifically, the node control module 110 can be used for: obtaining and install container cluster configuration source information;Operation
Container;Periodically the container of operation is checked;Feed back the state of the minimum process unit executed;Feed back the shape of the node executed
State;
Operating system 111, for providing the basic operation environment of the node.
Hardware module 112, for the necessary hardware device for realizing the nodal function, such as on one or more chips, one
Or multiple memories, one or more PORT COMs etc., these devices can be connected by one or more bus.
It should be noted that the node cluster 11 in Fig. 2 is only using three nodes as illustrating, herein not to node collection
The number of 11 interior joints of group is defined.And for each node, it can also include other functional modules to realize node
Corresponding function, such as the modules such as the network port, container memory management of data transmission between node.
It is above-mentioned Fig. 2 shows container cluster configuration management system be only illustrated as example, those skilled in the art
Corresponding system architecture can be set according to concrete scene demand, which is adapted to the layout rule of different isomerization cloud
Then, the embodiment of the present invention not limits.
Optionally, container cluster configuration management system shown in Fig. 2 can be applied to such as Kubernetes (K8s),
In the isomeries cloud system framework such as C2Container Service (ECS).
A kind of container cluster configuration management method is given below in container cluster configuration management system based on above-mentioned offer
Possible implementation, core improvement are: using the characteristic of said vesse cluster configuration management system, by application container indigo plant
This information and container cluster configuration source information independent process.Specifically, Fig. 3 is a kind of sets of containers provided in an embodiment of the present invention
The flow diagram of group configuration management method, the executing subject of this method are the node control module 110 in above-mentioned Fig. 2, can
To be the node control module 110 in one or more nodes, referring to Fig. 3, this method process includes:
Step 100, node control module obtain application container source information and container cluster configuration source information;
Wherein, application container source information and container cluster configuration source information are raw by the management control center 10 in Fig. 2
At container cluster configuration source information includes configuration mapping relation information corresponding with application container source information.
Step 102, node control module obtain in container cluster configuration source information according to configuration mapping relation information
Configuration information, to call the corresponding service function of application container source information.
Container cluster configuration management method provided in an embodiment of the present invention is obtained in management control by node control module
The application container source information and container cluster configuration source information that the heart generates, since this two parts information decouples each other, thus
During subsequent calls, node control module can obtain container cluster configuration source letter according to configuration mapping relation information
Configuration information in breath, to call the corresponding service function of application container source information.To normally be adjusted in guarantee application container
With while, need to be updated/functions such as rollback when, be updated only for container cluster configuration source information, without
It will affect application container source information.To improve the efficiency of service arrangement.And then works as and configuration occur, calls situations such as abnormal
When, by detection container cluster configuration source information, problem can be positioned faster, improve the peace of service invocation procedure
Quan Xing.
Optionally, which can be to be related to the relevant security information of application container, such as secret
The information such as key, permission, account;For example, when the container cluster configuration management system is adapted to K8s framework, the container cluster configuration
Source information can be Secret information.
Optionally, for application container source information and container cluster configuration source information, management control center generates it
After can store to memory module;And for these two types of information, node control module can obtain by way of actively or passively
It takes, on the basis of Fig. 3, Fig. 4 is the process signal of another container cluster configuration management method provided in an embodiment of the present invention
Figure, referring to fig. 4, step 100, specifically includes:
Step 100a, node control module receives the application container source information that management control center issues.
Step 100b, node control module obtains the container cluster configuration source information in memory module.
It should be noted that referring to fig. 2, management control center 10 is generating application container source information and sets of containers flock mating
After setting source information, a kind of possible implementation are as follows: application container source information is transmitted directly to a certain node or multiple
The node control module 110 of node;And container cluster configuration source information can be stored in the memory module into Fig. 2.Separately
Outside, the embodiment of the present invention not limits the sequence that step 100a and 100b is executed.
Optionally, when the configuration of application container needs to update, scheme based on the above embodiment, the embodiment of the present invention is mentioned
For a kind of possible implementation: i.e. by only updating container cluster configuration source information, to realize the configuration to application container
It updates, to avoid influencing application container source information, improves allocative efficiency.And container cluster configuration source is believed in order to obtain
A kind of possible implementation is given below in the update of breath: referring to fig. 2, node control module 110 carries out memory module 102
It monitors, updates source information to obtain the container cluster configuration that management control center 10 is stored in memory module 102.Specifically
, on the basis of fig. 4, Fig. 5 is the process signal of another container cluster configuration management method provided in an embodiment of the present invention
Figure, referring to Fig. 5, this method distance further include:
Step 104, node control module monitor memory module, when there are container cluster configurations to update source information
When, it obtains container cluster configuration and updates source information.
Container cluster configuration source information update is that container cluster configuration updates source by step 106, node control module
Information.
At this point, the node control module can update the tune that source information carries out service function according to container cluster configuration
It takes, with continued reference to Fig. 5, further includes:
Step 108, node control module obtain container cluster configuration and update source according to configuration mapping relations more new information
Configuration information in information, to call the corresponding service function of application container source information.
It should be noted that referring to fig. 2, for a node cluster 11, multiple respective node control modules 110 of node
It can receive application container source information based on the demand for services of user and obtain container cluster configuration source information, complete
The corresponding service function of application container source information.And then multiple node control modules 110 can also store mould by monitoring
Block 102, to be updated to container cluster configuration source information.To realize for application container clustering configuration with more
Newly, to improve the efficiency of service arrangement.
Further, it when the change of circumstances or system upgrade, can be carried out for the container cluster configuration source information
Migration/modification reduces the cost of implementation of transition or system upgrade without modifying to application container source information.
In addition, can be answered by checking the container cluster configuration source information after application container is normally disposed
With system for the information of dependence and subsequent O&M related work between configuration.And then improve maintenance efficiency.
Below for the process of above-described embodiment, provides a complete process implementation and be illustrated.Specifically, figure
6 be a kind of Signalling exchange schematic diagram of container cluster configuration management method provided in an embodiment of the present invention, referring to fig. 2 and Fig. 6, should
Method flow includes:
Step 200, user send demand for services message to operational management controller by API server.
Specifically, with a service call example, being carried out to the step in the embodiment of the present invention below based on K8s framework
Explanation.
When user needs to call service between database module and business module, firstly, user is according to demand to data
Library business is packaged, and realizes the topology information for data bank service with file or other modes, in step 200 basis
Demand sends demand for services message to operational management controller by API server.
Step 201, operational management controller generate application container source information and container cluster according to demand for services message
Configure source information.
Specifically, continuing using above-mentioned example as explanation, operational management controller is according to the message in step 201, respectively
Generate application container source information and container cluster configuration source information.Specifically, due to this example be related to database module with
It is called between business module, therefore is based on service logic, which includes the corresponding application of database module
Container source information and the corresponding application container source information of business module.
Optionally, a kind of sample of the corresponding application container source information of database module is as follows, and database module is corresponding
Application container source information, including but not limited to configuration file, carry volume etc..
It should be noted that having invoked SQL database and Cluster Database based on user demand in the sample
It (CLUSTER), therefore, include the corresponding account of SQL database and password in the source information;And Cluster Database is corresponding
Account and password.
Correspondingly, a kind of sample of the corresponding application container source information of business module is as follows, and database module is corresponding
Application container source information, business module corresponding application container source information, including but not limited to configuration file, carry
Volume etc..
It should be noted that having invoked SQL database and Cluster Database (CLUSTER) work in the sample with user demand
It then include the corresponding account of SQL database and password in source information for example;And the corresponding account of Cluster Database and close
Code.
Correspondingly, it is based on above-mentioned two sample, a kind of sample of container cluster configuration source information is as follows, includes but unlimited
In: configuration file, carry volume etc..
Specifically, being based on above-mentioned two application container source information, it is seen then that be updated to two application containers or rollback
When, corresponding account and password are necessary configuration information.Therefore, which is mainly used for unification
Safeguard above-mentioned account and password.And then in subsequent update or rollback, by modification container cluster configuration source information
Configuration information, Lai Tigao allocative efficiency.
Further, referring to the sample, the subclass of volume (Volume) is hung since account and password belong in K8s framework
Secret, therefore identify it in the type of sample and belong to Secret;And then since the service of corresponding application container is " data
Service is called between library module and business module ", therefore it is named as " mysqlsecret " in the metadata, then in specific data
The middle account for saving corresponding two databases and corresponding password.It actually establishes container cluster configuration source information and application is held
" configuration mapping relation information " between device source information.
Application container source information is issued to the node control of at least one node by step 202, operational management controller
Module.
Specifically, above-mentioned two application container source information is sent in node cluster extremely by the operational management controller
On the node control module of a few node.Fig. 6 is only using the node control module of a node as explanation.
Step 203, operational management controller store container cluster configuration source information into memory module.
It should be noted that the embodiment of the present invention for step 202 and step 203 sequencing without limitation.
Step 204, node control module monitor memory module, and the container cluster configuration obtained in memory module is blue
This information.
Step 205, node control module obtain in container cluster configuration source information according to configuration mapping relation information
Configuration information, to call the corresponding service function of application container source information.
Specifically, continuing with above-mentioned sample as an example, the node control module is getting said vesse cluster configuration
After source information, it can get and call the specific account of two databases and encrypted message, such as SQL database,
Account are as follows: SQL-USER001;Corresponding password are as follows: 123456;Cluster Database, account are as follows: CLUSTER-USER001;It is corresponding
Password are as follows: 654321;By obtaining this two-part account and password, two application container source information, Ji Keshi are recycled
It calls and services between existing database module and business module.
Step 206, operational management controller generate container cluster configuration and update source information.
Specifically, continuing with above-mentioned sample as an example, having modified the account of SQL database for example based on the configuration of user
Family and password, such as modified account are as follows: SQL-USER002;Corresponding password are as follows: 111111;Then container cluster configuration updates
The configuration information that source information includes is modified account and password.
Step 207, operational management controller store container cluster configuration update source information into memory module.Specifically
, which can store source information is updated comprising account and the container cluster configuration of password after modification to depositing
Store up module.
Step 208, node control module monitor memory module, and the container cluster configuration in acquisition memory module is more
New source information.
Specifically, the node control module is found by monitoring the subclass Secret for hanging volume in memory module
Wherein metadata corresponds to the account of SQL database and password in specific data and is changed, and then obtains in memory module
Container cluster configuration updates source information.
Container cluster configuration source information update is that container cluster configuration updates source by step 209, node control module
Information.
Specifically, at this time node control module by the account SQL-USER001 and password 123456 of original SQL database,
Modification are as follows: SQL-USER002 and 111111.
Step 210, node control module obtain container cluster configuration and update source according to configuration mapping relations more new information
Configuration information in information, to call the corresponding service function of application container source information.
Specifically, the node control module can pass through updated account during calling SQL database service
Corresponding application container source information, normal call SQL database service are serviced with password and calling SQL database.And it is right
It, can be according to original account and password and calling since its account and password do not update in Cluster Database
Cluster Database services corresponding application container source information, normal call Cluster Database service.
It should be noted that step 202 in Fig. 6,204,208, node control module needs to obtain by API server
Corresponding information, Fig. 6 are simplified on management control center side.
A kind of container cluster configuration managing device is given below, for executing in above-described embodiment and possible implementation
Each step, to realize above-mentioned corresponding technical effect.Specifically, Fig. 7 is a kind of sets of containers provided in an embodiment of the present invention
The structural schematic diagram of group configuration managing device.The container cluster configuration managing device 30 for realizing nodes multiple in Fig. 2 section
The function of point control module 110, the device 30 can realize its corresponding function by the software program on one or more nodes,
Or hardware or equipment with individual hardware circuitry.Referring to Fig. 7, which includes: to obtain module 300 and service
Calling module 301.
Module 300 is obtained, for obtaining application container source information and container cluster configuration source information.
Wherein, application container source information and container cluster configuration source information are generated by management control center, sets of containers
Group configuration source information includes configuration mapping relation information corresponding with application container source information;
Service calling module 301, for obtaining in container cluster configuration source information according to configuration mapping relation information
Configuration information, to call the corresponding service function of application container source information.
In conjunction with Fig. 2, management control center 10 is also stored with by container cluster configuration source information into memory module 102.
Correspondingly, the acquisition module 300 in Fig. 7, it is blue specifically for receiving the application container that management control center 10 issues
This information;Obtain the container cluster configuration source information in memory module 102.
Optionally, management control center 10 are also used to be updated container cluster configuration source information, generate sets of containers
Group configuration updates source information;It includes that configuration corresponding with application container source information is reflected that container cluster configuration, which updates source information,
Penetrate relationship more new information;Container cluster configuration update source information is stored into memory module 102.
With continued reference to Fig. 2 and Fig. 7, obtains module 300 and memory module 102 is monitored, when there are container cluster configurations
When updating source information, obtains container cluster configuration and update source information.
Service calling module 301, for being that container cluster configuration updates source by container cluster configuration source information update
Information.
Optionally, service calling module 301, for obtaining container cluster configuration according to configuration mapping relations more new information
The configuration information in source information is updated, to call the corresponding service function of application container source information.
It needs to come to an agreement, it is blue for generating/issuing application container source information and container cluster configuration in Fig. 2 embodiment
This information and update/the issue movement that container cluster configuration updates source information, it is a kind of possible to be achieved in that: the management
The function that control centre 10 also realizes generation, updates and issue comprising an operational management controller 103.Alternatively, can also
To execute above-mentioned function by other logic modules or entity device based on other system architectures.In order to realize in management control
Interaction between the heart 10 and node cluster 11, it is also desirable to necessary communication interface, such as the API server 101 in Fig. 2;Certainly,
Necessary communication interface can also be set, not limited herein based on other system architectures.
In addition, for the present embodiments relate to management control center, can be performed and one or more nodes
On.The node can be virtual machine or entity device.Accordingly storing module can be laid on same node, can also branch not
Belong on multiple nodes, not limits herein.
A kind of implementation of general node device is given below, which can be used as in above-described embodiment
Node in management control center or node cluster, to execute the correspondence function of management control center and node in above-described embodiment
Can, to realize corresponding technical effect.Fig. 8 is a kind of structural schematic diagram of node device provided in an embodiment of the present invention, should
Node device 40 includes: interface 400, processor 401, memory 402.
Wherein, the quantity of the processor 401 can be one or more, can lead to interface 400 and memory 402
Bus is crossed to be attached.If when using multiple bus, every bus can connect with multiple interfaces 400, multiple memories 402
It connects.And memory 402 can be the integrated of multiple storage units or only comprising a storage unit.In order to meet different lead to
Believe the communication need of agreement, which may include one or more interfaces, and can correspond to different communication protocol.
The corresponding function of management control center in above-described embodiment may be implemented in the processor 401;Or it may be implemented
State the corresponding function of node interior joint control module or container cluster configuration managing device.
Correspondingly, which may be implemented memory module in above-described embodiment;Alternatively, by as above-described embodiment
The storage medium of interior joint, for storing data relevant to node execution application container.
The memory 402, for storing data relevant to this programme.So that processor 401 is executing above-described embodiment
Step when, call, read-write relevant information.
The interface 400, reception and transmission for data.It can be based on actual network topology structure, from other sections
Point/module receives data, and technical solution based on the embodiment of the present invention, carries out the transmission of data.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including element.
These are only the preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art
For member, the invention may be variously modified and varied.All within the spirits and principles of the present invention, it is made it is any modification,
Equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter are under
Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing
It is further defined and explained.
Claims (8)
1. a kind of container cluster configuration management method characterized by comprising
Node control module obtains application container source information and container cluster configuration source information;The application container source letter
Breath and the container cluster configuration source information generated by management control center, the container cluster configuration source information include with
The corresponding configuration mapping relation information of the application container source information;
The node control module obtains in the container cluster configuration source information according to the configuration mapping relation information
Configuration information, to call the corresponding service function of the application container source information.
2. container cluster configuration management method according to claim 1, which is characterized in that the node control module obtains
Application container source information and container cluster configuration source information, comprising:
The node control module receives the application container source information that the management control center issues;
The node control module obtains the container cluster configuration source information in memory module.
3. container cluster configuration management method according to claim 2, which is characterized in that further include:
The node control module monitors the memory module, when updating source information there are container cluster configuration,
It obtains the container cluster configuration and updates source information;The container cluster configuration updates source information by management control
The heart generates;
The container cluster configuration source information update is that the container cluster configuration updates source by the node control module
Information.
4. container cluster configuration management method according to claim 3, which is characterized in that the node control module according to
The configuration mapping relation information obtains the configuration information in the container cluster configuration update source information, described in calling
The corresponding service function of application container source information, comprising:
The node control module obtains the container cluster configuration and updates source according to the configuration mapping relations more new information
Configuration information in information, to call the corresponding service function of the application container source information.
5. a kind of container cluster configuration managing device characterized by comprising obtain module and service calling module;
The acquisition module, for obtaining application container source information and container cluster configuration source information;The application container
Source information and the container cluster configuration source information are generated by management control center, the container cluster configuration source information
Include configuration mapping relation information corresponding with the application container source information;
The service calling module, for obtaining the container cluster configuration source letter according to the configuration mapping relation information
Configuration information in breath, to call the corresponding service function of the application container source information.
6. container cluster configuration managing device according to claim 5, which is characterized in that the acquisition module is specific to use
In the application container source information that the reception management control center issues;Obtain the container cluster configuration source in memory module
Information.
7. container cluster configuration managing device according to claim 6, which is characterized in that the acquisition module is also used to
The memory module is monitored, when updating source information there are container cluster configuration, obtains the container cluster configuration
Update source information;It is that the container cluster configuration updates source information by the container cluster configuration source information update;Institute
Container cluster configuration update source information is stated to be generated by the management control center.
8. container cluster configuration managing device according to claim 7, which is characterized in that the service calling module, tool
Body is used to obtain the container cluster configuration according to the configuration mapping relations more new information and update in source information and match confidence
Breath, to call the corresponding service function of the application container source information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811472900.0A CN109743192A (en) | 2018-12-04 | 2018-12-04 | A kind of container cluster configuration management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811472900.0A CN109743192A (en) | 2018-12-04 | 2018-12-04 | A kind of container cluster configuration management method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109743192A true CN109743192A (en) | 2019-05-10 |
Family
ID=66358482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811472900.0A Pending CN109743192A (en) | 2018-12-04 | 2018-12-04 | A kind of container cluster configuration management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109743192A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110752947A (en) * | 2019-10-18 | 2020-02-04 | 北京浪潮数据技术有限公司 | K8s cluster deployment method and device, and deployment platform |
CN111026422A (en) * | 2019-11-28 | 2020-04-17 | 浙江大华技术股份有限公司 | Container-based application data upgrading method and device and computer storage medium |
CN111625418A (en) * | 2020-05-12 | 2020-09-04 | 深圳前海微众银行股份有限公司 | Process monitoring method and device |
CN112099917A (en) * | 2020-09-08 | 2020-12-18 | 中国电力科学研究院有限公司 | Regulation and control system containerized application operation management method, system, equipment and medium |
CN113312148A (en) * | 2021-06-15 | 2021-08-27 | 深信服科技股份有限公司 | Big data service deployment method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170249374A1 (en) * | 2016-02-26 | 2017-08-31 | Red Hat, Inc. | Container clustering in a container-based architecture |
CN107465714A (en) * | 2017-01-23 | 2017-12-12 | 北京思特奇信息技术股份有限公司 | A kind of configuration data dynamic update system and method based on application cluster |
CN107506213A (en) * | 2017-08-30 | 2017-12-22 | 深圳市小牛在线互联网信息咨询有限公司 | Dynamic Configuration, device, storage medium and computer equipment |
CN107967159A (en) * | 2017-11-22 | 2018-04-27 | 腾讯科技(深圳)有限公司 | The method and server of a kind of profileapplied |
-
2018
- 2018-12-04 CN CN201811472900.0A patent/CN109743192A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170249374A1 (en) * | 2016-02-26 | 2017-08-31 | Red Hat, Inc. | Container clustering in a container-based architecture |
CN107465714A (en) * | 2017-01-23 | 2017-12-12 | 北京思特奇信息技术股份有限公司 | A kind of configuration data dynamic update system and method based on application cluster |
CN107506213A (en) * | 2017-08-30 | 2017-12-22 | 深圳市小牛在线互联网信息咨询有限公司 | Dynamic Configuration, device, storage medium and computer equipment |
CN107967159A (en) * | 2017-11-22 | 2018-04-27 | 腾讯科技(深圳)有限公司 | The method and server of a kind of profileapplied |
Non-Patent Citations (2)
Title |
---|
YIQINGUO: "Kubernetes 配置Pod和容器(十二)configmap的使用", 《HTTPS://WWW.JIANSHU.COM/P/571383DA7ADF》 * |
酥心糖: "Kubernetes Secret", 《HTTPS://BLOG.51CTO.COM/TRYINGSTUFF/2147789》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110752947A (en) * | 2019-10-18 | 2020-02-04 | 北京浪潮数据技术有限公司 | K8s cluster deployment method and device, and deployment platform |
CN110752947B (en) * | 2019-10-18 | 2022-11-18 | 北京浪潮数据技术有限公司 | K8s cluster deployment method and device, and deployment platform |
CN111026422A (en) * | 2019-11-28 | 2020-04-17 | 浙江大华技术股份有限公司 | Container-based application data upgrading method and device and computer storage medium |
CN111026422B (en) * | 2019-11-28 | 2022-08-09 | 浙江大华技术股份有限公司 | Container-based application data upgrading method and device and computer storage medium |
CN111625418A (en) * | 2020-05-12 | 2020-09-04 | 深圳前海微众银行股份有限公司 | Process monitoring method and device |
CN112099917A (en) * | 2020-09-08 | 2020-12-18 | 中国电力科学研究院有限公司 | Regulation and control system containerized application operation management method, system, equipment and medium |
CN112099917B (en) * | 2020-09-08 | 2022-02-11 | 中国电力科学研究院有限公司 | Regulation and control system containerized application operation management method, system, equipment and medium |
CN113312148A (en) * | 2021-06-15 | 2021-08-27 | 深信服科技股份有限公司 | Big data service deployment method, device, equipment and medium |
CN113312148B (en) * | 2021-06-15 | 2023-03-21 | 深信服科技股份有限公司 | Big data service deployment method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109743192A (en) | A kind of container cluster configuration management method and device | |
CN110738454B (en) | Enterprise management platform system | |
US8606897B2 (en) | Systems and methods for exporting usage history data as input to a management platform of a target cloud-based network | |
CA2969755C (en) | Type-to-type analysis for cloud computing technical components | |
CN111274001B (en) | Micro-service management platform | |
CN105809356A (en) | Information system resource management method based on application integrated cloud platform | |
US20180234352A1 (en) | System and method for cloud connection pool | |
CN114666333B (en) | Control method for cloud computing resource scheduling problem based on multi-tenant theory | |
WO2022143653A1 (en) | Multi-cloud interface adaptation method and system based on micro-service, and storage medium | |
CN111651738B (en) | Fine-grained role authority unified management method based on front-end and back-end separation architecture and electronic device | |
CN105610946A (en) | Docker technology based cloud jump server system | |
CN115695139A (en) | Method for enhancing micro-service system architecture based on distributed robust | |
CN115129423A (en) | Resource management method, device, equipment and storage medium | |
WO2022083293A1 (en) | Managing task flow in edge computing environment | |
CN106354507A (en) | Enterprise-level application management system and method for operating same | |
CN109218378B (en) | Design method of small logistics management platform based on cloud platform | |
US11645109B2 (en) | Managing failures in edge computing environments | |
JP2024501005A (en) | Management method and device for container clusters | |
CN112039985A (en) | Heterogeneous cloud management method and system | |
WO2022206242A1 (en) | Multi-tenant operation and maintenance management method, apparatus and system | |
CN109032785A (en) | A kind of workflow management-control method and system based on virtual desktop | |
CN114070889A (en) | Configuration method, traffic forwarding method, device, storage medium, and program product | |
CN114866416A (en) | Multi-cluster unified management system and deployment method | |
CN111191256B (en) | Method and device for configuring user permission | |
US20200293386A1 (en) | Messaging abstraction layer for integration with message oriented middleware platforms |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190510 |