Method and device for deploying service, and computer storable medium
By generating and executing target platform-specific deployment code, it automatically adapts to the deployment process, solving the problems of heavy workload for deployment personnel to obtain parameter values and poor platform security, and improving automation and efficiency.
Patent Information
- Application Number
- CN202110313309.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-03-24
AI Technical Summary
During the process of automated deployment services, deployers need to obtain and fill in parameter values related to the target platform, resulting in heavy workload, low efficiency and poor platform security.
By receiving the description information and target platform identification in the deployment request, the corresponding deployment code is generated and executed, automatically adapting to the target platform, reducing manual operations, improving automation and efficiency, and improving platform security through templated parameter acquisition and replacement. .
It realizes the automation of the deployment process, reduces the workload of deployment personnel, and improves the efficiency of deployment services and platform security.
Smart Images

Figure CN115129329B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for deploying services, and a computer storable medium. Background Art
[0002] Automated deployment services are usually used in scenarios such as application cloud migration, automated integration in DevOps (Development and Operations) processes, and environment construction in software development and evaluation processes.
[0003] In the related art, the deployer stores the deployment script of the service in advance on the target platform. Based on the deployment request initiated by the deployer, the target platform obtains and executes the deployment script to deploy the corresponding service on the target platform. The deployment script is developed by the deployer using the parameter values required to deploy the service. Summary of the invention
[0004] In the related art, the deployer needs to obtain the parameter values required for deploying the service, which results in a large workload for the deployer and a low efficiency of deploying the service. In addition, the parameter values are usually related to the target platform, and the deployer directly obtains the parameter values, which makes the platform security of the target platform poor.
[0005] In response to the above technical problems, the present disclosure proposes a solution that can not only automatically adapt the deployment process to the target platform and reduce the workload of deployment personnel, thereby improving the automation and efficiency of deployment services, but also improve the security of the platform.
[0006] According to a first aspect of the present disclosure, a method for deploying a service is provided, which is executed by a device for deploying a service, and includes: receiving a deployment request, the deployment request including description information of a deployment plan for deploying the service and an identifier of a target platform, the description information being obtained by filling parameter names for deploying the service and information of operations including the parameter names into corresponding positions in a description information template; generating a deployment code corresponding to the identifier of the target platform based on the description information, the deployment code being used to deploy the service on the target platform; and executing the deployment code to deploy the service on the target platform.
[0007] In some embodiments, generating a deployment code corresponding to the identifier of the target platform includes: obtaining a corresponding parameter value from the target platform according to the parameter name; and generating the deployment code according to the obtained parameter value and information of the operation.
[0008] In some embodiments, there are multiple parameter names, and there are one or more operations. The information of each operation includes an operation identifier of the operation. The deployment code includes a deployment code snippet corresponding to each operation. Based on the obtained parameter values and the operation information, generating the deployment code includes: for each operation, obtaining a template of a deployment code snippet corresponding to the operation identifier and an identifier of the target platform, the template of the deployment code snippet including at least one of multiple parameter names; generating a deployment code snippet corresponding to each operation based on the obtained parameter values and the obtained deployment code snippet template; and encapsulating one or more deployment code snippets of operations to obtain the deployment code.
[0009] In some embodiments, generating a deployment code snippet corresponding to each operation based on the obtained parameter values and the obtained deployment code snippet template includes: for each operation, obtaining the parameter name in the template of the corresponding deployment code snippet; filtering parameter values corresponding to the parameter names in the template of the deployment code snippet from the obtained parameter values; and replacing the corresponding parameter names in the template of the deployment code snippet with the filtered parameter values to obtain the deployment code snippet corresponding to each operation.
[0010] In some embodiments, when there are multiple operations, the operation information also includes the execution order of the multiple operations, encapsulating the deployment code fragments of the one or more operations, and obtaining the deployment code includes: encapsulating the deployment code fragments of the multiple operations according to the execution order to obtain the deployment code.
[0011] In some embodiments, the template for deploying the code snippet is installed in the device in the form of a plug-in.
[0012] In some embodiments, the target platform pre-stores a correspondence between parameter names and parameter values, and obtaining corresponding parameter value information from the target platform includes: obtaining the parameter value corresponding to the parameter name according to the correspondence.
[0013] In some embodiments, the deployment code is an executable code or a script code. When the deployment code is an executable code, the executable code is directly executed; when the deployment code is a script code, a deployment tool corresponding to the identifier of the target platform is called to execute the script code.
[0014] In some embodiments, the parameter name includes a parameter name corresponding to an IP address, a parameter name corresponding to an account name used to log in to a target platform, and a parameter name corresponding to a file transfer address, and the operation includes an operation of transferring a file and an operation of executing a specified command.
[0015] In some embodiments, the method for deploying services further includes: storing a correspondence between a solution identifier of the deployment solution, a deployment status, and a deployment result.
[0016] In some embodiments, the description information template is represented by a lightweight data exchange format.
[0017] According to a second aspect of the present disclosure, a device for deploying a service is provided, comprising: a receiving module, configured to receive a deployment request, the deployment request including description information of a deployment plan for deploying the service and an identifier of a target platform, the description information being obtained by filling parameter names for deploying the service and information of operations including the parameter names into corresponding positions in a description information template; a generating module, configured to generate a deployment code corresponding to the identifier of the target platform based on the description information, the deployment code being used to deploy the service on the target platform; and an executing module, configured to execute the deployment code to deploy the service in the target platform.
[0018] According to a third aspect of the present disclosure, a device for deploying services is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method for deploying services described in any of the above embodiments based on instructions stored in the memory.
[0019] According to a fourth aspect of the present disclosure, a computer storable medium is provided, on which computer program instructions are stored, and when the instructions are executed by a processor, the method for deploying services described in any of the above embodiments is implemented.
[0020] In the above embodiment, not only can the deployment process be automatically adapted to the target platform, reducing the workload of deployment personnel, thereby improving the automation level and deployment efficiency of the deployment service, but also the security of the platform can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0023] Figure 1 is a flowchart illustrating a method of deploying a service according to some embodiments of the present disclosure;
[0024] Figure 2 is a flowchart illustrating generation of deployment code corresponding to an identification of a target platform according to some embodiments of the present disclosure;
[0025] Figure 3is a block diagram illustrating an apparatus for deploying services according to some embodiments of the present disclosure;
[0026] Figure 4 is a block diagram showing an apparatus for deploying services according to other embodiments of the present disclosure;
[0027] Figure 5 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0028] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0029] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0030] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0031] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0032] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0033] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0034] Figure 1 is a flowchart illustrating a method of deploying a service according to some embodiments of the present disclosure.
[0035] like Figure 1 As shown, the method for deploying services includes steps S110 to S130. The method for deploying services is executed by a device for deploying services.
[0036] In step S110, a deployment request is received. The deployment request includes description information of a deployment scheme for deploying the service and an identifier of a target platform for deploying the service. For example, the deployment request may be received via an HTTP (HyperText TransferProtocol) service interface or a RESTful interface. A RESTful interface is an interface that complies with the REST (Representational State Transfer) principle.
[0037] The description information is obtained by filling the parameter name used to deploy the service and the information of the operation including the parameter name into the corresponding position in the description information template. For example, the service includes but is not limited to application and system.
[0038] For example, the parameter names include parameter names corresponding to IP (Internet Protocol) addresses (for example, the parameter name hostip representing the host IP address of the target platform), parameter names corresponding to account names used to log in to the target platform (for example, the parameter name nodeA_admin representing the account of node A on the target platform), and parameter names corresponding to file transfer addresses (for example, the parameter name path representing the file transfer address).
[0039] For example, the operation includes an operation of transferring a file and an operation of executing a specified command. The specified command includes a command related to a precondition or a predependency.
[0040] In some embodiments, the description information template is represented by a lightweight data exchange format. For example, the description information template is represented by JSON (JavaScript Object Notation) format. The lightweight data exchange format represents the description information template, which can provide a structured, easy-to-understand template for the deployer, so that the deployer does not need to learn more development knowledge in depth, further reducing the workload of the deployer. For example, the description information template is written by a developer and provided to the deployer.
[0041] For example, a portion of a description information template in JSON format is shown below:
[0042] {
[0043] “Param”:
[0044] {"IP_ADDR":"","username":"","uploadPath":"",...},
[0045] “upload”:
[0046] {"nodetype":"","files":"","uploadPath":""...},
[0047] …
[0048] }.
[0049] In the above description information template, the "Param" item defines some parameter name keys, which is convenient for the deployer to fill in the corresponding parameter name in the value part to form a complete key-value pair. "IP_ADDR" means the IP address, and the parameter name corresponding to the IP address is filled after the colon. "username" means the account name for logging into the target platform, and the parameter name corresponding to the account name for logging into the target platform is filled after the colon. "uploadPath" means the file transfer address of the uploaded file, and the parameter name corresponding to the file transfer address of the uploaded file is filled after the colon.
[0050] The "upload" item defines an operation for transferring files, which specifically involves transferring files to a specific type of node on the target platform. "upload" is the name of the operation. "nodetype" means the node type on which the target platform receives the transferred files, and the number after the colon is the node type on which the target platform receives the transferred files. "files" means the names of the files transferred to the target platform, and the number after the colon is the names of the files transferred to the target platform. The files transferred to the target platform can be pre-stored in the local memory of the device that deploys the service, and retrieved from the local memory of the device that deploys the service based on the name of the file. In addition, the operation defined in the "upload" item also uses part of the parameter name defined in the "Param" item.
[0051] It should be understood that the above description information template only shows a part of the content, and the deployer can also add or delete it according to the instruction document and the actual deployment situation.
[0052] After the deployer understands the meaning of the description information template, they can fill in the description information as follows:
[0053] {
[0054] “Param”:
[0055] {"IP_ADDR":"hostip","username":"nodeA_admin","uploadPath":"path",...},
[0056] “upload”:
[0057] {"nodetype":"master","files":"images.tar.gz","uploadPath":"path"...},
[0058] …
[0059] }.
[0060] In step S120, a deployment code corresponding to the identifier of the target platform is generated according to the description information. The deployment code is used to deploy services on the target platform. In some embodiments, the deployment code may be a binary executable code or a script code. For example, when the target platform is a Kubernetes-based platform, the deployment code corresponding to the target platform may be a script code in a chart format or a script code in a yaml format. For another example, when the target platform is an Openstack-based platform, the deployment code corresponding to the target platform may be a series of shell execution commands or a binary executable code or a script code in a playbook format.
[0061] For example, by Figure 2 The above step S120 is implemented in the manner shown.
[0062] Figure 2 is a flowchart illustrating generating a deployment code corresponding to an identification of a target platform according to some embodiments of the present disclosure.
[0063] like Figure 2 As shown, generating the deployment code corresponding to the identifier of the target platform includes steps S121 and S122.
[0064] In step S121, the corresponding parameter value is obtained from the target platform according to the parameter name. For example, the device for deploying the service obtains the access address (port address, interface address or Internet protocol address, etc.) of the target platform according to the identifier of the target platform. The device for deploying the service sends a parameter value request to the target platform, and the parameter value request includes the parameter name. Thus, the device for deploying the service receives parameter value response information from the target platform. The parameter value response information is response information generated by the target platform according to the parameter value request and includes the parameter value corresponding to the parameter name.
[0065] In some embodiments, the target platform pre-stores a correspondence between parameter names and parameter values, and the parameter value corresponding to the parameter name can be obtained according to the correspondence.
[0066] In the above embodiment, the device for deploying the service obtains the parameter value from the target platform according to the parameter name, without exposing the parameter value information to the deployer, thereby improving the security of the platform.
[0067] In step S122, a deployment code is generated according to the acquired parameter values and operation information.
[0068] In some embodiments, the parameter name is multiple. The operation is one or more. The information of each operation includes the operation identifier of the operation. For example, the operation identifier is the operation name. The deployment code includes a deployment code snippet corresponding to each operation.
[0069] For example, the above step S122 may be implemented in the following manner.
[0070] First, for each operation, a template of a deployment code snippet corresponding to the operation identifier and the identifier of the target platform is obtained. The template of the deployment code snippet includes at least one of a plurality of parameter names. In some embodiments, the template of the deployment code snippet can be installed in the device for deploying the service in the form of a plug-in. In this way, the scalability of the device for deploying the service can be improved.
[0071] Then, a deployment code snippet corresponding to each operation is generated according to the obtained parameter value and the obtained deployment code snippet template.
[0072] In some embodiments, for each operation, a parameter name in a template of a corresponding deployment code snippet is obtained. From the obtained parameter values, a parameter value corresponding to the parameter name in the template of the deployment code snippet is filtered. The filtered parameter value is used to replace the corresponding parameter name in the template of the deployment code snippet to obtain a deployment code snippet corresponding to each operation.
[0073] Finally, the deployment code snippets of one or more operations are encapsulated to obtain the deployment code. For example, in the case where there are multiple operations, the operation information also includes the execution order of the multiple operations. The deployment code snippets of the multiple operations can be encapsulated according to the execution order to obtain the deployment code.
[0074] return Figure 1, in step S130, the deployment code is executed to deploy the service in the target platform. In the case where the deployment code is an executable code, the executable code is executed directly. In the case where the deployment code is a script code, the deployment tool corresponding to the identifier of the target platform is called to execute the script code. For example, in the case where the target platform is a Kubernetes-based platform, the deployment tools corresponding to the target platform include Helm, Kubectl, etc. The deployment tool Helm is used to execute script code in chart format. The deployment tool Kubectl is used to execute script code in yaml format. For another example, in the case where the target platform is an Openstack-based platform, the deployment tools corresponding to the target platform include Ansible, etc. The deployment tool Ansible is used to execute script code in playbook format.
[0075] In the above embodiment, by providing a description information template, the description information can be obtained by simply filling the parameter name and the information of the operation including the parameter name into the description information template, without the need to generate description information in different formats according to different target platforms. In addition, the device for deploying the service automatically generates a deployment code corresponding to the target platform, and automatically calls the deployment tool corresponding to the target platform to execute the generated deployment code. These steps enable the deployment process to automatically adapt to the target platform, reduce the workload of the deployment personnel, and thus improve the degree of automation and deployment efficiency of the deployment service. In addition, in the process of deploying the service, there is no need to expose the parameter value information related to the target platform to the deployment personnel, which can improve the security of the platform.
[0076] In some embodiments, the device for deploying the service may be independent of the target platform. That is, the device for deploying the service may deploy the service to different target platforms, which may improve the versatility of the deployed service. In other embodiments, the device for deploying the service is located in the target platform. This may reduce the exposure of the target platform and further improve the security of the platform.
[0077] For example, the device for deploying the service may also store the scheme identifier of the deployment scheme, the corresponding relationship between the deployment state and the deployment result. In this way, the deployment of the service can be conveniently monitored.
[0078] Figure 3 is a block diagram illustrating an apparatus for deploying services according to some embodiments of the present disclosure.
[0079] like Figure 3 As shown, the device 3 for deploying services includes a receiving module 31 , a generating module 32 and an executing module 33 .
[0080] The receiving module 31 is configured to receive a deployment request, for example, Figure 1Step S110 is shown. The deployment request includes description information of the deployment scheme and the identifier of the target platform for deploying the service. The description information is obtained by filling the parameter name for deploying the service and the information of the operation including the parameter name into the corresponding position in the description information template.
[0081] The generation module 32 is configured to generate a deployment code corresponding to the identifier of the target platform according to the description information, for example, Figure 1 Step S120 is shown. The deployment code is used to deploy the service on the target platform.
[0082] The execution module 33 is configured to execute the deployment code to deploy the service in the target platform, for example, Figure 1 Step S130 is shown.
[0083] Figure 4 is a block diagram illustrating an apparatus for deploying services according to some other embodiments of the present disclosure.
[0084] like Figure 4 As shown, the device 4 for deploying services includes a memory 41; and a processor 42 coupled to the memory 41. The memory 41 is used to store instructions for executing the method for deploying services corresponding to the embodiment. The processor 42 is configured to execute the method for deploying services in any of the embodiments of the present disclosure based on the instructions stored in the memory 41.
[0085] Figure 5 is a block diagram illustrating a computer system for implementing some embodiments of the present disclosure.
[0086] like Figure 5 As shown, the computer system 50 may be embodied in the form of a general purpose computing device. The computer system 50 includes a memory 510, a processor 520, and a bus 500 that connects the various system components.
[0087] The memory 510 may include, for example, a system memory, a non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs. The system memory may include a volatile storage medium, such as a random access memory (RAM) and / or a cache memory. The non-volatile storage medium may store, for example, instructions for executing at least one of the corresponding embodiments of the method for deploying a service. The non-volatile storage medium may include, but is not limited to, a disk storage, an optical storage, a flash memory, etc.
[0088] The processor 520 can be implemented by a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistors, etc. Discrete hardware components. Accordingly, each module such as the judgment module and the determination module can be implemented by a central processing unit (CPU) running instructions in a memory that execute corresponding steps, or can be implemented by a dedicated circuit that executes corresponding steps.
[0089] The bus 500 may use any of a variety of bus architectures, including, but not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, and a Peripheral Component Interconnect (PCI) bus.
[0090] The computer system 50 may also include an input / output interface 530, a network interface 540, a storage interface 550, etc. These interfaces 530, 540, 550, the memory 510, and the processor 520 may be connected via a bus 500. The input / output interface 530 may provide a connection interface for input / output devices such as a display, a mouse, and a keyboard. The network interface 540 may provide a connection interface for various networked devices. The storage interface 550 may provide a connection interface for external storage devices such as a floppy disk, a USB flash drive, and an SD card.
[0091] Here, various aspects of the present disclosure are described with reference to flowcharts and / or block diagrams of methods, devices, and computer program products according to embodiments of the present disclosure. It should be understood that each frame of the flowchart and / or block diagram and the combination of frames can be implemented by computer-readable program instructions.
[0092] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable device to produce a machine, so that the processor executes the instructions to produce means for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0093] These computer-readable program instructions may also be stored in a computer-readable memory, which cause the computer to work in a specific manner to produce an article of manufacture, including instructions for implementing the functions specified in one or more blocks in the flowchart and / or block diagram.
[0094] The present disclosure can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
[0095] Through the method and device for deploying services and the computer-storable medium in the above embodiments, not only can the deployment process be automatically adapted to the target platform, reducing the workload of deployment personnel, thereby improving the automation and efficiency of deployment services, but also the security of the platform can be improved.
[0096] So far, the method and device for deploying services according to the present disclosure, and the computer storable medium have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
Claims
1. A method for deploying a service, performed by a device for deploying a service, comprising: receiving a deployment request, the deployment request including description information of a deployment scheme for deploying the service and an identifier of a target platform, the description information being obtained by filling a parameter name for deploying the service and information of an operation including the parameter name into a corresponding position in a description information template; Generating, according to the description information, a deployment code corresponding to the identifier of the target platform, wherein the deployment code is used to deploy the service on the target platform, including: According to the parameter name, obtaining a corresponding parameter value from the target platform; Generate the deployment code according to the acquired parameter value and the operation information, wherein the parameter name is multiple, the operation is one or more, the information of each operation includes the operation identifier of the operation, and the deployment code includes a deployment code snippet corresponding to each operation. Generate the deployment code according to the acquired parameter value and the operation information, including: For each operation, obtaining a template of a deployment code snippet corresponding to the operation identifier and the identifier of the target platform, wherein the template of the deployment code snippet includes at least one of a plurality of parameter names; Generate a deployment code snippet corresponding to each operation according to the obtained parameter value and the obtained deployment code snippet template; Encapsulate one or more deployment code snippets of operations to obtain the deployment code; The deployment code is executed to deploy the service in the target platform.
2. The method for deploying services according to claim 1, wherein: Generating a deployment code snippet corresponding to each operation according to the acquired parameter value and the acquired deployment code snippet template includes: For each operation, obtain the parameter name in the template of the corresponding deployment code snippet; From the obtained parameter values, filter the parameter values corresponding to the parameter names in the template of the deployment code snippet; The filtered parameter values are used to replace corresponding parameter names in the template of the deployment code snippet to obtain a deployment code snippet corresponding to each operation.
3. The method for deploying services according to claim 1, wherein: In the case where there are multiple operations, the operation information also includes the execution order of the multiple operations, and the deployment code fragments encapsulating the one or more operations are obtained to include: According to the execution order, the deployment code fragments of the multiple operations are encapsulated to obtain the deployment code.
4. The method for deploying services according to claim 1, wherein: The template for deploying the code snippet is installed in the device in the form of a plug-in.
5. The method for deploying services according to claim 1, wherein: The target platform pre-stores a correspondence between parameter names and parameter values, and obtaining corresponding parameter value information from the target platform includes: According to the corresponding relationship, the parameter value corresponding to the parameter name is obtained.
6. The method for deploying services according to claim 1, wherein: The deployment code is an executable code or a script code. When the deployment code is an executable code, directly executing the executable code; In the case where the deployment code is a script code, a deployment tool corresponding to the identifier of the target platform is called to execute the script code.
7. The method for deploying services according to claim 1, wherein: The parameter names include parameter names corresponding to IP addresses, parameter names corresponding to account names used to log in to the target platform, and parameter names corresponding to file transfer addresses. The operations include file transfer operations and execution of specified commands.
8. The method for deploying services according to claim 1, further comprising: The corresponding relationship between the solution identifier, deployment status and deployment result of the deployment solution is stored.
9. The method for deploying services according to claim 1, wherein: The description information template is expressed in a lightweight data exchange format.
10. A device for deploying a service, comprising: A receiving module is configured to receive a deployment request, wherein the deployment request includes description information of a deployment scheme for deploying the service and an identifier of a target platform, wherein the description information is obtained by filling a parameter name for deploying the service and information of an operation including the parameter name into a corresponding position in a description information template; A generation module is configured to generate a deployment code corresponding to the identifier of the target platform according to the description information, wherein the deployment code is used to deploy the service on the target platform, including: According to the parameter name, obtaining a corresponding parameter value from the target platform; Generate the deployment code according to the acquired parameter value and the operation information, wherein the parameter name is multiple, the operation is one or more, the information of each operation includes the operation identifier of the operation, and the deployment code includes a deployment code snippet corresponding to each operation. Generate the deployment code according to the acquired parameter value and the operation information, including: For each operation, obtaining a template of a deployment code snippet corresponding to the operation identifier and the identifier of the target platform, wherein the template of the deployment code snippet includes at least one of a plurality of parameter names; Generate a deployment code snippet corresponding to each operation according to the obtained parameter value and the obtained deployment code snippet template; Encapsulate one or more deployment code snippets of operations to obtain the deployment code; The execution module is configured to execute the deployment code to deploy the service in the target platform.
11. A device for deploying a service, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the method for deploying services according to any one of claims 1 to 9 based on instructions stored in the memory.
12. A computer storable medium having computer program instructions stored thereon, wherein the instructions, when executed by a processor, implement the method for deploying services as claimed in any one of claims 1 to 9.
