CN114006815B - Automatic deployment method and device for cloud platform nodes, nodes and storage medium - Google Patents

Automatic deployment method and device for cloud platform nodes, nodes and storage medium Download PDF

Info

Publication number
CN114006815B
CN114006815B CN202010671472.5A CN202010671472A CN114006815B CN 114006815 B CN114006815 B CN 114006815B CN 202010671472 A CN202010671472 A CN 202010671472A CN 114006815 B CN114006815 B CN 114006815B
Authority
CN
China
Prior art keywords
node
information
deployed
deployment
imported
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
Application number
CN202010671472.5A
Other languages
Chinese (zh)
Other versions
CN114006815A (en
Inventor
陈国全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010671472.5A priority Critical patent/CN114006815B/en
Publication of CN114006815A publication Critical patent/CN114006815A/en
Application granted granted Critical
Publication of CN114006815B publication Critical patent/CN114006815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention provides an automatic deployment method, device, node and storage medium of cloud platform nodes, which can improve the deployment efficiency of cloud platform clusters, and the method comprises the following steps: when a node is deployed on a cloud platform, acquiring at least one node information to be deployed from a node storage pool; automatically generating network configuration information corresponding to at least one node to be deployed according to the information of the at least one node to be deployed through cluster deployment service; and deploying the at least one node to be deployed to the cloud platform according to the network configuration information corresponding to the at least one node to be deployed.

Description

Automatic deployment method and device for cloud platform nodes, nodes and storage medium
Technical Field
The present invention relates to cloud computing technologies, and in particular, to an automated deployment method and apparatus for cloud platform nodes, and storage media.
Background
At present, when a node cluster is deployed to a cloud platform, the existing deployment method is not fully automated, for example, a Kubeadm deployment mode requires a user to manually perform related service starting parameters and network environment configuration, and manually log in each node to complete cluster deployment; the Kubespray deployment mode has higher dependence on network environment, and the deployment can be successfully completed only by pulling the mirror image required by cluster deployment from the external network in the deployment process; the Breeze deployment mode is imported as a single point node each time, and nodes without deployment conditions can be imported when the nodes are imported. Therefore, the existing cluster deployment method is low in automation degree and batch degree and is high in dependence on a network environment, so that the cloud platform cluster deployment efficiency is reduced.
Disclosure of Invention
The invention provides an automatic deployment method and device for cloud platform nodes, the nodes and a storage medium, and the efficiency of cloud platform cluster deployment can be improved.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an automated deployment method of a cloud platform node, applied to a node connected to a cloud platform, including:
when a node is deployed on a cloud platform, acquiring at least one node information to be deployed from a node storage pool;
automatically generating network configuration information corresponding to the at least one node to be deployed according to the information of the at least one node to be deployed through cluster deployment service;
and deploying the at least one node to be deployed to a cloud platform according to the network configuration information corresponding to the at least one node to be deployed.
In the above solution, before the obtaining the at least one node information to be deployed from the node storage pool, the method further includes:
acquiring at least one node information to be imported from an external form through the node management service; the at least one node to be imported information comprises address information, account information and node deployment type information of at least one node to be imported; the external form is received by the node from the outside, and the at least one form to be imported node information is stored in a preset format;
The node information to be imported and the corresponding at least one node to be imported are subjected to validity check and network deployment environment check through the cluster deployment service and the node management service, and hardware configuration information of the node to be imported which passes the validity check and the network deployment environment check is obtained;
and forming the hardware configuration information of the node to be imported and the corresponding node information to be imported, which pass through the validity check and the network deployment environment check, into node information to be deployed, and importing the node information to the node storage pool.
In the above solution, the performing, by using the cluster deployment service and the node management service, validity check and network deployment environment check on the at least one node to be imported and the at least one corresponding node to be imported, and obtaining hardware configuration information of the node to be imported that passes the validity check and the network deployment environment check includes:
invoking the cluster deployment service, and analyzing and legality checking the information of the at least one node to be imported to obtain a legality checking result; the validity check result represents whether account information and node deployment type information of each node information in the at least one node information are legal or not;
The node information to be imported, which is passed by the validity check result, is used as at least one legal node information;
calling a login module in the node management service to log in at least one legal node corresponding to the at least one legal node information;
performing network deployment environment inspection on each legal node in the at least one legal node to obtain a network deployment environment inspection result;
taking the legal node which passes the network deployment environment inspection result as a deployable node;
and acquiring the hardware configuration information of each deployable node through the node management service, and taking the hardware configuration information of the node to be imported, which passes the validity check and the network deployment environment check.
In the above solution, the invoking the cluster deployment service performs network deployment environment inspection on each legal node in the at least one legal node to obtain a network deployment environment inspection result, including:
checking whether the system time of each legal node is consistent with the cloud platform or not, and obtaining a first checking result;
checking whether the operating system version of each legal node meets preset conditions or not to obtain a second checking result;
Checking whether the network configuration parameters of each legal node meet preset network configuration conditions or not to obtain a third checking result;
checking whether the hardware information of each legal node meets the preset deployment requirement or not, and obtaining a fourth checking result;
and when the first, second, third and fourth inspection results are all passed, determining that the network deployment environment inspection result is passed.
In the above solution, the deploying, according to the network configuration information corresponding to the at least one node, the at least one node to be deployed to the cloud platform includes:
calling a source information management service through the cluster deployment service, and providing source information of corresponding network configuration information for the at least one node to be deployed so that each node to be deployed in the at least one node to be deployed completes deployment preparation through the source information corresponding to the configuration information of the configuration network;
and deploying at least one node to be deployed which completes deployment preparation into the cloud platform through the cluster deployment service.
In the above scheme, the node management service, the cluster deployment service and the source information management service operate in the same container.
In the above solution, after the invoking the cluster deployment service performs parsing and validity checking on the at least one node information to be imported, the method further includes:
and if the cluster deployment service call fails, ending the execution of the importing of the information of the at least one node to be imported, and returning call failure information.
In the above solution, the invoking the cluster deployment service analyzes and legally checks the information of the at least one node to be imported, and after obtaining a result of the legality check, the method further includes:
and for one piece of the at least one piece of node information to be imported, ending the processing of the node information to be imported when the validity check result of the node information to be imported is not passed, and returning the prompt information that the node information to be imported is not legal.
In the above solution, after the login module in the node management service is invoked and the login module logs in at least one legal node corresponding to the at least one legal node information, the method further includes
And for one legal node in the at least one legal node, when the login module is called and login to the legal node fails, ending the processing of the legal node information and returning prompt information that the legal node information cannot be logged in.
In the above solution, after performing the network deployment environment inspection on each legal node in the at least one legal node to obtain the network deployment environment inspection result, the method further includes:
and for one legal node in the at least one legal node, when the network deployment environment inspection result of the legal node is failed, ending the processing of the legal node, and returning prompt information of failure in the legal node environment inspection.
In the above solution, after the obtaining, by the node management service, the hardware configuration information of each deployable node, the method further includes:
and for each deployable node, when the hardware configuration information of one deployable node fails to acquire, ending the processing of the deployable node, and returning the prompt information of the hardware configuration information of the deployable node.
In the above solution, each node information to be deployed in the at least one node information to be deployed further includes cluster identification information, and after the at least one node to be deployed is deployed to the cloud platform according to the network configuration information corresponding to the at least one node to be deployed, the method further includes:
And correspondingly writing cluster identification information generated by the cloud platform for each node to be deployed in the at least one node to be deployed into the information of each node to be deployed.
In a second aspect, an embodiment of the present invention provides a deployment apparatus for a cloud platform node, which is applied to a node connected to a cloud platform, where the deployment apparatus for a cloud platform node includes an acquisition unit, a generation unit, and a deployment unit,
the acquiring unit is used for acquiring at least one node information to be deployed from a node storage pool when the nodes are deployed on the cloud platform;
the generating unit is used for automatically generating network configuration information corresponding to the at least one node to be deployed according to the at least one node to be deployed through cluster deployment service;
the deployment unit is configured to deploy the at least one node to be deployed to a cloud platform according to network configuration information corresponding to the at least one node to be deployed.
In a third aspect, an embodiment of the present invention provides a node, the node including: the cloud platform node deployment system comprises a processor, a memory and a communication bus, wherein the memory is communicated with the processor through the communication bus, the memory stores one or more programs executable by the processor, and the processor executes the cloud platform node automatic deployment method according to any one of the above when the one or more programs are executed.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where one or more programs are stored, where the one or more programs are executable by one or more processors, and when the programs are executed by the processors, the method for automatically deploying cloud platform nodes according to any one of the foregoing embodiments is implemented.
The invention provides an automatic deployment method, device, node and storage medium of cloud platform nodes, wherein the method comprises the following steps: when a node is deployed on a cloud platform, acquiring at least one node information to be deployed from a node storage pool; automatically generating network configuration information corresponding to at least one node to be deployed according to the information of the at least one node to be deployed through cluster deployment service; and deploying the at least one node to be deployed to the cloud platform according to the network configuration information corresponding to the at least one node to be deployed. By adopting the scheme, the nodes which finish deployment preparation can be stored and maintained through the node storage pool, so that the nodes which are deployed into the cloud platform through the node storage pool are all nodes which are subjected to deployment preparation and meet the deployment requirement of the network environment, the success rate of cluster deployment is improved, the problem that the whole cluster needs to be deployed again due to the fact that individual nodes in the cluster nodes are not subjected to deployment preparation is avoided, network configuration information corresponding to at least one node to be deployed can be automatically generated through at least one node to be deployed, and finally the deployment efficiency of the cloud platform cluster is improved.
Drawings
Fig. 1 is a schematic diagram of a cloud platform node cluster structure according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a node deployment system of a cloud platform according to an embodiment of the present invention;
fig. 3 is an optional flowchart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 4 is a second alternative flow chart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data structure of node information to be deployed in a node storage pool according to an embodiment of the present invention;
fig. 6 is an optional flowchart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of an alternative method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 8 is a fifth alternative flowchart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 9 is a sixth flowchart of an alternative method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 10 is an optional flowchart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
Fig. 11 is an optional flowchart eighth of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 12 is a flowchart of an alternative method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 13 is an optional flowchart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 14 is an eleventh alternative flowchart of a method for automatically deploying nodes of a cloud platform according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of a node automation deployment device of a cloud platform according to an embodiment of the present invention;
fig. 16 is a schematic structural diagram of a node according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Before describing embodiments of the present invention in further detail, the terms and terminology involved in the embodiments of the present invention will be described, and the terms and terminology involved in the embodiments of the present invention will be used in the following explanation.
1) Kubernetes, cloud computing domain container application deployment, management and scheduling platform.
2) and an ansable automatic operation tool provides functions such as batch system configuration, batch program deployment, batch operation commands and the like.
3) The method comprises the steps that a configuration file is distributed in a control center through an anstable automatic operation and maintenance tool according to node roles configured by users, and a K8s cluster is deployed in a mirror image-dependent mode by a public network.
4) Dock, dock is an open-source application container engine that packages application objects and relies on packages into a portable image and then publishes to nodes of the cloud platform for use.
5) The harbor is a mirror image for storing the Docker and is used as a mirror image warehouse. The harbor is an enterprise-level Registry server for storing and distributing Docker images.
The invention provides a node automatic deployment method of a cloud platform, which is based on a cloud platform network architecture shown in figure 1. Fig. 1 is a diagram of a Kubernetes type cloud platform network architecture according to an embodiment of the present invention, including a management node 100 and at least one working node 200_1 … … 200_n under the management node 100. The management node 100 is used as a control node to schedule and manage a cluster formed by at least one working node 200_1 … … 200_n on a cloud platform, the management node 100 is composed of API Server, scheduler, controller and Etcd services, wherein the API Server is used as a unique entry for performing operations such as adding, deleting, modifying, searching and the like on all resources in a Kubernetes system, and is used for receiving and processing resource use requests submitted by users, storing data related to the resource requests to the Etcd for maintenance, and providing mechanisms such as authentication, authorization, access control, API registration, discovery and the like; etcd is used for storing the running states of various resource objects in the whole cluster in a lasting mode through an instance form; the Controller is responsible for maintaining the state of the cluster, such as fault detection, automatic expansion, rolling update and the like; the Scheduler is responsible for scheduling the resources, and the Pod is scheduled to the corresponding machine according to a preset scheduling policy. At least one working node 200_1 … … 200_n is used as a working load node, is managed by the management node 100, is used for receiving and running the working load in the form of a Docker container distributed by the management node 100, is responsible for monitoring and reporting the state of the container, and manages the life cycle of the container according to the requirement of the management node 100. At least one working node 200_1 … … 200_n can be a physical machine or a virtual machine, and consists of Kubelet, proxy, fluentd and a Docker, wherein Kubelet is responsible for tasks such as creation, start-stop and the like of a container, and meanwhile, the Kubelet is closely cooperated with the management node 100 to realize the basic function of cluster management; proxy is responsible for implementing communication and load balancing with services on Kubernetes; fluentd is responsible for log collection; dock is used to provide container creation and management work on the present work node.
Based on the cloud platform network architecture diagram shown in fig. 1, the embodiment of the invention provides a node deployment system of a cloud platform, which corresponds to a node automation deployment method of a cloud platform, as shown in fig. 2, any node 10 connected with the cloud platform may be operated with the node deployment system 10_2 of the cloud platform provided by the embodiment of the invention, where the node deployment system 10_2 of the cloud platform includes a node management service 500, a node storage pool 600, a cluster deployment service 700, a source information management service 800 and an application interface (API) 900. The node management service 500 is configured to store at least one node to be deployed information according to a predetermined format, and manage host information of the at least one node to be deployed in a storage pool, so that a user can select when deploying the node information. For example, when a user has a service requirement to deploy a set of Kubernetes clusters, the user may operate on the user interface 10_1 of the node 10, call the node management service 500 through the application interface 900 to select node information to be deployed in the node storage pool 600, where the node information to be deployed meets the cluster deployment, and rapidly deploy a set of available clusters. Cluster deployment service 700 is used to provide API interfaces for various functional deployments. Such as cluster deployment, deletion, warehouse deployment, diary cluster construction, etc. When a user selects proper node information to be deployed, the cluster deployment service automatically generates network configuration information meeting the cloud platform deployment requirements for each node to be deployed, and finally, role service in the cluster deployment service is invoked to deploy the clusters. In some embodiments, the cluster deployment service may be an anstable architecture deployment service and the role service may be an anstable role. The source information management service 800 is configured to provide source information for at least one node to be deployed under the intranet condition, when the cluster node on the cloud platform needs to pull the mirror image in the deployment process, the source information management service 800 may provide a dependency package of a module such as Docker, harbor, kubernetes for the at least one node to be deployed, so that the at least one node to be deployed may use the dependency package provided by the source information management service 800 to perform configuration of a deployment setting item and installation of a network component, and finally deploy the at least one node to be deployed to the cloud platform through the cluster deployment service 700.
Based on the node deployment system architecture diagram of the cloud platform shown in fig. 2, the embodiment of the invention provides a node automation deployment method of the cloud platform, as shown in fig. 3, comprising S101-S103, as follows:
s101, when nodes are deployed on a cloud platform, at least one node information to be deployed is obtained from a node storage pool.
The node automation deployment method of the cloud platform is suitable for a scene of node cluster deployment based on a Kubespray project on a Kubernetes cloud platform. The node automatic deployment method of the cloud platform provided by the embodiment of the invention can be applied to any type of node connected with the cloud platform.
In the embodiment of the invention, when the nodes are required to be deployed on the cloud platform, particularly the node clusters of a plurality of nodes are required to be deployed, at least one node information to be deployed can be acquired from the node storage pool.
In the embodiment of the invention, the at least one node to be deployed information is the local configuration information of the node for which the deployment preparation is completed through the node management service.
In the embodiment of the invention, before the node is deployed on the cloud platform, the health check is needed to be performed on the node environment to determine whether the node has deployment conditions or not, so that the deployment failure is avoided. Here, the node management service may perform deployment preparation on at least one node in advance before the at least one node is imported into the node storage pool, and exemplary, check validity, network configuration and hardware conditions of the node to confirm whether the at least one node has basic hardware conditions and network conditions for deployment to the cloud platform, and use node information of the at least one node having deployment conditions as at least one node to be deployed information, and maintain the node information in the node storage pool for selection by a user.
In the embodiment of the present invention, the node storage pool is a database storing at least one node information to be deployed, and in some embodiments, the node storage pool may be in the form of an SQL database, or may be in other storage forms, which is not limited by the embodiment of the present invention.
S102, automatically generating network configuration information corresponding to at least one node to be deployed according to the information of the at least one node to be deployed through cluster deployment service.
In the embodiment of the invention, after the at least one node to be deployed information is acquired from the node storage pool, the node automation deployment device of the cloud platform can automatically generate the network configuration information corresponding to the at least one node to be deployed through the cluster deployment service according to the at least one node to be deployed information.
In the embodiment of the invention, at least one node to be deployed information corresponds to at least one node to be deployed one by one, and the node automation deployment device of the cloud platform correspondingly generates network configuration information corresponding to each node to be deployed information according to the at least one node to be deployed information. The network configuration information corresponding to the information of each node to be deployed is configuration parameters to be set and service components to be configured and installed when each node to be deployed is deployed to the cloud platform.
In the embodiment of the invention, the node automation deployment device of the cloud platform can automatically generate the network configuration information corresponding to at least one node to be deployed through the cluster deployment service without manually configuring the service starting parameters or deploying the network service plug-ins.
In some embodiments, the node automation deployment device of the cloud platform may automatically generate network configuration information corresponding to at least one node to be deployed through an available automation operation and maintenance tool.
S103, deploying at least one node to be deployed to the cloud platform according to network configuration information corresponding to the at least one node to be deployed.
In the embodiment of the invention, the network configuration information corresponding to the at least one node to be deployed comprises network configuration and service components to be installed when the at least one node to be deployed is deployed to the cloud platform, so that after the network configuration information corresponding to the at least one node to be deployed is generated, the node automation deployment device of the cloud platform can set the corresponding configuration item and install the service components for the at least one node to be deployed according to the network configuration information corresponding to the at least one node to be deployed, and deploy the at least one node to be deployed to the cloud platform.
It can be understood that in the embodiment of the invention, the nodes for which the deployment preparation is completed can be stored and maintained through the node storage pool, so that the nodes for which the cloud platform is deployed through the node storage pool are all nodes which are subjected to the deployment preparation and meet the deployment requirement of the network environment, the success rate of cluster deployment is improved, the problem that the whole cluster needs to be redeployed due to the fact that the deployment preparation is not performed on individual nodes in the cluster nodes is avoided, and the network configuration information corresponding to at least one node to be deployed can be automatically generated through the information of at least one node to be deployed, and finally the efficiency of the cluster deployment of the cloud platform is improved.
In the embodiment of the present invention, based on fig. 3, before S101, S201 to S203 may be further included as shown in fig. 4, as follows:
s201, acquiring at least one node information to be imported from an external form through a node management service; the at least one node to be imported information comprises address information, account information and node deployment type information of the at least one node to be imported; the external form is received by the node from the outside, and at least one form to be imported with the node information is stored in a preset format.
In the embodiment of the invention, before the at least one node information to be deployed is acquired from the node storage pool, the node automatic deployment device of the cloud platform can establish the node storage pool first. Firstly, the node automation deployment device of the cloud platform acquires at least one node information to be imported from an external form through a node management service.
In the embodiment of the invention, the external form can be a node information form which is established by a user and stored according to a preset format and needs to be imported into a node storage pool, the external form comprises at least one node information to be imported, and the at least one node information to be imported comprises address information, account information and node deployment type information of the at least one node to be imported. The address information may be an IP address of the node to be imported, the account information includes account information and corresponding password information of the node to be imported, and the node deployment type information includes role information of the node in the cloud platform network structure, which may be, for example, a management node, a working node, a warehouse node, a log node, and the like.
In the embodiment of the invention, after the external form is imported by the user at the front end, the node automation deployment device of the cloud platform can analyze the external form to acquire at least one node information to be imported.
In some embodiments, the external form may be an excel form, or may be another form, which is not limited by the embodiments of the present invention.
It can be understood that in the embodiment of the invention, the external form can be formed through simple form editing operation, so that batch processing of at least one node to be imported is realized, and a complex interface configuration module is not required to be operated, thereby improving the node deployment efficiency of the cloud platform.
S202, performing validity check and network deployment environment check on at least one node to be imported and at least one corresponding node to be imported through cluster deployment service and node management service, and acquiring hardware configuration information of the node to be imported passing the validity check and the network deployment environment check.
In the embodiment of the invention, after at least one node to be imported information is obtained, the at least one node to be imported information and the corresponding at least one node to be imported are subjected to validity check and network deployment environment check through the cluster deployment service and the node management service, and the hardware configuration information of the node to be imported passing the validity check and the network deployment environment check is obtained.
S203, the hardware configuration information of the node to be imported and the corresponding node information to be imported, which are checked by the validity check and the network deployment environment, form the node information to be deployed, and the node information to be deployed is imported into a node storage pool.
In the embodiment of the invention, the node automation deployment device of the cloud platform takes the hardware configuration information of each deployable node and the node information to be imported corresponding to each deployable node as the node information to be deployed, and imports the node information to the node storage pool.
In the embodiment of the present invention, the data structure of the node information to be deployed may be shown in fig. 5, and in fig. 5, the node information to be deployed may include a string type ip, role, hard, memory, cpu and a uid field. The ip field is used for storing a unique identifier of a node, the role field is a node deployment type, and the deployment type used for storing the node can be master, slave, harbor, es and the like, wherein a master represents a cluster management node, a slave represents a service node, a harbor represents a warehouse and an es represents a log node. hard, memory and cpu are hardware configuration information, wherein hard is used for storing the size of a node hard disk, memory represents the size of the node storage disk, cpu represents the configuration information of the node cpu, and uid is cluster identification information used for representing the node cluster to which the node belongs.
In the embodiment of the present invention, based on fig. 4, S202 may specifically be as shown in fig. 6, including S2021 to S2026, as follows:
s2021, calling cluster deployment service, analyzing and legality checking at least one node information to be imported to obtain a legality checking result; the legitimacy check result characterizes whether account information and node deployment type information of each node information in the at least one node information are legal or not.
In the embodiment of the invention, after at least one node information to be imported is acquired, the node automation deployment device of the cloud platform can call the cluster deployment service to analyze and legally check the at least one node information to be imported, and the node information to be imported which passes the legality check is taken as at least one legal node information.
In the embodiment of the invention, the legitimacy check result represents whether account information and node deployment type information of each node information in at least one node information are legal or not; the node automation deployment device of the cloud platform can call a service interface of an authentication function provided by the cluster deployment service, analyze and legally check at least one node information to be imported, identify the at least one node information to be imported, check whether an account number, a password and node deployment type information in the at least one node information to be imported can pass the authentication, and if the account number, the password and the node deployment type information can pass the authentication, the result of the legality check of the node can be confirmed to pass the authentication.
S2022, taking the node information to be imported, which is passed by the validity check result, as at least one legal node information.
In the embodiment of the invention, the node automation deployment device of the cloud platform takes the node information to be imported which passes the validity check as at least one legal node information.
S2023, calling a login module in the node management service, and logging in at least one legal node corresponding to the at least one legal node information.
In the embodiment of the invention, after at least one legal node information is determined, the node automation deployment device of the cloud platform calls a login module in the node management service to log in at least one legal node corresponding to the at least one legal node information.
It should be noted that at least one legal node may be a physical machine node or a virtual machine node.
S2024, performing network deployment environment inspection on each legal node in the at least one legal node to obtain a network deployment environment inspection result.
In the embodiment of the invention, after logging in each legal node in at least one legal node, the node automation deployment device of the cloud platform performs network deployment environment inspection on each legal node in at least one legal node, and the inspection content can include whether the legal node time is set correctly, whether the operating system version of the legal node meets the requirement of a cluster, whether the legal network configuration is correct, whether the legal node hardware condition meets the minimum deployment requirement, and the like, so that a network deployment environment inspection result can be obtained after the network deployment environment inspection is completed, wherein the network deployment environment inspection result represents whether the corresponding legal node has the network deployment condition.
S2025, taking the legal node which is passed by the network deployment environment inspection result as a deployable node.
In the embodiment of the invention, after the node automatic deployment device of the cloud platform performs network deployment environment inspection on each legal node, the legal node with the network deployment environment inspection result passing is used as the deployable node, so that the node without the network deployment condition is prevented from being introduced into the node storage pool.
S2026, acquiring the hardware configuration information of each deployable node through the node management service, and taking the hardware configuration information of the node to be imported through the validity check and the network deployment environment check.
In the embodiment of the invention, after the deployable nodes are determined, the node automation deployment device of the cloud platform acquires the hard disk capacity, the memory capacity and the CPU frequency parameter of each deployable node as the hardware configuration information of each deployable node.
In the embodiment of the invention, the node automation deployment device of the cloud platform takes the obtained hardware configuration information of each deployable node as the hardware configuration information of the node to be imported, which passes through the validity check and the network deployment environment check.
It can be understood that in the embodiment of the invention, through checking the validity of the nodes and the deployment environment, the node automatic deployment device of the cloud platform can screen the node to be imported from the at least one node to be imported information to import the node storage pool with the importing condition, thereby avoiding the deployment failure caused by the illegal or non-network deployment condition of the nodes when the nodes are imported from the node storage pool, improving the success rate of cluster deployment, and further improving the efficiency of cluster deployment.
In the embodiment of the present invention, based on fig. 6, after logging in at least one legal node, the node automation deployment device of the cloud platform performs network deployment environment inspection on each legal node in the at least one legal node to obtain a network deployment environment inspection result, which may specifically be as shown in fig. 7, including S301-S305, as follows:
s301, checking whether the system time of each legal node is consistent with the cloud platform, and obtaining a first checking result.
In the embodiment of the invention, the node automatic deployment device of the cloud platform needs to check whether the system time of each legal node is consistent with the time in the existing cluster on the cloud platform, so that the problem of asynchronous clocks is avoided.
In the embodiment of the invention, when the system time of the legal node is consistent with the cloud platform, the first check result of the legal node is confirmed to pass, otherwise, the first check result of the legal node is confirmed to not pass.
S302, checking whether the operating system version of each legal node meets the preset condition or not, and obtaining a second checking result.
In the embodiment of the invention, the node automation deployment device of the cloud platform needs to check whether the operating system version of each legal node meets the preset condition. For example, it may be checked whether the operating system version of each legitimate node is an available operating system version required by the current cloud platform.
In the embodiment of the invention, when the operating system version of the legal node accords with the preset condition, the second checking result of the legal node is confirmed to pass, otherwise, the second checking result of the legal node is confirmed to not pass.
S303, checking whether the network configuration parameters of each legal node meet preset network configuration conditions or not, and obtaining a third checking result.
In the embodiment of the invention, the node automation deployment device of the cloud platform needs to check whether the network configuration parameters of each legal node meet the preset network configuration conditions on the cloud platform, and exemplarily, check whether the swap function is closed and check whether the network kernel parameters of the legal nodes meet the requirement of deployment to the cloud platform.
In the embodiment of the invention, when the network configuration parameters of the legal node meet the preset network configuration conditions, the third checking result of the legal node is confirmed to be passed, otherwise, the third checking result of the legal node is confirmed to be failed.
S304, checking whether the hardware information of each legal node meets the preset deployment requirement.
In the embodiment of the invention, the node automation deployment device of the cloud platform needs to check whether the hardware information of each legal node meets the preset deployment requirement, and whether the CPU, the memory, the hard disk and the like meet the preset deployment requirement and meet the requirement of the cloud platform on node hardware configuration is exemplified.
In the embodiment of the invention, when the hardware information of the legal node meets the preset deployment requirement, the fourth checking result of the legal node is confirmed to pass, otherwise, the fourth checking result of the legal node is confirmed to not pass.
And S305, when the first checking result, the second checking result, the third checking result and the fourth checking result are all passing, determining that the network deployment environment checking result is passing.
In the embodiment of the invention, when the first inspection result, the second inspection result, the third inspection result and the fourth inspection result are all passed, the network deployment environment inspection result is determined to be passed, otherwise, the network deployment environment inspection result is determined to be not passed.
It can be understood that in the embodiment of the invention, the node automation deployment device of the cloud platform performs health check on the node environment of at least one legal node before the at least one legal node is placed in the node storage pool, so that the success rate of cluster deployment is improved, and the efficiency of cluster deployment is further improved.
In the embodiment of the present invention, the ip field and the role field may be obtained from the node information to be imported corresponding to each deployable node, the hard field, the memory field, and the cpu field may be obtained from the hardware configuration information of each deployable node, and after S103, the cluster identification information may be written through S104 shown in fig. 8 to obtain the cluster identification information when needed, as follows:
S104, correspondingly writing cluster identification information generated by the cloud platform for each node to be deployed in at least one node to be deployed into the information of each node to be deployed.
In the embodiment of the invention, after at least one node to be deployed is deployed to a cloud platform, a node automation deployment device of the cloud platform invokes a node management service, and cluster identification information generated by the cloud platform for each node to be deployed in the at least one node to be deployed is correspondingly written into each node to be deployed information so as to identify the node which is already imported to the cloud platform in a node storage pool and correspondingly inquire a cloud platform cluster to which the node belongs.
It can be understood that in the embodiment of the invention, the nodes which finish the deployment preparation can be stored and maintained through the node storage pool, so that the nodes which are deployed into the cloud platform through the node storage pool are all nodes which are subjected to the deployment preparation and meet the deployment requirement of the network environment, the success rate of cluster deployment is improved, and the problem that the whole cluster needs to be deployed again due to the fact that individual nodes in the cluster nodes are not subjected to the deployment preparation is avoided, thereby improving the deployment efficiency of the cloud platform cluster.
In the embodiment of the present invention, based on the method described in any one of fig. 3, fig. 4, fig. 6, or fig. 7, S103 may be as shown in fig. 9, including S1031-S1032, as follows:
S1031, calling a source information management service through a cluster deployment service, and providing source information of corresponding network configuration information for at least one node to be deployed, so that each node to be deployed in the at least one node to be deployed completes deployment preparation through the source information corresponding to the configuration information of the configuration network.
In the embodiment of the invention, the source information management service can provide the source information of the network configuration information corresponding to at least one node to be deployed, and the installation package, the dependent package and the like of the service component in the network configuration information are exemplified, so that each node to be deployed can complete deployment configuration preparation by utilizing the resources provided by the source information management service according to the corresponding network configuration information.
S1032, deploying at least one node to be deployed which completes deployment preparation into the cloud platform through the cluster deployment service.
In the embodiment of the invention, the nodes of the cloud platform are added into the cloud platform in a batched manner by using the device to deploy the service through the cluster, and the deployment of the at least one node to be deployed in the cloud platform is completed.
In the embodiment of the invention, the node management service, the cluster deployment service and the source information management service operate in the same container.
It can be understood that in the embodiment of the invention, the node management service, the cluster deployment service and the source information management service operate in the same container, so that the problems of packet dependence, mirror image pulling from an external network environment and the like in the deployment process are solved, the convenience of cluster deployment is improved, and the efficiency of cluster deployment is improved.
In the embodiment of the present invention, based on fig. 6, after the cluster deployment service is invoked in S2021 and the analysis and the validity check are performed on the information of at least one node to be imported, as shown in fig. 10, the method further includes S204, as follows:
s204, if the cluster deployment service call fails, finishing the execution of the import of the information of at least one node to be imported, and returning call failure information.
In the embodiment of the invention, when analyzing and legality checking is performed on at least one node information to be imported, if the cluster deployment service is failed to be invoked, further legality checking cannot be performed on the at least one node information to be imported through the cluster deployment service, so that the node automation deployment device of the cloud platform finishes executing the importing process of the at least one node information to be imported and returns corresponding prompt information of the invoking failure.
In the embodiment of the present invention, after the cluster deployment service is invoked in S2021 and the analysis and the validity check are performed on the information of at least one node to be imported, as shown in fig. 11, S205 may be included, as follows:
S205, for one piece of node information to be imported in at least one piece of node information to be imported, when the result of validity check of the node information to be imported is that the node information to be imported does not pass, processing of the node information to be imported is finished, and prompt information that the node information to be imported is illegal is returned.
In the embodiment of the invention, when the information of the importing point cannot pass the validity check, the account information or the deployment type information of the node to be imported is illegal, and the information cannot pass the identity verification of the cloud platform, so that the processing of the information of the node to be imported is finished, and the prompt information of the illegal information of the node to be imported is returned.
In the embodiment of the invention, when the validity check is performed on at least one piece of node information to be imported in batches, if one piece of node information to be imported cannot pass the validity check, execution of the rest node information to be imported in the at least one piece of node information to be imported can be stopped, a failure prompt can be returned directly, or after processing of the node information to be imported is finished, the next node information to be imported of the node information to be imported is continued until all the node information to be imported is processed.
In the embodiment of the present invention, based on the login module in the node management service called in fig. 11 and S2023, after logging in at least one legal node corresponding to at least one legal node information, as shown in fig. 12, the method may further include S206, as follows:
s206, for one legal node in at least one legal node, when the login module is called and login to the legal node fails, the processing of the legal node information is ended, and prompt information that the legal node information cannot be logged in is returned.
In the embodiment of the invention, when the login module is called and the login of the legal node fails, the fact that the related hardware information of the legal node cannot be obtained and the next network environment deployment check cannot be carried out is indicated, so that the processing of the legal node information is finished, and the prompt information that the legal node information cannot be logged in is returned.
In the embodiment of the invention, when the validity check of the at least one legal node information is carried out in batches, if one legal node information cannot log in, the execution of the rest legal node information in the at least one legal node information can be stopped, a failure prompt can be returned directly, or after the processing of the legal node information is finished, the prompt information that the legal node information cannot log in is returned, the next legal node information of the legal node information can be continuously executed until the at least one legal node information is completely processed.
In the embodiment of the present invention, based on the network deployment environment inspection performed on each legal node in the at least one legal node in fig. 12 and S2024, after the network deployment environment inspection result is obtained, as shown in fig. 13, the method may further include S207, as follows:
s207, for one legal node in at least one legal node, when the network deployment environment inspection result of the legal node is failed, ending the processing of the legal node, and returning the prompt information of failure of the legal node environment inspection.
In the embodiment of the invention, when the legal node does not pass the network deployment environment inspection, the legal node is not provided with the network environment deployed in the cloud platform, so that the processing of the legal node is finished, and the prompt information of failure of the legal node environment inspection is returned.
In the embodiment of the invention, when the validity check is performed on at least one legal node information in batches, if one legal node does not pass the network deployment environment check, the execution of the rest legal nodes in the at least one legal node can be stopped, a failure prompt can be returned directly, or after the processing of the legal node is finished, the prompt information of the failure of the legal node environment check is returned, the next legal node of the legal node can be continuously executed until all the processing of the at least one legal node is finished.
In the embodiment of the present invention, based on the hardware configuration information of each deployable node obtained by the node management service in fig. 13 and S2026, as shown in fig. 14, the method may further include S208, as follows:
s208, for each deployable node, when the hardware configuration information of one deployable node fails to acquire, ending the processing of the deployable node, and returning the prompt information of the hardware configuration information acquisition failure of the deployable node.
In the embodiment of the invention, when the hardware configuration information of the deployable node fails to be acquired, the hardware configuration information of the deployable node cannot be correspondingly written into the storage pool, so that the processing of the deployable node is ended, and the prompt information of the hardware configuration information acquisition failure of the deployable node is returned.
In the embodiment of the invention, when the hardware configuration information of at least one deployable node is acquired, if the hardware configuration information of one deployable node cannot be acquired, execution of the rest of the deployable nodes in the at least one deployable node can be stopped, a failure prompt can be returned directly, or after processing of the deployable node is finished, the prompt information of failure in acquiring the hardware configuration information of the deployable node is returned, the next deployable node of the deployable node can be continuously executed until all the at least one deployable node is processed.
It can be understood that in the embodiment of the invention, through carrying out validity check and network deployment check on at least one node to be imported, which is input by a user, illegal nodes and nodes which do not meet the network deployment requirement of the cloud platform are screened out, so that the nodes which are deployed into the cloud platform through a node storage pool are all nodes which are subjected to deployment preparation and meet the network environment deployment requirement, the success rate of cluster deployment is improved, the problem that the whole cluster needs to be redeployed due to the fact that individual nodes in the cluster nodes are not subjected to deployment preparation is avoided, and network configuration information corresponding to at least one node to be deployed can be automatically generated through at least one node to be deployed information, and finally the efficiency of cloud platform cluster deployment is improved.
The embodiment of the invention provides a node automation deployment device of a cloud platform, which is applied to a node connected with the cloud platform, as shown in fig. 15, the node automation deployment device 2 of the cloud platform comprises an acquisition unit 20, a generation unit 21 and a deployment unit 22, wherein,
the acquiring unit 20 is configured to acquire, when a node is deployed on the cloud platform, at least one node information to be deployed from a node storage pool;
The generating unit 21 is configured to automatically generate, through a cluster deployment service, network configuration information corresponding to the at least one node to be deployed according to the at least one node to be deployed information;
the deployment unit 22 is configured to deploy the at least one node to be deployed to a cloud platform according to network configuration information corresponding to the at least one node to be deployed.
In some embodiments, the node automation deployment device of the cloud platform further comprises a checking unit 23 and an importing unit 24, where before the at least one node information to be deployed is obtained from the node storage pool,
the acquiring unit 20 is further configured to acquire, through the node management service, at least one node information to be imported from an external form; the at least one node to be imported information comprises address information, account information and node deployment type information of at least one node to be imported; the external form is received by the node from the outside, and the at least one form to be imported node information is stored in a preset format;
the checking unit 23 is configured to perform validity check and network deployment environment check on the at least one node to be imported information and the corresponding at least one node to be imported through the cluster deployment service and the node management service, and obtain hardware configuration information of the node to be imported that passes the validity check and the network deployment environment check;
The importing unit 24 is configured to combine the hardware configuration information of the node to be imported, which passes the validity check and the network deployment environment check, and the corresponding node information to be imported into the node storage pool to form node information to be deployed.
In some embodiments, the checking unit 23 is further configured to invoke the cluster deployment service, and parse and perform validity check on the at least one node information to be imported to obtain a validity check result; the validity check result represents whether account information and node deployment type information of each node information in the at least one node information are legal or not; and taking the node information to be imported, which passes the validity check result, as at least one legal node information; calling a login module in the node management service to log in at least one legal node corresponding to the at least one legal node information; and performing network deployment environment inspection on each legal node in the at least one legal node to obtain a network deployment environment inspection result; and taking the legal node which passes the network deployment environment inspection result as a deployable node;
The obtaining unit 20 is further configured to obtain, through the node management service, hardware configuration information of each deployable node, as the hardware configuration information of the node to be imported that passes the validity check and the network deployment environment check.
In the above device, the checking unit 23 is further configured to check whether the system time of each legal node is consistent with the cloud platform, to obtain a first checking result; checking whether the operating system version of each legal node meets a preset condition or not to obtain a second checking result; checking whether the network configuration parameters of each legal node meet preset network configuration conditions or not to obtain a third checking result; checking whether the hardware information of each legal node meets the preset deployment requirement or not, and obtaining a fourth checking result; and when the first, second, third and fourth inspection results are all passed, determining that the network deployment environment inspection result is passed.
In the above apparatus, the deployment unit 22 is further configured to invoke a source information management service through the cluster deployment service, and provide source information of corresponding network configuration information to the at least one node to be deployed, so that each node to be deployed in the at least one node to be deployed completes deployment preparation through configuring the source information corresponding to the network configuration information; and deploying at least one node to be deployed which completes deployment preparation into the cloud platform through the cluster deployment service.
In the above device, the node management service, the cluster deployment service and the source information management service operate in the same container.
In the above device, the node automation deployment device of the cloud platform further comprises an execution unit 25, wherein,
the executing unit 25 is configured to, after the invoking the cluster deployment service performs analysis and validity check on the at least one node information to be imported, end execution of the importing of the at least one node information to be imported if the cluster deployment service invokes failure, and return invoking failure information.
In the above apparatus, the executing unit 25 is further configured to invoke the cluster deployment service, analyze and legally check the at least one node information to be imported, obtain a result of the legality check, and then, for one node information to be imported in the at least one node information to be imported, when the result of the legality check of the node information to be imported is not passed, end processing the node information to be imported, and return a prompt message that the node information to be imported is not legal.
In the above apparatus, the executing unit 25 is further configured to call a login module in the node management service, log in at least one legal node corresponding to the at least one legal node information, and after logging in the at least one legal node, finish processing the legal node information when the login module is called and the login of the legal node fails, and return prompt information that the legal node information cannot log in.
In the above apparatus, after the network deployment environment inspection is performed on each legal node in the at least one legal node to obtain the network deployment environment inspection result, the executing unit 25 is further configured to, for one legal node in the at least one legal node, terminate processing on the legal node when the network deployment environment inspection result of the legal node is failed, and return a prompt message that the to-be-legal node environment inspection fails.
In the above apparatus, the executing unit 25 is further configured to, after obtaining, by the node management service, the hardware configuration information of each deployable node, and for each deployable node, when the obtaining of the hardware configuration information of one deployable node fails, end processing on the deployable node, and return a prompt message indicating that the obtaining of the hardware configuration information of the deployable node fails.
In the above apparatus, each node information to be deployed in the at least one node information to be deployed further includes cluster identification information, and the node automation deployment apparatus of the cloud platform further includes a writing unit 26, wherein,
the writing unit 26 is configured to correspondingly write cluster identification information generated by the cloud platform for each node to be deployed in the at least one node to be deployed into each node to be deployed information after the at least one node to be deployed is deployed to the cloud platform according to the network configuration information corresponding to the at least one node to be deployed.
The embodiment of the present invention provides a node, as shown in fig. 16, the node 8 includes: the system comprises a processor 54, a memory 55 and a communication bus 56, wherein the memory 55 is in communication with the processor 54 through the communication bus 56, the memory 55 stores one or more programs executable by the processor 54, and when the one or more programs are executed, the automatic deployment method of the cloud platform node according to any of the previous embodiments is executed by the processor 54.
Embodiments of the present invention provide a storage medium storing one or more programs, where the one or more programs are executable by the one or more processors 54, and when the programs are executed by the processor 54, implement a node automation deployment method of a cloud platform according to any of the foregoing.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention.

Claims (14)

1. An automatic deployment method of cloud platform nodes, which is applied to nodes connected with a cloud platform, is characterized by comprising the following steps:
when a node is deployed on a cloud platform, acquiring at least one node information to be deployed from a node storage pool;
automatically generating network configuration information corresponding to the at least one node to be deployed according to the information of the at least one node to be deployed through cluster deployment service;
deploying the at least one node to be deployed to a cloud platform according to network configuration information corresponding to the at least one node to be deployed;
before the obtaining the at least one node information to be deployed from the node storage pool, the method further includes:
Acquiring at least one node information to be imported from an external form through a node management service; the at least one node to be imported information comprises address information, account information and node deployment type information of at least one node to be imported; the external form is received by the node from the outside, and the at least one form to be imported node information is stored in a preset format;
the node information to be imported and the corresponding at least one node to be imported are subjected to validity check and network deployment environment check through the cluster deployment service and the node management service, and hardware configuration information of the node to be imported which passes the validity check and the network deployment environment check is obtained;
and forming the hardware configuration information of the node to be imported and the corresponding node information to be imported, which pass through the validity check and the network deployment environment check, into node information to be deployed, and importing the node information to the node storage pool.
2. The method according to claim 1, wherein the performing, by the cluster deployment service and the node management service, the validity check and the network deployment environment check on the at least one node to be imported information and the corresponding at least one node to be imported, and obtaining the hardware configuration information of the node to be imported that passes the validity check and the network deployment environment check, includes:
Invoking the cluster deployment service, and analyzing and legality checking the information of the at least one node to be imported to obtain a legality checking result; the validity check result represents whether account information and node deployment type information of each node information in the at least one node information are legal or not;
the node information to be imported, which is passed by the validity check result, is used as at least one legal node information;
calling a login module in the node management service to log in at least one legal node corresponding to the at least one legal node information;
performing network deployment environment inspection on each legal node in the at least one legal node to obtain a network deployment environment inspection result;
taking the legal node which passes the network deployment environment inspection result as a deployable node;
and acquiring the hardware configuration information of each deployable node through the node management service, and taking the hardware configuration information of the node to be imported, which passes the validity check and the network deployment environment check.
3. The method of claim 2, wherein the invoking the cluster deployment service performs a network deployment environment check on each of the at least one legitimate node to obtain a network deployment environment check result, comprising:
Checking whether the system time of each legal node is consistent with the cloud platform or not, and obtaining a first checking result;
checking whether the operating system version of each legal node meets preset conditions or not to obtain a second checking result;
checking whether the network configuration parameters of each legal node meet preset network configuration conditions or not to obtain a third checking result;
checking whether the hardware information of each legal node meets the preset deployment requirement or not, and obtaining a fourth checking result;
and when the first, second, third and fourth inspection results are all passed, determining that the network deployment environment inspection result is passed.
4. A method according to any one of claims 1 to 3, wherein the deploying the at least one node to be deployed to a cloud platform according to the network configuration information corresponding to the at least one node comprises:
calling a source information management service through the cluster deployment service, and providing source information of corresponding network configuration information for the at least one node to be deployed so that each node to be deployed in the at least one node to be deployed completes deployment preparation through the source information corresponding to the configuration information of the configuration network;
And deploying at least one node to be deployed which completes deployment preparation into the cloud platform through the cluster deployment service.
5. The method of claim 4, wherein the node management service, the cluster deployment service, and the source information management service operate in the same container.
6. The method of claim 2, wherein after the invoking the cluster deployment service to parse and validity check the at least one node information to be imported, the method further comprises:
and if the cluster deployment service call fails, ending the execution of the importing of the information of the at least one node to be imported, and returning call failure information.
7. The method of claim 6, wherein the invoking the cluster deployment service parses and legitimacy checks the at least one node information to be imported to obtain a legitimacy check result, and further comprising:
and for one piece of the at least one piece of node information to be imported, ending the processing of the node information to be imported when the validity check result of the node information to be imported is not passed, and returning the prompt information that the node information to be imported is not legal.
8. The method of claim 7, wherein the invoking the login module in the node management service, after logging in the at least one legitimate node corresponding to the at least one legitimate node information, further comprises:
and for one legal node in the at least one legal node, when the login module is called and login to the legal node fails, ending the processing of the legal node information and returning prompt information that the legal node information cannot be logged in.
9. The method of claim 8, wherein the performing a network deployment environment inspection on each legal node in the at least one legal node, after obtaining a network deployment environment inspection result, further comprises:
and for one legal node in the at least one legal node, when the network deployment environment inspection result of the legal node is failed, ending the processing of the legal node, and returning prompt information of failure in the legal node environment inspection.
10. The method of claim 9, wherein after obtaining the hardware configuration information of each deployable node by the node management service, the method further comprises:
And for each deployable node, when the hardware configuration information of one deployable node fails to acquire, ending the processing of the deployable node, and returning the prompt information of the hardware configuration information of the deployable node.
11. The method according to claim 1 or 10, wherein each of the at least one node to be deployed information further includes cluster identification information, and after the at least one node to be deployed is deployed to a cloud platform according to the network configuration information corresponding to the at least one node to be deployed, the method further includes:
and correspondingly writing cluster identification information generated by the cloud platform for each node to be deployed in the at least one node to be deployed into the information of each node to be deployed.
12. The node automation deployment device of the cloud platform is characterized by comprising an acquisition unit, a generation unit and a deployment unit, wherein,
the acquiring unit is used for acquiring at least one node information to be deployed from a node storage pool when the nodes are deployed on the cloud platform;
the generating unit is used for automatically generating network configuration information corresponding to the at least one node to be deployed according to the at least one node to be deployed through cluster deployment service;
The deployment unit is configured to deploy the at least one node to be deployed to a cloud platform according to network configuration information corresponding to the at least one node to be deployed;
wherein, before the obtaining at least one node information to be deployed from the node storage pool, the apparatus is further configured to:
acquiring at least one node information to be imported from an external form through a node management service; the at least one node to be imported information comprises address information, account information and node deployment type information of at least one node to be imported; the external form is received by the node from the outside, and the at least one form to be imported node information is stored in a preset format;
the node information to be imported and the corresponding at least one node to be imported are subjected to validity check and network deployment environment check through the cluster deployment service and the node management service, and hardware configuration information of the node to be imported which passes the validity check and the network deployment environment check is obtained;
and forming the hardware configuration information of the node to be imported and the corresponding node information to be imported, which pass through the validity check and the network deployment environment check, into node information to be deployed, and importing the node information to the node storage pool.
13. A node, comprising: a processor, a memory and a communication bus, the memory being in communication with the processor via the communication bus, the memory storing one or more programs executable by the processor, the processor performing the method of any of claims 1-11 when the one or more programs are executed.
14. A storage medium storing one or more programs executable by one or more processors, the programs when executed by the processors implementing the method of any of claims 1 to 11.
CN202010671472.5A 2020-07-13 2020-07-13 Automatic deployment method and device for cloud platform nodes, nodes and storage medium Active CN114006815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010671472.5A CN114006815B (en) 2020-07-13 2020-07-13 Automatic deployment method and device for cloud platform nodes, nodes and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010671472.5A CN114006815B (en) 2020-07-13 2020-07-13 Automatic deployment method and device for cloud platform nodes, nodes and storage medium

Publications (2)

Publication Number Publication Date
CN114006815A CN114006815A (en) 2022-02-01
CN114006815B true CN114006815B (en) 2024-01-26

Family

ID=79920063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010671472.5A Active CN114006815B (en) 2020-07-13 2020-07-13 Automatic deployment method and device for cloud platform nodes, nodes and storage medium

Country Status (1)

Country Link
CN (1) CN114006815B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553874B (en) * 2022-02-28 2023-04-18 北京理工大学 Hybrid simulation cloud platform and automatic deployment method
CN115396437B (en) * 2022-08-24 2023-06-13 中电金信软件有限公司 Cluster building method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850330A (en) * 2016-12-09 2017-06-13 中电科华云信息技术有限公司 Intelligentized cloud desktop Performance Test System and method
CN108449197A (en) * 2018-01-03 2018-08-24 北京大学 A kind of cloudy environment network construction method based on software defined network
CN108549580A (en) * 2018-03-30 2018-09-18 平安科技(深圳)有限公司 Methods and terminal device of the automatic deployment Kubernetes from node
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
CN109343894A (en) * 2018-09-20 2019-02-15 郑州云海信息技术有限公司 A kind of O&M method and apparatus of cloud platform
CN109799998A (en) * 2018-12-18 2019-05-24 深圳先进技术研究院 OpenStack cluster configuration and batch dispositions method and system
WO2019184116A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and device for automatically building kubernetes main node, terminal device and computer-readable storage medium
CN111343004A (en) * 2020-02-11 2020-06-26 苏宁金融科技(南京)有限公司 Docker-based Fabric network remote deployment method, device and system
WO2020135228A1 (en) * 2018-12-26 2020-07-02 中兴通讯股份有限公司 Cloud platform deployment method and apparatus, server and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601622B (en) * 2013-10-31 2018-04-17 国际商业机器公司 A kind of method and system for disposing cluster

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850330A (en) * 2016-12-09 2017-06-13 中电科华云信息技术有限公司 Intelligentized cloud desktop Performance Test System and method
CN108449197A (en) * 2018-01-03 2018-08-24 北京大学 A kind of cloudy environment network construction method based on software defined network
CN108549580A (en) * 2018-03-30 2018-09-18 平安科技(深圳)有限公司 Methods and terminal device of the automatic deployment Kubernetes from node
WO2019184164A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
WO2019184116A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and device for automatically building kubernetes main node, terminal device and computer-readable storage medium
CN108924217A (en) * 2018-06-29 2018-11-30 中山大学 A kind of distribution cloud system Automation arranging method
CN109343894A (en) * 2018-09-20 2019-02-15 郑州云海信息技术有限公司 A kind of O&M method and apparatus of cloud platform
CN109799998A (en) * 2018-12-18 2019-05-24 深圳先进技术研究院 OpenStack cluster configuration and batch dispositions method and system
WO2020135228A1 (en) * 2018-12-26 2020-07-02 中兴通讯股份有限公司 Cloud platform deployment method and apparatus, server and storage medium
CN111343004A (en) * 2020-02-11 2020-06-26 苏宁金融科技(南京)有限公司 Docker-based Fabric network remote deployment method, device and system

Also Published As

Publication number Publication date
CN114006815A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
US10585785B2 (en) Preservation of modifications after overlay removal from a container
CN114006815B (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN113220431B (en) Cross-cloud distributed data task scheduling method, device and storage medium
Netti et al. FINJ: A fault injection tool for HPC systems
US20200310828A1 (en) Method, function manager and arrangement for handling function calls
CN110727575B (en) Information processing method, system, device and storage medium
CN113419818B (en) Basic component deployment method, device, server and storage medium
Koziolek et al. Lightweight Kubernetes distributions: a performance comparison of MicroK8s, k3s, k0s, and Microshift
CN112600931B (en) API gateway deployment method and device
CN114609995A (en) Fault control method, device, system, equipment, medium and product
CN113849196A (en) Product management method based on multi-cloud management platform and related components
Frank et al. Misim: A simulator for resilience assessment of microservice-based architectures
CN112559352A (en) Interface test method, device, equipment and storage medium
TW201407503A (en) System and method for work schedule of cloud platform
CN113076248B (en) Application processing method, device and equipment and readable storage medium
CN115617668A (en) Compatibility testing method, device and equipment
CN115442372A (en) Interface calling method and micro-service application system applying same
CN114443215A (en) Service application deployment method and device, computer equipment and storage medium
CN114327383A (en) Service configuration system and method based on SOA (service oriented architecture) middleware and readable storage medium
CN112231231A (en) Method, system and device for debugging cloud service
CN115408110B (en) Performance evaluation method and system for Kubernetes control plane component
CN113031960B (en) Code compiling method, device, server and storage medium
US20100318849A1 (en) Runtime behavior alteration using behavior injection harness
CN115242596B (en) User-oriented network test bed scene service scheduling method and device
CN113176913B (en) Processing method and device of JAVA agent, terminal equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant