Processing method for deploying cloud platform and product

By obtaining and generating the target configuration files of the cloud platform business module, and using automated deployment scripts of deployment tools such as Ansible, the cloud platform's deployment efficiency problem on the container cluster management system is solved, and an efficient and automated deployment process is achieved.

CN119781858APending Publication Date: 2025-04-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411875311.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

When the existing technology deploys cloud platforms on container cluster management systems, the deployment efficiency is inefficient and requires manual execution of shell deployment scripts for each module one by one, which is cumbersome and inefficient.

Method used

By obtaining the target configuration of each business module in the target cloud platform, generating template configuration files, and using cloud platform deployment tools such as Ansible's deployment scripts and role mechanisms, we can automatically deploy each target business module.

Benefits of technology

It improves the deployment efficiency of cloud platform on the container cluster management system, avoids the tedious process of manual deployment, and avoids the problem of configuration loss by extracting and rendering target configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781858A_ABST
    Figure CN119781858A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a processing method and product for deploying a cloud platform, and the method comprises the steps: obtaining target configuration corresponding to each business module in a target cloud platform, and generating a template configuration file corresponding to each business module; in response to the deployment operation, determining each target service module of a target cloud platform deployed in the target container cluster management system and a corresponding role of any target service module in a deployment script of a cloud platform deployment tool; and deploying each target service module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target service module. The embodiment of the invention aims to improve the deployment efficiency when the target cloud platform is deployed in the target container cluster management system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of data processing, and specifically, to a processing method and product for deploying a cloud platform. Background Art

[0002] With the development of technology, cloud computing management platforms can provide users with resource isolation and resource usage restrictions at the levels of computing resources, storage resources, and network resources, making it seem as if users have exclusive use of a physical machine. After years of development, the technology of cloud computing management platforms has become increasingly mature and stable. While having high availability, it also has very flexible scalability and has been widely used in various industries.

[0003] The container cluster management system can provide deployment and operation, resource scheduling, service discovery, and dynamic scaling functions for containerized applications based on Docker container technology, providing convenience for large-scale container cluster management.

[0004] It has become a trend to deploy cloud platforms on container cluster management systems, which can improve the deployment flexibility, scalability, and self-fault recovery capabilities of cloud platforms.

[0005] At present, the related methods for deploying cloud platforms on container cluster management systems adopt a method of writing a shell deployment script for each module in the cloud platform, organizing and arranging the deployment logic of the corresponding module in the shell script, and manually deploying each module one by one according to the shell script corresponding to each module. However, the method of manually executing the shell script deployment of each module one by one is very cumbersome and has low deployment efficiency. Summary of the invention

[0006] The embodiments of the present application provide a processing method and product for deploying a cloud platform, aiming to improve the deployment efficiency when the cloud platform is deployed in a container cluster management system.

[0007] In a first aspect, an embodiment of the present application provides a method for deploying a cloud platform, the method comprising: Obtain the target configuration corresponding to each business module in the target cloud platform, and generate the template configuration file corresponding to each business module; In response to the deployment operation, determining a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool; According to the deployment script of the cloud platform deployment tool and the template configuration files corresponding to each target business module, each target business module is deployed in the target container cluster management system.

[0008] Optionally, the target configuration corresponding to each business module in the target cloud platform is obtained, and a template configuration file corresponding to each business module is generated, including: Obtain the common configuration of each business module in the target cloud platform, the environment configuration of any business module, and the custom configuration corresponding to any business module; For any business module, the common configuration, environment configuration and custom configuration are used as the target configuration of the business module; Based on the variables of the cloud platform deployment tool, the target configuration of any business module is rendered to obtain the template configuration file of the business module.

[0009] Optionally, in response to the deployment operation, determining a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool, includes: In response to the first deployment operation, determining a target deployment configuration, wherein the target deployment configuration includes names of target business modules of the target cloud platform deployed in the target container cluster management system; In response to the second deployment operation, determining the corresponding role of each target business module in the deployment script of the cloud platform deployment tool; The target deployment configuration is assembled with the deployment command of the cloud platform deployment tool to obtain a deployment script that takes any target business module as a role.

[0010] Optionally, deploying each target business module in the target container cluster management system according to a deployment script of a cloud platform deployment tool and a template configuration file corresponding to each target business module includes: According to the role deployment order of the deployment script of the cloud platform deployment tool, the deployment thread of any target business module is executed in sequence to deploy the target business module in the target container cluster management system; When the deployment thread of any target business module fails to execute, the deployment process ends and a pop-up window displays a deployment failure prompt, which includes the name of the target business module that failed to be deployed.

[0011] Optionally, executing a deployment thread of any target business module includes: For any target business module, obtain the package format file of the target business module and determine whether to continue to deploy the target business module; When it is determined to continue deploying the target business module, a log directory corresponding to the target business module is created on each node in the target container cluster management system, and read and write permissions for the log directory are set; Rendering is performed according to the template configuration file of the target business module to generate target configuration parameters of the target business module in the target container cluster management system; The package management tool is called to deploy the target service module having the target configuration parameters in the target container cluster management system.

[0012] Optionally, for any target business module, obtaining a package format file of the target business module and determining whether to continue to deploy the target business module includes: Detect whether there is a dependency relationship between the package format files of the target business module, and / or perform a syntax check on the package format files of the target business module; When there is no dependency relationship between the package format files of the target business module, determine to continue deploying the target business module; When the package format files of the target business module have dependencies, detecting whether the target files of the target business module having dependencies are currently included; If there is a target file with which the target business module has a dependency, determine to continue deploying the target business module; If there is no target file with which the target business module has a dependency, determine not to continue deploying the target business module; When there is no syntax error in the package format file of the target business module, determine to continue deploying the target business module; When there is a syntax error in the package format file of the target service module, it is determined not to continue to deploy the target service module.

[0013] Optionally, the target cloud platform includes an Openstack cloud computing platform, the target container cluster management system includes Kubernetes, and the cloud platform deployment tool includes an Ansible deployment tool; The step of obtaining the target configuration corresponding to each business module in the target cloud platform and generating the template configuration file corresponding to each business module includes: Obtain the target configuration corresponding to each business module in the Openstack cloud computing platform, render the target configuration of any business module based on the variables of the Ansible deployment tool, and obtain the template configuration file of the business module, wherein the target configuration includes the common configuration, environment configuration and custom configuration of any business module; The step of determining, in response to the deployment operation, a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool, includes: In response to the first deployment operation, a target deployment configuration is determined, wherein the target deployment configuration includes the name of each target business module of the Openstack cloud computing platform deployed in the Kubernetes; in response to the second deployment operation, a role corresponding to each target business module in a deployment script of an Ansible deployment tool is determined; the target deployment configuration is assembled with an ansible-playbook deployment command of the Ansible deployment tool to obtain a deployment script playbook that takes any target business module as a role; The method of deploying each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target business module includes: Execute the deployment thread of any target business module in sequence according to the role deployment order in the deployment script playbook of the Ansible deployment tool; Among them, in the deployment thread of any target business module, when the Kubernetes helm chart package format file corresponding to the target business module is detected and passed, a log directory corresponding to the target business module is created on each node in the Kubernetes, and the read and write permissions of the log directory are set; rendering is performed according to the template configuration file of the target business module to generate the target configuration parameters of the target business module in the Kubernetes; and the package management tool is called to deploy the target business module with the target configuration parameters in the Kubernetes.

[0014] In a second aspect, an embodiment of the present application provides a processing device for deploying a cloud platform, the device comprising: The acquisition module is used to obtain the target configuration corresponding to each business module in the target cloud platform and generate the template configuration file corresponding to each business module; A configuration module, configured to determine, in response to a deployment operation, a target business module of the target cloud platform deployed in a target container cluster management system, and a corresponding role of any target business module in a deployment script of a cloud platform deployment tool; The deployment module is used to deploy each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target business module.

[0015] In a third aspect, an embodiment of the present application provides a computer device, comprising: at least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein when the processor executes the computer program, the processing method for deploying a cloud platform described in the first aspect of the embodiment is executed.

[0016] In a fourth aspect, an embodiment of the present application provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processing method for deploying a cloud platform described in the first aspect of the embodiment is executed.

[0017] Beneficial effects: In the process of deploying the target cloud platform on the target container cluster management system, the method obtains the target configuration corresponding to each business module in the target cloud platform, generates a template configuration file corresponding to each business module, and then responds to the deployment operation to determine each target business module of the target cloud platform deployed in the target container cluster management system, as well as the corresponding role of any target business module in the deployment script of the cloud platform deployment tool; and deploys each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration files corresponding to each target business module.

[0018] By assembling the deployment script in the cloud platform deployment tool and the target business modules to be deployed, a one-click deployment method of the target cloud platform's business modules is formed. Compared with the method of manually deploying each module of the target cloud platform one by one, the deployment efficiency of the target cloud platform when deployed in the target container cluster management system is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions.

[0020] Figure 1 A flowchart showing the steps of a processing method for deploying a cloud platform provided in an embodiment of the present application is shown; Figure 2 The following is a flowchart showing the execution of the processing method for deploying a cloud platform provided in an embodiment of the present application; Figure 3 A functional module diagram of a processing device of a processing method for deploying a cloud platform provided in an embodiment of the present application is shown; Figure 4 A schematic diagram of a computing and processing device provided in an embodiment of the present application is shown; Figure 5 A schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application is shown; Figure 6 A schematic diagram of a computer program product provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0022] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.

[0023] The cloud platform can provide virtual servers and other resources for users. It is composed of interrelated components and controls the hardware pool of computing, storage and network resources from different manufacturers in the entire data center. Users can manage it through a web-based dashboard, command line tools or restful network services.

[0024] With the development of technology, cloud computing management platforms can provide users with resource isolation and resource usage restrictions at the levels of computing resources, storage resources, and network resources, making it seem as if users have exclusive use of a physical machine. After years of development, the technology of cloud computing management platforms has become increasingly mature and stable. While having high availability, it also has very flexible scalability and has been widely used in various industries.

[0025] The container cluster management system based on container technology provides deployment and operation, resource scheduling, service discovery, and dynamic scaling functions for containerized applications on the basis of Docker container technology, providing convenience for large-scale container cluster management.

[0026] It has become a trend to deploy cloud platforms on target container cluster management systems, which can improve the deployment flexibility, scalability, and self-fault recovery capabilities of cloud platforms, such as deploying Openstack cloud computing platforms in Kubernetes.

[0027] At present, the related methods for deploying the cloud platform on the target container cluster management system adopt a method of writing a shell deployment script for each module in the cloud platform, organizing and choreographing the deployment logic of the corresponding module in the shell script, and manually deploying each module one by one according to the shell script corresponding to each module.

[0028] However, in the related methods, deploying the cloud platform on the target container cluster management system has the following disadvantages: First, manually executing the shell deployment scripts of each module one by one is cumbersome and inefficient; Second, before deploying the cloud platform, the target configuration of each module needs to be modified, and it is impossible to achieve unified configuration settings; Third, the target configuration performed before deployment is a direct modification of the deployment code, and updating the deployment code will result in the loss of the target configuration.

[0029] Therefore, in order to solve the above problems, an embodiment of the present application provides a processing method for deploying a cloud platform.

[0030] Reference Figure 1 , shows a flowchart of a method for deploying a cloud platform provided in an embodiment of the present application, the method may include the following steps: S101: Obtain the target configuration corresponding to each business module in the target cloud platform, and generate a template configuration file corresponding to each business module.

[0031] The target cloud platform is deployed in a public cloud or a private cloud, and can provide users with computing resources, storage resources, and network resources through virtual servers and other resources. The target cloud platform is such as the Openstack cloud computing platform. In the actual implementation process, the target cloud platform can be determined according to the user's deployment requirements.

[0032] The target cloud platform may include multiple business modules, such as the computing module Nova, the network module Neutron, and the block storage module Cinder, etc., and some target configurations need to be set in different business modules during actual application.

[0033] In a feasible implementation, the process of obtaining the target configuration corresponding to each business module in the target cloud platform and generating the template configuration file corresponding to each business module may include: Obtain the common configuration of each business module in the target cloud platform, the environment configuration of any business module, and the custom configuration corresponding to any business module; for any business module, use the common configuration, environment configuration, and custom configuration as the target configuration of the business module; render the target configuration of any business module based on the variables of the cloud platform deployment tool to obtain a template configuration file of the business module.

[0034] Cloud platform deployment tools may include Ansible deployment tools, which can simplify the deployment process and achieve automated deployment by writing deployment script playbooks.

[0035] By extracting the target configuration of each business module in the target cloud platform and rendering the configuration using variables of cloud platform deployment tools such as Ansible deployment tools, the target configuration of each business module of the cloud platform can be separated from the shell deployment script of the cloud platform. This can avoid the problem of losing the target configuration of any business module after the shell deployment script is updated, and can also render the target configuration as a variable of the cloud platform deployment tool, thereby efficiently deploying the target cloud platform with the target configuration based on the cloud platform deployment tool.

[0036] For example, each business module in the target cloud platform may have some common configurations. For example, when the target cloud platform is deployed in a target container cluster management system such as Kubernetes, each target business module is configured with the image version number of Kubernetes, and all target business modules are configured with a common image version number. Any business module may have its own unique target configuration according to the requirements of the application environment, such as the CPU over-resolution ratio and memory over-resolution ratio configured in the computing module, and also includes the custom configuration of any business module set by the user according to needs.

[0037] By identifying the target configuration of each business module and rendering it with the variables of the cloud platform deployment tool, a template configuration file of the business module can be obtained, which can be called by the cloud platform deployment tool in the subsequent deployment process.

[0038] The target configuration of each business module is identified separately and a template configuration file is generated to separate it from the shell deployment script of the target cloud platform, avoiding the problem of loss of the target configuration of any business module after the shell deployment script is updated.

[0039] S102: In response to the deployment operation, determine a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool.

[0040] Specifically, in response to the first deployment operation, a target deployment configuration is determined; the target deployment configuration includes the names of the target business modules of the target cloud platform deployed in the target container cluster management system, that is, the names of the target business modules that need to be deployed in the target container cluster management system are specified by the user. The deployment configuration may also include other deployment requirement parameters of the user, such as the user name and the password corresponding to the user name.

[0041] In response to the second deployment operation, determine the corresponding role of each target business module in the deployment script of the cloud platform deployment tool. In the cloud platform deployment tool, the deployment script is the configuration, deployment and orchestration script of the cloud platform deployment tool. The cloud platform deployment tool can automatically deploy each role in turn according to the deployment script.

[0042] In this embodiment, the target deployment configuration is assembled with the deployment command of the cloud platform deployment tool to obtain a deployment script that takes any target business module as a role. By corresponding each target business module of the target cloud platform to each role in the deployment script of the cloud platform deployment tool, during the deployment process, the deployment process of each role, i.e., the target business module, can be executed based on the deployment script of the cloud platform deployment tool.

[0043] For example, in a scenario where the Openstack cloud computing platform is deployed in Kubernetes based on the Ansible deployment tool, the user can determine the name of the target business module where the Openstack cloud computing platform is deployed in Kubernetes through a first deployment operation, such as determining that this deployment includes deploying a computing module and a block storage module.

[0044] Then, through the second deployment operation, the user determines the corresponding roles of each target business module of the Openstack cloud computing platform in the deployment script playbook of the Ansible deployment tool. The deployment script playbook of the Ansible deployment tool can define multiple roles, and the deployment order of multiple roles is determined in the playbook. For example, the user can define the computing module of the Openstack cloud computing platform as role1 in the deployment script playbook, and define the block storage module as role2 in the deployment script playbook. When the Openstack cloud computing platform is subsequently deployed in Kubernetes according to the deployment script playbook of the Ansible deployment tool, role1, that is, the computing module, is deployed first, and then role2, that is, the block storage module, is deployed.

[0045] After the user determines the target business module that the Openstack cloud computing platform needs to deploy in Kubernetes and the role of any target business module in the deployment script playbook of the Ansible deployment tool, assemble the target deployment configuration with the ansible-playbook deployment command of the Ansible deployment tool to obtain the deployment script playbook that takes any target business module as a role. By executing the deployment script playbook of the Ansible deployment tool, the target business module that the Openstack cloud computing platform needs to deploy in Kubernetes can be deployed.

[0046] S103: deploying each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target business module.

[0047] In a feasible implementation, in the process of deploying each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration files corresponding to each target business module, the deployment thread of any target business module is executed in sequence according to the role deployment order of the deployment script of the cloud platform deployment tool to deploy the target business module in the target container cluster management system; and when the deployment thread of any target business module fails to execute, the deployment process is terminated and a deployment failure prompt is displayed in a pop-up window, and the deployment failure prompt includes the name of the target business module that failed to be deployed.

[0048] For example, according to the deployment order of the role in the deployment script, the deployment order of the corresponding multiple target business modules is target business module A, target business module B, target business module C, ... When the target business module A is deployed successfully, continue to deploy the target business module B. If the deployment of the target business module B fails, exit the process of deploying the target cloud platform in the target container cluster management system and report an error. The error reporting method may be a pop-up window displaying a deployment failure prompt, wherein the deployment failure prompt includes the name of the target business module that failed to be deployed, so that the user can check and correct the relevant deployment files of the target business module that failed to be deployed. The relevant deployment files of the target business module include the installation package of the target business module, etc.

[0049] In a feasible implementation, executing a deployment thread of any target business module includes the following steps: A1: For any target business module, obtain the package format file of the target business module and determine whether to continue to deploy the target business module.

[0050] When deploying the target cloud platform in the target container cluster management system, it is necessary to write a package format file for each target business module of the target cloud platform. The package format file is used to describe the business presentation of the target business module of the target cloud platform on the target container cluster management system.

[0051] For example, when the Openstack cloud computing platform is deployed in Kubernetes, it is necessary to write a Kubernetes helm chart package format file of Kubernetes for each target business module of the Openstack cloud computing platform.

[0052] In the process of obtaining the package format file of the target business module and determining whether to continue deploying the target business module, it is possible to detect whether the package format file of the target business module has dependencies and / or perform a syntax check on the package format file of the target business module.

[0053] When the package format file of the target business module does not have any dependency, determine to continue deploying the target business module; when the package format file of the target business module has a dependency, detect whether the target file on which the target business module has a dependency is currently included; if there is a target file on which the target business module has a dependency, determine to continue deploying the target business module; if there is no target file on which the target business module has a dependency, determine not to continue deploying the target business module.

[0054] For example, if the package format file of target business module A references the package format file of target business module B, it is necessary to determine whether the package format file of target business module B is also packaged in the installation package of target business module A. If not, it may easily lead to the failure of deployment of target business module A. At this time, the deployment process can be stopped, and the user is prompted that the installation package of target business module A lacks the package format file of target business module B with which it has a dependency.

[0055] When there is no syntax error in the package format file of the target business module, it is determined to continue to deploy the target business module; when there is a syntax error in the package format file of the target business module, it is determined not to continue to deploy the target business module.

[0056] If there is an error in the syntax of the package format file of the target business module A, the subsequent deployment process will fail to parse successfully, resulting in the failure of the deployment of the target business module A. At this time, the deployment process can be stopped and the user can be prompted that there is a syntax error in the package format file of the target business module A, so that the user can modify the incorrect syntax of the package format file of the target business module A in time.

[0057] A2: When it is determined to continue to deploy the target service module, a log directory corresponding to the target service module is created on each node in the target container cluster management system, and the read and write permissions of the log directory are set.

[0058] A3: Rendering is performed according to the template configuration file of the target business module to generate target configuration parameters of the target business module in the target container cluster management system.

[0059] For example, the target configurations such as the common configuration, environment configuration and custom configuration of each business module in the Openstack cloud computing platform are pre-identified and extracted, and then the template configuration file of any business module is obtained by rendering through the variables of the Ansible deployment tool. When the target business module A of the Openstack cloud computing platform needs to be deployed, it is rendered during the deployment process according to the template configuration file of the target business module A, so as to determine the target configuration parameters of the target business module A after deployment in Kubernetes.

[0060] A4: Calling a package management tool to deploy the target service module with the target configuration parameters in the target container cluster management system.

[0061] For example, when the Openstack cloud computing platform is deployed in Kubernetes, the package management tool of Kubernetes, namely the helm tool, is a package management tool in the target container cluster management system, which is used to deploy portable applications. By calling the helm tool, the target business module with target configuration parameters of the Openstack cloud computing platform can be deployed in Kubernetes.

[0062] Reference Figure 2 , shows an execution flow chart of a processing method for deploying a cloud platform provided in an embodiment of the present application. In a feasible implementation manner, the method includes the following steps: S1: Obtain the target configuration corresponding to each business module in the target cloud platform; S2: Generate template configuration files corresponding to each business module; S3: In response to the first deployment operation, determining a target deployment configuration; S4: In response to the second deployment operation, determining roles corresponding to each target business module; S5: Start the deployment process of the current role according to the deployment script of the cloud platform deployment tool; S6: Obtain the package format file of the target business module and determine whether to continue deploying the target business module; S7: Create a log directory corresponding to the target business module on each node, and set the read and write permissions of the log directory; S8: Rendering is performed according to the template configuration file of the target business module to generate target configuration parameters of the target business module; S9: calling a package management tool to deploy the target service module having the target configuration parameters in a target container cluster management system; S10: Determine whether the current role is deployed successfully; If the deployment is successful, execute step S11; If the deployment fails, exit the loop deployment process; S11: Whether there are unprocessed roles; If yes, execute step S12; If it does not exist, exit the loop deployment process; S12: Take the next unprocessed role as the current role.

[0063] Then execute step S5.

[0064] In a feasible implementation, taking the scenario of deploying the Openstack cloud computing platform in Kubernetes based on the Ansible deployment tool as an example, the execution process of this method includes: First, obtain the target configuration of each business module in the Openstack cloud computing platform. The target configuration of any business module includes but is not limited to public configuration, environment configuration and custom configuration; Then, based on the variables of the Ansible deployment tool, the target configuration of any business module is rendered to obtain the template configuration file of the business module. In the actual implementation process, the user can customize the variables used to render the target configuration in the Ansible deployment tool, that is, determine the variables used to characterize the target configuration in the Ansible deployment tool.

[0065] Next, in response to the first deployment operation, determining a target deployment configuration that the Openstack cloud computing platform needs to be deployed in Kubernetes, where the target deployment configuration includes a name of any target business module; Then, in response to the second deployment operation, determine the role corresponding to any target business module in the deployment script playbook of the Ansible deployment tool; Next, the target deployment configuration is assembled with the ansible-playbook deployment command of the Ansible deployment tool to obtain a deployment script playbook that uses any target business module as a role; Then, execute the deployment thread of any target business module according to the deployment script playbook of the Ansible deployment tool.

[0066] The deployment thread of any target business module includes the following steps: First, obtain the package format file of the target business module, detect the Kuberneteshelm chart package format file corresponding to the target business module, and determine whether to continue to deploy the target business module, including detecting whether there is a dependency relationship between the package format file of the target business module and / or performing a syntax check on the package format file of the target business module; Then, when the detection of the Kubernetes helm chart package format file corresponding to the target business module passes, a log directory corresponding to the target business module is created on each node in Kubernetes, and the read and write permissions of the log directory are set; Next, the template configuration file of the target business module is rendered to generate the target configuration parameters of the target business module in Kubernetes, and the helm tool is called to deploy the target business module with the target configuration parameters in Kubernetes.

[0067] This method is based on the deployment script in the cloud platform deployment tool, and the role and the target business module to be deployed are assembled to form a one-click deployment method of the business module of the target cloud platform. Compared with the method of manually deploying each module of the target cloud platform one by one, the deployment efficiency when the target cloud platform is deployed in the target container cluster management system is improved; and by extracting the target configuration of each module in the target cloud platform, the problem of easy loss of the target configuration can be avoided, and according to the public configuration of each module, the variables based on the cloud platform deployment tool can be uniformly set for the public configuration of multiple modules.

[0068] Reference Figure 3 , shows a functional module diagram of a processing device for deploying a cloud platform provided in an embodiment of the present application, the device comprising: The acquisition module 100 is used to acquire the target configuration corresponding to each business module in the target cloud platform and generate a template configuration file corresponding to each business module; A configuration module 200, configured to determine, in response to a deployment operation, a target business module of the target cloud platform deployed in a target container cluster management system, and a corresponding role of any target business module in a deployment script of a cloud platform deployment tool; The deployment module 300 is used to deploy each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target business module.

[0069] Optionally, the acquisition module includes an acquisition unit, configured to: Obtain the common configuration of each business module in the target cloud platform, the environment configuration of any business module, and the custom configuration corresponding to any business module; For any business module, the common configuration, environment configuration and custom configuration are used as the target configuration of the business module; Based on the variables of the cloud platform deployment tool, the target configuration of any business module is rendered to obtain the template configuration file of the business module.

[0070] Optionally, the configuration module includes: A first configuration unit, configured to determine a target deployment configuration in response to a first deployment operation, wherein the target deployment configuration includes names of target business modules of a target cloud platform deployed in a target container cluster management system; A second configuration unit, configured to determine, in response to a second deployment operation, a corresponding role of each target business module in a deployment script of the cloud platform deployment tool; The third configuration unit is used to assemble the target deployment configuration with the deployment command of the cloud platform deployment tool to obtain a deployment script that takes any target business module as a role.

[0071] Optionally, the deployment module includes a deployment unit, configured to: According to the role deployment order of the deployment script of the cloud platform deployment tool, the deployment thread of any target business module is executed in sequence to deploy the target business module in the target container cluster management system; When the deployment thread of any target business module fails to execute, the deployment process ends and a pop-up window displays a deployment failure prompt, which includes the name of the target business module that failed to be deployed.

[0072] Optionally, the deployment unit is further used for: For any target business module, obtain the package format file of the target business module and determine whether to continue to deploy the target business module; When it is determined to continue deploying the target business module, a log directory corresponding to the target business module is created on each node in the target container cluster management system, and read and write permissions for the log directory are set; Rendering is performed according to the template configuration file of the target business module to generate target configuration parameters of the target business module in the target container cluster management system; The package management tool is called to deploy the target service module having the target configuration parameters in the target container cluster management system.

[0073] Optionally, the deployment unit is further used for: Detect whether there is a dependency relationship between the package format files of the target business module, and / or perform a syntax check on the package format files of the target business module; When there is no dependency relationship between the package format files of the target business module, determine to continue deploying the target business module; When the package format files of the target business module have dependencies, detecting whether the target files of the target business module having dependencies are currently included; If there is a target file with which the target business module has a dependency, determine to continue deploying the target business module; If there is no target file with which the target business module has a dependency, determine not to continue deploying the target business module; When there is no syntax error in the package format file of the target business module, determine to continue deploying the target business module; When there is a syntax error in the package format file of the target service module, it is determined not to continue to deploy the target service module.

[0074] Reference Figure 4 , shows a schematic diagram of a computing processing device provided in an embodiment of the present application, including: at least one processor 401, and a memory 402, wherein the memory 402 stores a computer program that can be run on the processor 401, wherein the processor 401 executes the processing method for deploying a cloud platform described in the embodiment when executing the computer program.

[0075] Reference Figure 5 , showing a schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application, wherein the non-volatile readable storage medium 500 stores a computer program 501, wherein the computer program 501, when executed by a processor, executes the processing method for deploying a cloud platform described in the embodiment.

[0076] Reference Figure 6 , showing a schematic diagram of a computer program product provided in an embodiment of the present application, the computer program product 600 includes a computer program / instruction 601, and when the computer program / instruction 601 is executed by a processor, the processing method for deploying a cloud platform described in the embodiment is implemented.

[0077] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0078] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0079] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0082] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0083] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0084] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for deploying a cloud platform, characterized in that: The method comprises: Obtain the target configuration corresponding to each business module in the target cloud platform, and generate the template configuration file corresponding to each business module; In response to the deployment operation, determining a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool; According to the deployment script of the cloud platform deployment tool and the template configuration files corresponding to each target business module, each target business module is deployed in the target container cluster management system.

2. The method according to claim 1, characterized in that Obtain the target configuration corresponding to each business module in the target cloud platform, and generate the template configuration files corresponding to each business module, including: Obtain the common configuration of each business module in the target cloud platform, the environment configuration of any business module, and the custom configuration corresponding to any business module; For any business module, the common configuration, environment configuration and custom configuration are used as the target configuration of the business module; Based on the variables of the cloud platform deployment tool, the target configuration of any business module is rendered to obtain the template configuration file of the business module.

3. The method according to claim 1, characterized in that In response to the deployment operation, determining a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool, including: In response to the first deployment operation, determining a target deployment configuration, wherein the target deployment configuration includes names of target business modules of the target cloud platform deployed in the target container cluster management system; In response to the second deployment operation, determining the corresponding role of each target business module in the deployment script of the cloud platform deployment tool; The target deployment configuration is assembled with the deployment command of the cloud platform deployment tool to obtain a deployment script that takes any target business module as a role.

4. The method according to claim 3, characterized in that According to the deployment script of the cloud platform deployment tool and the template configuration files corresponding to each target business module, deploy each target business module in the target container cluster management system, including: According to the role deployment order of the deployment script of the cloud platform deployment tool, the deployment thread of any target business module is executed in sequence to deploy the target business module in the target container cluster management system; When the deployment thread of any target business module fails to execute, the deployment process ends and a pop-up window displays a deployment failure prompt, which includes the name of the target business module that failed to be deployed.

5. The method according to claim 4, characterized in that Execute the deployment thread of any target business module, including: For any target business module, obtain the package format file of the target business module and determine whether to continue to deploy the target business module; When it is determined to continue deploying the target business module, a log directory corresponding to the target business module is created on each node in the target container cluster management system, and read and write permissions for the log directory are set; Rendering is performed according to the template configuration file of the target business module to generate target configuration parameters of the target business module in the target container cluster management system; The package management tool is called to deploy the target service module having the target configuration parameters in the target container cluster management system.

6. The method according to claim 5, characterized in that For any target business module, obtaining a package format file of the target business module and determining whether to continue to deploy the target business module include: Detect whether there is a dependency relationship between the package format files of the target business module, and / or perform a syntax check on the package format files of the target business module; When there is no dependency relationship between the package format files of the target business module, determine to continue deploying the target business module; When the package format files of the target business module have dependencies, detecting whether the target files of the target business module having dependencies are currently included; If there is a target file with which the target business module has a dependency, determine to continue deploying the target business module; If there is no target file with which the target business module has a dependency, determine not to continue deploying the target business module; When there is no syntax error in the package format file of the target business module, determine to continue deploying the target business module; When there is a syntax error in the package format file of the target service module, it is determined not to continue to deploy the target service module.

7. The method according to claim 1, characterized in that The target cloud platform includes an Openstack cloud computing platform, the target container cluster management system includes Kubernetes, and the cloud platform deployment tool includes an Ansible deployment tool; The step of obtaining the target configuration corresponding to each business module in the target cloud platform and generating the template configuration file corresponding to each business module includes: Obtain the target configuration corresponding to each business module in the Openstack cloud computing platform, render the target configuration of any business module based on the variables of the Ansible deployment tool, and obtain the template configuration file of the business module, wherein the target configuration includes the common configuration, environment configuration and custom configuration of any business module; The step of determining, in response to the deployment operation, a target business module of the target cloud platform deployed in the target container cluster management system, and a role corresponding to any target business module in a deployment script of a cloud platform deployment tool, includes: In response to the first deployment operation, a target deployment configuration is determined, wherein the target deployment configuration includes the name of each target business module of the Openstack cloud computing platform deployed in the Kubernetes; in response to the second deployment operation, a role corresponding to each target business module in a deployment script of an Ansible deployment tool is determined; the target deployment configuration is assembled with an ansible-playbook deployment command of the Ansible deployment tool to obtain a deployment script playbook that takes any target business module as a role; The method of deploying each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target business module includes: Execute the deployment thread of any target business module in sequence according to the role deployment order in the deployment script playbook of the Ansible deployment tool; Among them, in the deployment thread of any target business module, when the Kuberneteshelm chart package format file corresponding to the target business module is detected and passed, a log directory corresponding to the target business module is created on each node in the Kubernetes, and the read and write permissions of the log directory are set; rendering is performed according to the template configuration file of the target business module to generate the target configuration parameters of the target business module in the Kubernetes; and the package management tool is called to deploy the target business module with the target configuration parameters in the Kubernetes.

8. A processing device for deploying a cloud platform, characterized in that: The device comprises: The acquisition module is used to obtain the target configuration corresponding to each business module in the target cloud platform and generate the template configuration file corresponding to each business module; A configuration module, configured to determine, in response to a deployment operation, a target business module of the target cloud platform deployed in a target container cluster management system, and a corresponding role of any target business module in a deployment script of a cloud platform deployment tool; The deployment module is used to deploy each target business module in the target container cluster management system according to the deployment script of the cloud platform deployment tool and the template configuration file corresponding to each target business module.

9. A computer device, characterized in that: include: At least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein when the processor executes the computer program, the processing method for deploying a cloud platform according to any one of claims 1-7 is executed.

10. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, wherein the computer program, when executed by a processor, executes the processing method for deploying a cloud platform according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Deployment method and device of cloud computing platform and storage medium

    CN112379934A

  • Deployment method of Openstack cloud platform and related device

    CN113708971A

  • Method, device and equipment for differentiated configuration of OpenStack cloud platform nodes and medium

    CN116208498A

  • Business cluster deployment method and device, electronic equipment, storage medium and product

    CN118295768A