CN113645071B - Cluster deployment method, system, medium and electronic terminal - Google Patents
Cluster deployment method, system, medium and electronic terminal Download PDFInfo
- Publication number
- CN113645071B CN113645071B CN202110915132.7A CN202110915132A CN113645071B CN 113645071 B CN113645071 B CN 113645071B CN 202110915132 A CN202110915132 A CN 202110915132A CN 113645071 B CN113645071 B CN 113645071B
- Authority
- CN
- China
- Prior art keywords
- cluster
- deployment
- information
- infrastructure
- resource information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/22—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Abstract
The invention provides a cluster deployment method, a system, a medium and an electronic terminal, wherein the cluster deployment method comprises the following steps: starting configuration items for cluster deployment in a platform page through visual operation, configuring a plurality of configuration items, and acquiring resource information and cluster deployment network information for cluster deployment, wherein the resource information comprises: infrastructure resource information and node resource information; acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information; calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, and utilizing the container mirror image to perform cluster deployment; according to the cluster deployment method, the cluster configuration items are displayed on the display page of the platform, so that the graphical interface of the Kubernets cluster deployment tool is realized, a customized Kubernets cluster is convenient to create, the deployment difficulty of the Kubernets cluster and the use threshold of the cluster deployment tool are reduced, and the deployment efficiency is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a cluster deployment method, system, medium, and electronic terminal.
Background
Kubernets is a portable, extensible, open-source platform for managing containerized workloads and services, a standard for container orchestration currently on the market. Public cloud can provide infrastructures such as servers, virtual networks and disks flexibly, and many enterprises in the market build own Kubernets clusters based on the public cloud IaaS (Infrastructure as a Service).
However, the existing PaaS platform has a high use threshold for deploying kubernets, such as kubedm, infrastructure, rancher, etc., and all the tools need deployment personnel to be familiar with components, networks and storage of kubernets, and have high requirements on the professional degree, complicated steps in the deployment process, high error tendency, low efficiency, and difficulty in meeting the requirements of large-scale and cross-public cloud cluster deployment.
Disclosure of Invention
The invention provides a cluster deployment method, a cluster deployment system, a medium and an electronic terminal, and aims to solve the problems that in the prior art, a Kubernet cluster deployment tool is high in use threshold, complicated in steps in a deployment process, easy to make mistakes, low in efficiency and difficult to meet the requirements of large-scale and cross-public cloud cluster deployment.
The cluster deployment method provided by the invention comprises the following steps:
starting a configuration item for cluster deployment in a platform page through visual operation;
configuring the plurality of configuration items, and acquiring resource information and cluster deployment network information for cluster deployment, wherein the resource information comprises: infrastructure resource information and node resource information;
acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information;
and calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, and utilizing the container mirror image to perform cluster deployment.
Optionally, the step of configuring the plurality of configuration items in the platform page includes:
the method comprises the steps of obtaining automatic scripts of a plurality of cluster deployment tools, running the automatic scripts in a preset container, and obtaining configuration item icons of the cluster deployment tools;
displaying the configuration item icon on a platform page according to a preset page display template;
and the user clicks or touches a corresponding configuration item icon on the platform page and inputs corresponding configuration information to configure the plurality of configuration items.
Optionally, the obtaining method of the infrastructure resource information includes:
determining infrastructure demand information according to a preset infrastructure resource template and infrastructure associated information in configuration information input by a user;
and acquiring corresponding infrastructure resource information according to the infrastructure demand information.
Optionally, the step of obtaining corresponding infrastructure resource information according to the infrastructure demand information includes:
generating a public cloud docking request according to the infrastructure demand information, wherein the public cloud docking request comprises: infrastructure requirement information and authentication information for performing docking security authentication;
according to the authentication information, calling of an interface of the public cloud is completed;
utilizing the interface to call infrastructure resources corresponding to the infrastructure demand information in the public cloud, and acquiring corresponding infrastructure resource information;
and the platform receives the infrastructure resource information and finishes the acquisition of the infrastructure resource information.
Optionally, the cluster deployment network information includes: the method comprises the following steps that cluster network parameters and an application program interface server address used for carrying out data verification and configuration on objects in a cluster, and the step of obtaining cluster deployment network information comprises the following steps:
establishing an initial cluster according to the acquired infrastructure resource information and a cluster network mode in configuration information input by a user;
initializing a plurality of node servers in the initial cluster according to server information in configuration information input by a user to acquire cluster deployment network information, wherein the initialization mode at least comprises one of the following modes: optimizing limiting parameters, updating a dependency package, updating a kernel, initializing a disk and updating time synchronization.
Optionally, according to the deployment template, an asynchronous task is called to a corresponding deployment unit, and a corresponding task is executed, where the task includes: initializing nodes, updating network configuration, pulling corresponding container mirror images from a preset cluster mirror image warehouse, reading the node resource information and cluster deployment network information by using the container mirror images, performing cluster deployment and generating logs.
Optionally, in the cluster deployment process, the deployment information is displayed on the platform page in real time by dragging the log in real time, where the deployment information includes: installation information and error information.
The invention also provides a cluster deployment system, comprising:
the configuration module is configured to start configuration items for cluster deployment in a platform page through visual operation, configure a plurality of the configuration items, and acquire resource information and cluster deployment network information for cluster deployment, where the resource information includes: infrastructure resource information and node resource information;
the deployment template acquisition module is used for acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information;
the cluster deployment module is used for calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template and utilizing the container mirror image to perform cluster deployment; the configuration module, the deployment template acquisition module and the cluster deployment module are connected.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the method of any one of the above.
The present invention also provides an electronic terminal, comprising: a processor and a memory;
the memory is adapted to store a computer program and the processor is adapted to execute the computer program stored by the memory to cause the terminal to perform the method as defined in any one of the above.
The invention has the beneficial effects that: according to the cluster deployment method, through visual operation, configuration items for cluster deployment in a platform page are started, a plurality of configuration items in the platform page are configured, and resource information and cluster deployment network information for cluster deployment are acquired, wherein the resource information comprises: the method comprises the steps of acquiring a deployment template of a cluster network according to resource information and cluster deployment network information, calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, utilizing the container mirror image to deploy a cluster, acquiring a plurality of cluster configuration items by visualizing a deployment tool, and displaying the plurality of configuration items on a display page of a platform, so that graphical interfacing of a Kubernet cluster deployment tool is realized, and further tenants with different roles are responded to quickly, and on different public cloud platforms, a customized Kubernet cluster is created through the deployment tool provided by a platform page, so that the deployment difficulty of the Kubernet cluster and the use threshold of the cluster deployment tool are reduced, the deployment efficiency is improved, and the requirement of cross-public cloud deployment is met.
Drawings
Fig. 1 is a schematic flow chart of a cluster deployment method in the embodiment of the present invention.
Fig. 2 is a schematic flowchart of configuring a configuration item in the cluster deployment method in the embodiment of the present invention.
Fig. 3 is a schematic flowchart of acquiring infrastructure resource information in the cluster deployment method according to the embodiment of the present invention.
Fig. 4 is a schematic flowchart of acquiring cluster deployment network information in the cluster deployment method in the embodiment of the present invention.
Fig. 5 is a schematic flow chart of cluster deployment according to a deployment template in the cluster deployment method in the embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a cluster deployment system in the embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the drawings only show the components related to the present invention rather than being drawn according to the number, shape and size of the components in actual implementation, and the type, amount and proportion of each component in actual implementation can be changed freely, and the layout of the components can be more complicated.
The inventors have discovered that kubernets is a portable, extensible, open source platform for managing containerized workloads and services, which is the standard for container orchestration currently on the market. Public cloud can provide infrastructures such as servers, virtual networks and disks flexibly, and many enterprises in the market build own Kubernetes clusters based on public cloud IaaS. However, the existing PaaS (Platform as a Service) Platform has a high use threshold for deploying kubernets, such as kubedm, ansile, rancher, etc., and all the tools need deployment personnel to be familiar with components, networks and storage of kubernets, and have high professional requirements, and the deployment process has complicated steps, is prone to errors, has low efficiency, and is difficult to meet the requirements of large-scale and cross-public cloud cluster deployment. Therefore, the inventor proposes a cluster deployment method, a system, a medium, and an electronic terminal, which start a configuration item for cluster deployment in a platform page through a visual operation, configure multiple configuration items in the platform page, and acquire resource information for cluster deployment and cluster deployment network information, where the resource information includes: the method comprises the steps of acquiring a deployment template of a cluster network according to resource information and cluster deployment network information, calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, utilizing the container mirror image to deploy a cluster, acquiring a plurality of cluster configuration items by visualizing a deployment tool, and displaying the plurality of configuration items on a display page of a platform, so that graphical interfacing of a Kubernet cluster deployment tool is realized, and further tenants with different roles are responded to quickly.
As shown in fig. 1, the cluster deployment method in this embodiment includes:
s101: and starting a configuration item for cluster deployment in the platform page through visual operation.
S102: configuring a plurality of configuration items in a platform page, and acquiring resource information and cluster deployment network information for cluster deployment, wherein the resource information comprises: infrastructure resource information and node resource information; for example: the user configures the plurality of configuration items provided by the platform page, namely inputs corresponding configuration information, and obtains corresponding resource information and cluster deployment network information for cluster deployment. The configuration item serves as an interfacing cluster deployment tool in the platform, and the configuration item at least comprises one of the following items: cluster name, cluster access address, cluster network mode, node resource, and container network routing information. The node resource information includes: node resource state, node resource residual information and node role information. The infrastructure association information includes at least one of: the cluster scale type, subnet information, ssh login authentication information and proxy node information required by the PaaS platform Kubernets. The container network Routing information is Classless Inter-Domain Routing (CIDR).
In some embodiments, the user can select a multi-master high availability cluster mode or a single-master cluster mode according to the user's own needs. And acquiring corresponding resource information and cluster deployment network information for cluster deployment according to the cluster mode selected by the user. The user can also select to self-define the related component parameters of the Kubernets cluster, and in the process of cluster deployment, a corresponding deployment template is generated according to the component parameters defined by the user and the acquired resource information.
S103: and acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information. The deployment template is used for cluster deployment.
S104: and calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, and utilizing the container mirror image to perform cluster deployment. The method comprises the steps of deploying a cluster mirror image warehouse locally in advance, setting a customized Kubernets official mirror image as a container mirror image, obtaining a container mirror image matched with a deployment template in the cluster mirror image warehouse according to the deployment template, and performing cluster deployment by using the container mirror image, so that the deployment difficulty of a Kubernets cluster and the use threshold of a cluster deployment tool are reduced, the deployment efficiency is improved, the requirement of cross-public cloud deployment is met, and the manpower investment and the cost investment are reduced.
For example: when a user performs Kubernets cluster deployment based on a PaaS platform, resource information and cluster deployment network information for cluster deployment are acquired by configuring a plurality of configuration items in a platform page, wherein the resource information comprises: the method comprises the steps of determining a deployment template of a cluster network according to infrastructure resource information and node resource information, calling a container mirror image in a cluster mirror image warehouse according to the deployment template, and performing cluster deployment by using the container mirror image, so that the difficulty of cluster deployment on a PaaS platform is reduced, the use threshold of a deployment tool is reduced, the cost is reduced, and the practicability is high.
Referring to fig. 2, in order to reduce the use threshold of the kubernets cluster deployment tool and reduce the technical difficulty of kubernets cluster deployment, the inventor proposes that the cluster deployment tool is interfaced, and a user can configure a configuration item of the deployment tool on a platform page to implement cluster deployment. Further, the step of configuring the plurality of configuration items in the platform page includes:
s201: the method comprises the steps of obtaining automatic scripts of a plurality of cluster deployment tools, running the automatic scripts in a preset container, and obtaining configuration item icons of the cluster deployment tools;
s202: displaying the configuration item icon on a platform page according to a preset page display template; by displaying the configuration items as the deployment tools on the platform page, the interface of the cluster deployment tools is realized.
S203: and a user clicks or touches a corresponding configuration item icon on a platform page and inputs corresponding configuration information to configure the plurality of configuration items, so as to acquire the resource information and the cluster deployment network information. The deployment difficulty of cluster deployment and the use difficulty of cluster deployment tools are reduced, and the cluster deployment cost is reduced.
In order to better implement the deployment across public clouds, as shown in fig. 3, the manner of acquiring the infrastructure resource information includes:
s301: determining infrastructure demand information according to a preset infrastructure resource template and infrastructure associated information in configuration information input by a user;
s302: and acquiring corresponding infrastructure resource information according to the infrastructure demand information.
Further, the step of acquiring corresponding infrastructure resource information according to the infrastructure demand information includes:
s3021: generating a public cloud docking request according to the infrastructure demand information, wherein the public cloud docking request comprises: infrastructure requirement information and authentication information for performing docking security authentication.
S3022: according to the authentication information, calling of an interface of the public cloud is completed; the authentication information may be a verification code or an authorization code.
S3023: utilizing the interface to call infrastructure resources corresponding to the infrastructure demand information in the public cloud, and acquiring corresponding infrastructure resource information; it can be understood that the connection between the platform and the multiple public clouds can be established, the multiple public clouds are sequenced according to the resource categories and the residual resources of the multiple public clouds, when the public cloud resources need to be called, the public clouds are subjected to resource calling according to the sequencing sequence, and when the called public cloud resources are insufficient, the infrastructure resources of the next public cloud are called according to the sequencing sequence to obtain corresponding infrastructure resource information.
S3024: and the platform receives the infrastructure resource information and finishes the acquisition of the infrastructure resource information. And acquiring corresponding infrastructure resource information by calling the basic setting resources in the public cloud, and performing cluster deployment by using the infrastructure resource information so as to facilitate the cluster deployment of users across the public cloud.
In some embodiments, for public clouds such as the arry cloud and the tengchun cloud, the required infrastructure resources can be automatically created according to the definition of the user, and manual operations of the user are reduced, such as: and calling resources in the Aries cloud or the Tencent cloud according to the information defined by the user, acquiring infrastructure resources corresponding to the information defined by the user, and further acquiring corresponding infrastructure resource information.
In some embodiments, infrastructure resources in the private cloud may also be invoked, obtaining corresponding infrastructure resource information.
In some embodiments, the cluster deployment network information comprises: kubernetes cluster network parameters and application program interface server addresses for data validation and configuration of objects in the cluster. The application program interface server address may be a kube-apiserver high available vip address.
As shown in fig. 4, in some embodiments, the step of obtaining the cluster deployment network information includes:
s401: establishing an initial cluster according to the acquired infrastructure resource information and a cluster network mode in configuration information input by a user;
s402: initializing a plurality of node servers in the initial cluster according to server information in configuration information input by a user to acquire cluster deployment network information, wherein the initialization mode at least comprises one of the following modes: optimizing limiting parameters, updating a dependency package, updating a kernel, initializing a disk and updating time synchronization. The server information includes: control node (master) server information and compute node (node) server information.
In order to implement customization of the base container mirror image, the inventor proposes that a cluster mirror image warehouse is locally deployed, the base container mirror image is customized, and cluster deployment is performed by using the container mirror image.
Specifically, referring to fig. 5, the step of performing cluster deployment includes:
s501: according to the deployment template, calling the asynchronous task to the corresponding deployment unit, and executing the corresponding task, wherein the task comprises the following steps: initializing nodes, updating network configuration, pulling corresponding container mirror images from a preset cluster mirror image warehouse, reading the node resource information and cluster deployment network information by using the container mirror images, performing cluster deployment and generating logs.
After the cluster deployment is completed, information such as node information, monitoring resources, logs and the like of the cluster are collected and transmitted to a tool background, so that platform unified management is facilitated.
In some embodiments, role definition may also be performed on a plurality of nodes in the kubernets cluster, and node roles corresponding to the plurality of nodes are determined; and acquiring node role information, and performing elastic capacity expansion or capacity reduction on the computing nodes of the Kubernetes cluster according to the service resource requirement and the node role information to meet the requirements of different services on resources.
As shown in fig. 6, this embodiment further provides a cluster deployment system, including:
the configuration module is configured to start configuration items for cluster deployment in a platform page through visual operation, configure a plurality of the configuration items, and acquire resource information and cluster deployment network information for cluster deployment, where the resource information includes: infrastructure resource information and node resource information;
the deployment template acquisition module is used for acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information;
the cluster deployment module is used for calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template and utilizing the container mirror image to perform cluster deployment; the configuration module, the deployment template acquisition module and the cluster deployment module are connected. In the system in this embodiment, through a visualization operation, a configuration item for cluster deployment in a platform page is started, multiple configuration items in the platform page are configured, and resource information and cluster deployment network information for cluster deployment are obtained, where the resource information includes: the method comprises the steps of acquiring a deployment template of a cluster network according to resource information and cluster deployment network information, calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, utilizing the container mirror image to carry out cluster deployment, acquiring a plurality of cluster configuration items by visualizing a deployment tool, displaying the plurality of configuration items on a display page of a platform, realizing graphical interfacing of a Kuberetes cluster deployment tool, and further facilitating quick response of tenants with different roles.
In some embodiments, configuring the plurality of configuration items in the platform page comprises:
the method comprises the steps of obtaining automatic scripts of a plurality of cluster deployment tools, running the automatic scripts in a preset container, and obtaining configuration item icons of the cluster deployment tools;
displaying the configuration item icon on a platform page according to a preset page display template;
and the user clicks or touches a corresponding configuration item icon on the platform page and inputs corresponding configuration information to configure the plurality of configuration items.
In some embodiments, the obtaining of the infrastructure resource information includes:
determining infrastructure demand information according to a preset infrastructure resource template and infrastructure associated information in configuration information input by a user;
and acquiring corresponding infrastructure resource information according to the infrastructure demand information.
In some embodiments, the step of obtaining corresponding infrastructure resource information according to the infrastructure demand information includes:
generating a public cloud docking request according to the infrastructure demand information, wherein the public cloud docking request comprises: infrastructure demand information and authentication information for performing docking security authentication;
according to the authentication information, calling of an interface of the public cloud is completed;
utilizing the interface to call infrastructure resources corresponding to the infrastructure demand information in the public cloud, and acquiring corresponding infrastructure resource information;
and the platform receives the infrastructure resource information and finishes the acquisition of the infrastructure resource information.
In some embodiments, the cluster deployment network information comprises: the method comprises the following steps of cluster network parameters and an application program interface server address used for carrying out data verification and configuration on objects in a cluster, wherein the step of obtaining cluster deployment network information by the cluster network parameters comprises the following steps:
establishing an initial cluster according to the acquired infrastructure resource information and a cluster network mode in configuration information input by a user;
initializing a plurality of node servers in the initial cluster according to server information in configuration information input by a user to acquire cluster deployment network information, wherein the initialization mode at least comprises one of the following modes: optimizing limit parameters, updating a dependency package, updating a kernel, initializing a disk and updating time synchronization.
In some embodiments, according to the deployment template, an asynchronous task is called to a corresponding deployment unit, and a corresponding task is executed, where the task includes: initializing nodes, updating network configuration, pulling corresponding container mirror images from a preset cluster mirror image warehouse, reading the node resource information and cluster deployment network information by using the container mirror images, performing cluster deployment and generating logs.
In some embodiments, in the cluster deployment process, the deployment information is displayed on the platform page in real time by dragging the log in real time, and the deployment information includes: installation information and error information.
The present embodiment also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements any of the methods in the present embodiments.
The present embodiment further provides an electronic terminal, including: a processor and a memory;
the memory is used for storing computer programs, and the processor is used for executing the computer programs stored by the memory so as to enable the terminal to execute the method in the embodiment.
The computer-readable storage medium in the present embodiment can be understood by those skilled in the art as follows: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The electronic terminal provided by the embodiment comprises a processor, a memory, a transceiver and a communication interface, wherein the memory and the communication interface are connected with the processor and the transceiver and are used for completing mutual communication, the memory is used for storing a computer program, the communication interface is used for carrying out communication, and the processor and the transceiver are used for operating the computer program so that the electronic terminal can execute the steps of the method.
In this embodiment, the Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which may be made by those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims (8)
1. A method for cluster deployment, comprising:
starting a configuration item for cluster deployment in a platform page through visual operation;
configuring the plurality of configuration items, and acquiring resource information and cluster deployment network information for cluster deployment, wherein the resource information comprises: infrastructure resource information and node resource information; the acquisition mode of the infrastructure resource information comprises the following steps: determining infrastructure demand information according to a preset infrastructure resource template and infrastructure associated information in configuration information input by a user; acquiring corresponding infrastructure resource information according to the infrastructure demand information; the cluster deployment network information includes: the method comprises the following steps that cluster network parameters and an application program interface server address used for carrying out data verification and configuration on objects in a cluster, and the step of obtaining cluster deployment network information comprises the following steps: establishing an initial cluster according to the acquired infrastructure resource information and a cluster network mode in configuration information input by a user; initializing a plurality of node servers in the initial cluster according to server information in configuration information input by a user to acquire cluster deployment network information, wherein the initialization mode at least comprises one of the following modes: optimizing a limiting parameter, updating a dependency package, updating a kernel, initializing a disk and synchronizing updating time;
acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information;
and calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template, and utilizing the container mirror image to perform cluster deployment.
2. The cluster deployment method of claim 1, wherein the step of configuring the plurality of configuration items in the platform page comprises:
the method comprises the steps of obtaining automatic scripts of a plurality of cluster deployment tools, running the automatic scripts in a preset container, and obtaining configuration item icons of the cluster deployment tools;
displaying the configuration item icon on a platform page according to a preset page display template;
and the user clicks or touches a corresponding configuration item icon on the platform page and inputs corresponding configuration information to configure the plurality of configuration items.
3. The cluster deployment method of claim 1, wherein the step of obtaining corresponding infrastructure resource information according to the infrastructure demand information comprises:
generating a public cloud docking request according to the infrastructure demand information, wherein the public cloud docking request comprises: infrastructure requirement information and authentication information for performing docking security authentication;
according to the authentication information, calling of an interface of the public cloud is completed;
utilizing the interface to call infrastructure resources corresponding to the infrastructure demand information in the public cloud, and acquiring corresponding infrastructure resource information;
and the platform receives the infrastructure resource information and finishes the acquisition of the infrastructure resource information.
4. The cluster deployment method of claim 1,
according to the deployment template, calling the asynchronous task to the corresponding deployment unit, and executing the corresponding task, wherein the task comprises the following steps: initializing a node, updating network configuration, pulling a corresponding container mirror image from a preset cluster mirror image warehouse, reading the node resource information and the cluster deployment network information by using the container mirror image, performing cluster deployment and generating a log.
5. The cluster deployment method according to claim 1, wherein in the process of cluster deployment, deployment information is shown on a platform page in real time by dragging a log in real time, and the deployment information includes: installation information and error information.
6. A cluster deployment system, comprising:
the configuration module is configured to start configuration items for cluster deployment in a platform page through visual operation, configure a plurality of the configuration items, and acquire resource information and cluster deployment network information for cluster deployment, where the resource information includes: infrastructure resource information and node resource information; the method for acquiring the infrastructure resource information comprises the following steps: determining infrastructure demand information according to a preset infrastructure resource template and infrastructure associated information in configuration information input by a user; acquiring corresponding infrastructure resource information according to the infrastructure demand information; the cluster deployment network information includes: the method comprises the following steps that cluster network parameters and an application program interface server address used for carrying out data verification and configuration on objects in a cluster, and the step of obtaining cluster deployment network information comprises the following steps: establishing an initial cluster according to the acquired infrastructure resource information and a cluster network mode in configuration information input by a user; initializing a plurality of node servers in the initial cluster according to server information in configuration information input by a user to acquire cluster deployment network information, wherein the initialization mode at least comprises one of the following modes: optimizing a limiting parameter, updating a dependency package, updating a kernel, initializing a disk and synchronizing updating time;
the deployment template acquisition module is used for acquiring a deployment template of the cluster network according to the resource information and the cluster deployment network information;
the cluster deployment module is used for calling a container mirror image in a preset cluster mirror image warehouse according to the deployment template and utilizing the container mirror image to perform cluster deployment; the configuration module, the deployment template acquisition module and the cluster deployment module are connected.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 5.
8. An electronic terminal, comprising: a processor and a memory;
the memory is for storing a computer program and the processor is for executing the computer program stored by the memory to cause the terminal to perform the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110915132.7A CN113645071B (en) | 2021-08-10 | 2021-08-10 | Cluster deployment method, system, medium and electronic terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110915132.7A CN113645071B (en) | 2021-08-10 | 2021-08-10 | Cluster deployment method, system, medium and electronic terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113645071A CN113645071A (en) | 2021-11-12 |
CN113645071B true CN113645071B (en) | 2022-12-09 |
Family
ID=78420594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110915132.7A Active CN113645071B (en) | 2021-08-10 | 2021-08-10 | Cluster deployment method, system, medium and electronic terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645071B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114363175A (en) * | 2022-03-01 | 2022-04-15 | 北京金山云网络技术有限公司 | Cluster monitoring method and device and electronic equipment |
CN115051846B (en) * | 2022-06-07 | 2023-11-10 | 北京天融信网络安全技术有限公司 | K8S cluster deployment method based on super fusion platform and electronic equipment |
CN115242597B (en) * | 2022-06-30 | 2024-03-22 | 北京百度网讯科技有限公司 | Information processing method, apparatus and storage medium |
CN115865924B (en) * | 2023-02-16 | 2023-04-21 | 天翼云科技有限公司 | Cluster deployment method, device, equipment, medium and product |
CN117348975B (en) * | 2023-12-05 | 2024-03-15 | 中电云计算技术有限公司 | Cluster deployment method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809722A (en) * | 2018-06-13 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of method, apparatus and storage medium of deployment Kubernetes clusters |
CN110362381A (en) * | 2019-06-21 | 2019-10-22 | 深圳市汇川技术股份有限公司 | HDFS cluster High Availabitity dispositions method, system, equipment and storage medium |
CN110389832A (en) * | 2019-06-21 | 2019-10-29 | 深圳市汇川技术股份有限公司 | ZooKeeper container cluster dispositions method, system, equipment and storage medium |
WO2021017279A1 (en) * | 2019-07-30 | 2021-02-04 | 平安科技(深圳)有限公司 | Cluster security management method and apparatus based on kubernetes and network domain, and storage medium |
-
2021
- 2021-08-10 CN CN202110915132.7A patent/CN113645071B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809722A (en) * | 2018-06-13 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of method, apparatus and storage medium of deployment Kubernetes clusters |
CN110362381A (en) * | 2019-06-21 | 2019-10-22 | 深圳市汇川技术股份有限公司 | HDFS cluster High Availabitity dispositions method, system, equipment and storage medium |
CN110389832A (en) * | 2019-06-21 | 2019-10-29 | 深圳市汇川技术股份有限公司 | ZooKeeper container cluster dispositions method, system, equipment and storage medium |
WO2021017279A1 (en) * | 2019-07-30 | 2021-02-04 | 平安科技(深圳)有限公司 | Cluster security management method and apparatus based on kubernetes and network domain, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113645071A (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113645071B (en) | Cluster deployment method, system, medium and electronic terminal | |
US10637796B2 (en) | Linking instances within a cloud computing environment | |
US10171377B2 (en) | Orchestrating computing resources between different computing environments | |
CN110752947B (en) | K8s cluster deployment method and device, and deployment platform | |
CN111782232A (en) | Cluster deployment method and device, terminal equipment and storage medium | |
US8984134B2 (en) | Unified cloud computing infrastructure to manage and deploy physical and virtual environments | |
CN111930521A (en) | Method and device for deploying application, electronic equipment and readable storage medium | |
CN110138577B (en) | Cluster creation method, first server and readable storage medium | |
US10019293B2 (en) | Enhanced command selection in a networked computing environment | |
EP2926262A1 (en) | Cloud service managment system | |
CN106126273A (en) | A kind of method of upgrading BIOS | |
CN105812423B (en) | A kind of cloud system configuration method, server and device | |
US20120317039A1 (en) | On-demand purchase of virtual image licenses in a cloud computing environment | |
CN114489954A (en) | Tenant creation method based on virtualization platform, tenant access method and equipment | |
US10997004B2 (en) | Detecting co-resident services in a container cloud | |
US20120072916A1 (en) | Future system that can participate in systems management activities until an actual system is on-line | |
US11645583B2 (en) | Automatic rule learning in shared resource solution design | |
US10223463B2 (en) | Node controllers for hierarchical data structures | |
US10635463B2 (en) | Adapting the tone of the user interface of a cloud-hosted application based on user behavior patterns | |
WO2023193609A1 (en) | Selective privileged container augmentation | |
CN110502316A (en) | A kind of test machine configuration method, system and relevant apparatus based on KVM platform | |
CN117608921A (en) | Backup method, recovery method and related equipment of cloud database |
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 |