Implementation method and system for graphical template type cloud native transformation

Through the graphical template-based cloud native transformation method, the container resource template engine and graphical tools are used to simplify container resource settings, solving the problems of high writing difficulty and high error rate in the existing technology, and achieving efficient container resource writing and continuous deployment. automation.

CN118760426APending Publication Date: 2024-10-11SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410799999.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In the existing technology, containerization and container orchestration require developers to learn multiple tools and configuration parameters and manually write resource definition files, which results in high writing difficulty, high error rate, and cumbersome repetitive configuration.

Method used

Provides a graphical template-based cloud native transformation method. Through the container resource template engine and graphical tools, it supports custom templates and parameterized configurations, simplifies container resource settings, adopts drag-and-drop orchestration and visual YAML methods, and combines CI/CD systems Automate publishing to reduce writing difficulty and error rate.

Benefits of technology

It significantly reduces the difficulty and error rate of container resource writing, improves writing efficiency, simplifies parameter configuration, realizes the automation of continuous deployment, and reduces repetitive configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760426A_ABST
    Figure CN118760426A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of cloud native, in particular to a graphical template type cloud native transformation implementation method and system, and the method comprises the following steps: providing a container resource template engine, supporting the user-defined template identifier and resource grouping, internally arranging a workload, a service, a storage and a configuration template, and supporting the generation of specific container resources based on parameters; a form type graphical tool, a visual YAML type graphical tool and a dragging type graphical tool are provided, and setting of container resources through visual selection and configuration modes is supported; an extension module is provided to support docking of a CI / CD system, mirror image basic data is obtained from the extension module, generated resources are published, and the automation level of DevOps is improved; the graphical template type cloud native transformation implementation method and system have the beneficial effects that the compiling difficulty of the container resources can be further reduced through the method of generating the container resources by the template engine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud native technology, and specifically to a method and system for implementing a graphical template-based cloud native transformation. Background Art

[0002] The rapid iteration and large-scale replication capabilities of cloud native technology can fully utilize the elasticity and distribution advantages of the cloud platform to build and run efficient and stable applications, playing a vital role in maintaining system stability, quickly responding to the market, and accelerating business growth.

[0003] In the existing technology, the implementation methods of containerization and container orchestration are relatively mature, and many containerization tools are widely used. However, developers still need to learn how to use various tools, understand the configuration of many parameters, and manually write many resource definition files to complete containerization and container orchestration. Summary of the invention

[0004] The purpose of the present invention is to provide a graphical template-based cloud native transformation implementation method and system to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for implementing a graphical template-based cloud native transformation, the method comprising the following steps:

[0006] Provides a container resource template engine that supports custom template identifiers and resource groupings, built-in workload, service, storage, and configuration templates, and supports the generation of specific container resources based on parameters;

[0007] Provides form-based, visual YAML-based, and drag-and-drop graphical tools, supporting the setting of container resources through visual selection and configuration;

[0008] Provides extension modules to support docking with CI / CD systems, obtain basic image data from them, publish generated resources, and improve the level of DevOps automation.

[0009] Preferably, workload, service, storage, and configuration templates are provided, and container resources that dynamically change according to usage scenarios are made into resource templates. Then, input parameters and their parameter values ​​are used to render through the template engine, and finally available resources are generated. Customized resources are converted into templates through template definition rules and added to the template engine.

[0010] Provide parameterized + default value configuration, generate resources through parameterized configuration, the template engine is responsible for rendering the parameter values ​​​​into the template, and finally generate the required resources. The template engine will only render the passed parameters when rendering, and other parameters use the default values, so that users only need to care about the content they want to change, simplifying the setting content.

[0011] Preferably, a form-based setting method is provided, providing a selection method to replace the full amount of input, simplifying the content of parameter configuration and improving the efficiency of users;

[0012] Provides a visual YAML setting method, provides switching between different setting methods, and allows users to choose a more convenient setting method between the form and YAML. Different setting methods play a better role in different usage scenarios.

[0013] Provides a visual display method for generated content and a resource content display tool for resource groups. The generated resources are aggregated and grouped according to resource groups. For the generated resources, resource content display is provided in the resource group dimension, which is helpful for users to check the settings of the entire resource group in general.

[0014] It provides a drag-and-drop orchestration method and a visual orchestration tool to maintain the dependencies between resource groups. It supports persisting the dependencies to the corresponding container resources. The orchestration tool automatically generates visual dependencies in the orchestration function based on the dependencies declared in each resource group. It supports generating deployment architecture diagrams and generates deployment architectures formed by multiple resource groups through dependencies.

[0015] Preferably, an extension module is provided, and an event mode is adopted. The event mode is widely used in the implementation of the extension mechanism. It complies with the open-closed principle, and the event mode is applied to the cloud-native transformed device to realize the integration of the device with other systems and form a full-process business system.

[0016] Preferably, basic configuration management is provided, by defining a basic configuration management module, including two modes: API configuration and implementation class configuration; API configuration directly configures the RESTful API to provide basic configuration data; implementation class configuration is used in scenarios where the existing RESTful API does not meet the data format requirements of the device, and data is flexibly set by customizing the implementation class; through the basic configuration management module, basic data such as images are obtained from the CI / CD system to further simplify resource configuration;

[0017] Provide resource release by defining resource release modules, including API configuration and implementation class configuration. Through the resource release module, the configured resources are applied to the CI / CD system to achieve continuous deployment of defined resources.

[0018] A graphical template-based cloud native transformation implementation system, the system consisting of a container resource generation module, a container resource setting module, and a resource publishing module;

[0019] The container resource generation module provides a container resource template engine, supports custom template identifiers and resource grouping, has built-in workload, service, storage, and configuration templates, and supports the generation of specific container resources based on parameters.

[0020] The container resource setting module provides form-based, visual YAML-based, and drag-and-drop graphical tools, and supports setting container resources through visual selection and configuration.

[0021] The resource publishing module provides extension modules to support docking with the CI / CD system, from which the basic image data can be obtained, and the generated resources can be published to improve the level of DevOps automation.

[0022] Preferably, the container resource generation module provides workload, service, storage, and configuration templates, and makes container resources that dynamically change according to usage scenarios into resource templates, and then uses input parameters and their parameter values ​​to render through the template engine, and finally generates available resources, and converts customized resources into templates through template definition rules and adds them to the template engine;

[0023] Provide parameterized + default value configuration, generate resources through parameterized configuration, the template engine is responsible for rendering the parameter values ​​​​into the template, and finally generate the required resources. The template engine will only render the passed parameters when rendering, and other parameters use the default values, so that users only need to care about the content they want to change, simplifying the setting content.

[0024] Preferably, the container resource setting module provides a form-based setting method, provides a selection method, replaces the full amount of input, simplifies the content of parameter configuration, and improves the efficiency of users;

[0025] Provides a visual YAML setting method, provides switching between different setting methods, and allows users to choose a more convenient setting method between the form and YAML. Different setting methods play a better role in different usage scenarios.

[0026] Provides a visual display method for generated content and a resource content display tool for resource groups. The generated resources are aggregated and grouped according to resource groups. For the generated resources, resource content display is provided in the resource group dimension, which is helpful for users to check the settings of the entire resource group in general.

[0027] It provides a drag-and-drop orchestration method and a visual orchestration tool to maintain the dependencies between resource groups. It supports persisting the dependencies to the corresponding container resources. The orchestration tool automatically generates visual dependencies in the orchestration function based on the dependencies declared in each resource group. It supports generating deployment architecture diagrams and generates deployment architectures formed by multiple resource groups through dependencies.

[0028] Preferably, the container resource setting module provides an extension module and adopts an event mode. The event mode is widely used in the implementation of the extension mechanism. It complies with the open-closed principle and applies the event mode to the cloud-native transformed device to realize the integration of the device with other systems and form a full-process business system.

[0029] Preferably, the resource publishing module provides basic configuration management, which includes two modes: API configuration and implementation class configuration by defining a basic configuration management module; API configuration directly configures the RESTful API to provide basic configuration data; implementation class configuration is used in scenarios where the existing RESTful API does not meet the data format requirements of the device, and data is flexibly set by customizing the implementation class; through the basic configuration management module, basic data such as images are obtained from the CI / CD system to further simplify resource configuration;

[0030] Provide resource release by defining resource release modules, including API configuration and implementation class configuration. Through the resource release module, the configured resources are applied to the CI / CD system to achieve continuous deployment of defined resources.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] The graphical template-based cloud-native transformation implementation method and system proposed in the present invention can further reduce the difficulty of writing container resources by generating container resources through a template engine; it can also provide more convenience for container resource writing through built-in workload, service, storage, configuration and other templates; through a graphical drag-and-drop method of defining container resources, the error rate of container resource writing can be reduced compared to manual writing, and the writing efficiency can be improved; by expanding the mechanism of docking with other systems such as CI / CD, on the one hand, the parameter setting of resource configuration can be simplified, and on the other hand, the defined container resources can be applied in the continuous deployment, which can greatly reduce repetitive configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] Embodiment 1

[0036] See also Figure 1 The present invention provides a technical solution: a method for implementing a graphical template-based cloud native transformation, the method comprising the following steps:

[0037] Step 1: Provide a container resource template engine that supports custom template identifiers and resource groupings, built-in workload, service, storage, configuration and other templates, and supports the generation of specific container resources based on parameters.

[0038] (1) Provide a container resource template engine. Template engines have been widely used in many scenarios and provide a friendly implementation method for dynamically generating content. There are also many template engine implementations under different technical platforms, providing multiple options for dynamic content generation needs. You can choose the most suitable template engine implementation according to the usage scenario.

[0039] (2) Supports customization of template identifiers. Container orchestration tools often have built-in template engines for sharing configurations among multiple resources. Template engines provide the function of customizing identifiers, which can be compatible with built-in template engines of different container orchestration tools. For example, in container orchestration tools, template variables are defined using "{{" and "}}" and the content between them. In the template engine, you can customize the variables of the template engine by using "X{{" and "}}" and the content between them.

[0040] apiVersion:apps / v1

[0041] kind:Deployment

[0042] metadata:

[0043] name:X{{.resourceName}}

[0044] namespace:{{.Values.namespace}}

[0045] (3) The template engine provides an isolation function based on resource groups. It can define personalized configurations such as identifiers on resource groups. The configurations of different resource groups are logically isolated. It can support flexible custom configuration methods and set exclusive configurations on different resource groups.

[0046] (4) Provide templates for workloads, services, storage, configuration, etc. Container resources and other resources that need to change dynamically according to the usage scenario are made into resource templates, and then the input parameters and their parameter values ​​are used to render through the template engine to finally generate available resources. Customized resources can also be converted into templates through template definition rules and added to the template engine.

[0047] (5) Provide parameterized + default value configuration. Generate resources through parameterized configuration. The template engine is responsible for rendering the parameter values ​​into the template and finally generating the required resources. When rendering, the template engine will only render the passed parameters, and other parameters use the default values. This allows users to only care about the content they want to change, simplifying the setting content.

[0048] Step 2: Provides form-based, visual YAML-based, drag-and-drop and other graphical tools, supports setting and checking container resources through visual selection and configuration, and supports two-way configuration of resources.

[0049] (1) Provide a form-based setting method. Providing a selection method (single selection, multiple selection, drop-down box selection, etc.) instead of full input can simplify the parameter configuration content and improve the efficiency of users. At the same time, the selection method does not require users to remember all the complex parameters and parameter values, which can reduce the complexity of configuration.

[0050] (2) Provide a visual YAML setting method. Provide a switch between different setting methods, and be able to choose a more convenient setting method between the form and YAML. Different setting methods can play a better role in different usage scenarios. Compared with the form-based setting method, which is suitable for configuration settings, the YAML method is more suitable for configuration checking.

[0051] (3) Provide a visual display method for generated content. Provide a resource group resource content display tool to aggregate and group generated resources according to resource groups. For generated resources, provide resource content display in the resource group dimension, which is helpful for users to check the overall setting of the entire resource group.

[0052] (4) Provide a drag-and-drop orchestration method. Provide a visual orchestration tool that can maintain the dependencies between resource groups and support persisting the dependencies to the corresponding container resources. At the same time, the orchestration tool can automatically generate visual dependencies in the orchestration function based on the dependencies declared in each resource group. Support the generation of deployment architecture diagrams, and generate deployment architectures formed by multiple resource groups through dependencies.

[0053] Step 3: Provide extension modules to support docking with CI / CD systems, from which you can obtain basic data such as images, and publish generated resources to them, thereby improving the level of DevOps automation.

[0054] (1) Provide extension modules. The event mode is widely used in the implementation of extension mechanisms and complies with the open-closed principle. Applying the event mode to cloud-native devices can realize the integration of the device with other systems to form a full-process business system.

[0055] (2) Provide a basic configuration management module. By defining a basic configuration management module, it includes two methods: API configuration and implementation class configuration. API configuration can directly configure the RESTful API to provide basic configuration data; implementation class configuration is used in scenarios where the existing RESTful API does not meet the data format requirements of this device, and data can be flexibly set by customizing the implementation class. Through the basic configuration management module, basic data such as images can be obtained from the CI / CD system to further simplify resource configuration.

[0056] (3) Provide a resource publishing module. By defining a resource publishing module, there are two ways: API configuration and implementation class configuration. Through the resource publishing module, the configured resources can be applied to the CI / CD system to achieve continuous deployment of defined resources.

[0057] Embodiment 2

[0058] Based on the first embodiment, a graphical template-based cloud native transformation implementation system is proposed, which consists of a container resource generation module, a container resource setting module, and a resource publishing module;

[0059] The container resource generation module provides a container resource template engine, supports custom template identifiers and resource grouping, has built-in workload, service, storage, and configuration templates, and supports parameter-based generation of specific container resources; provides workload, service, storage, and configuration templates, and makes container resources that dynamically change according to usage scenarios into resource templates, and then uses input parameters and their parameter values ​​to render through the template engine to finally generate available resources. Through template definition rules, custom resources are converted into templates and added to the template engine;

[0060] Provide parameterized + default value configuration, generate resources through parameterized configuration, the template engine is responsible for rendering the parameter values ​​​​into the template, and finally generate the required resources. The template engine will only render the passed parameters when rendering, and other parameters use the default values, so that users only need to care about the content they want to change, simplifying the setting content.

[0061] The container resource setting module provides form-based, visual YAML-based, and drag-and-drop graphical tools, and supports the setting of container resources through visual selection and configuration. It provides form-based setting methods and selection methods to replace full input, simplify parameter configuration content, and improve user efficiency.

[0062] Provides a visual YAML setting method, provides switching between different setting methods, and allows users to choose a more convenient setting method between the form and YAML. Different setting methods play a better role in different usage scenarios.

[0063] Provides a visual display method for generated content and a resource content display tool for resource groups. The generated resources are aggregated and grouped according to resource groups. For the generated resources, resource content display is provided in the resource group dimension, which is helpful for users to check the settings of the entire resource group in general.

[0064] It provides a drag-and-drop orchestration method and a visual orchestration tool to maintain the dependencies between resource groups. It supports persisting the dependencies to the corresponding container resources. The orchestration tool automatically generates visual dependencies in the orchestration function based on the dependencies declared in each resource group. It supports generating deployment architecture diagrams and generates deployment architectures formed by multiple resource groups through dependencies.

[0065] Provide extension modules and adopt event mode. Event mode is widely used in the implementation of extension mechanism. It complies with the open-closed principle and applies event mode to cloud-native transformed devices to realize the integration of this device with other systems and form a full-process business system.

[0066] The resource publishing module provides an extension module to support docking with the CI / CD system, from which the basic image data is obtained, and the generated resources are published to improve the level of DevOps automation; it provides basic configuration management, by defining the basic configuration management module, including two methods: API configuration and implementation class configuration; API configuration directly configures the RESTful API to provide basic configuration data; implementation class configuration is used in scenarios where the existing RESTful API does not meet the data format requirements of this device, and data can be flexibly set by customizing the implementation class; through the basic configuration management module, basic data such as images are obtained from the CI / CD system to further simplify resource configuration;

[0067] Provide resource release by defining resource release modules, including API configuration and implementation class configuration. Through the resource release module, the configured resources are applied to the CI / CD system to achieve continuous deployment of defined resources.

[0068] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A graphical template-based cloud native transformation implementation method, characterized by: The method comprises the following steps: Provides a container resource template engine that supports custom template identifiers and resource groupings, built-in workload, service, storage, and configuration templates, and supports the generation of specific container resources based on parameters; Provides form-based, visual YAML-based, and drag-and-drop graphical tools, supporting the setting of container resources through visual selection and configuration; Provides extension modules to support docking with CI / CD systems, obtain basic image data from them, publish generated resources, and improve the level of DevOps automation.

2. According to claim 1, a method for implementing a graphical template-based cloud native transformation is characterized by: Provide workload, service, storage, and configuration templates, and make container resources that change dynamically according to usage scenarios into resource templates. Then use input parameters and their parameter values ​​to render through the template engine to finally generate available resources. Define rules in the template to convert customized resources into templates and add them to the template engine. Provide parameterized + default value configuration, generate resources through parameterized configuration, the template engine is responsible for rendering the parameter values ​​​​into the template, and finally generate the required resources. The template engine will only render the passed parameters when rendering, and other parameters use the default values, so that users only need to care about the content they want to change, simplifying the setting content.

3. According to claim 1, a method for implementing a graphical template-based cloud native transformation is characterized by: Provides a form-based setting method and a selection method to replace full input, simplify parameter configuration content, and improve user efficiency; Provides a visual YAML setting method, provides switching between different setting methods, and allows users to choose a more convenient setting method between the form and YAML. Different setting methods play a better role in different usage scenarios. Provides a visual display method for generated content and a resource content display tool for resource groups. The generated resources are aggregated and grouped according to resource groups. For the generated resources, resource content display is provided in the resource group dimension, which is helpful for users to check the settings of the entire resource group in general. It provides a drag-and-drop orchestration method and a visual orchestration tool to maintain the dependencies between resource groups. It supports persisting the dependencies to the corresponding container resources. The orchestration tool automatically generates visual dependencies in the orchestration function based on the dependencies declared in each resource group. It supports generating deployment architecture diagrams and generates deployment architectures formed by multiple resource groups through dependencies.

4. The method for implementing a graphical template-based cloud native transformation according to claim 1, characterized in that: Provide extension modules and adopt event mode. Event mode is widely used in the implementation of extension mechanism. It complies with the open-closed principle and applies event mode to cloud-native transformed devices to realize the integration of this device with other systems and form a full-process business system.

5. The method for implementing a graphical template-based cloud native transformation according to claim 4 is characterized in that: Provide basic configuration management, by defining the basic configuration management module, including API configuration and implementation class configuration; API configuration directly configures the RESTful API to provide basic configuration data; implementation class configuration is used in scenarios where the existing RESTful API does not meet the data format requirements of this device, and data can be flexibly set by customizing the implementation class; through the basic configuration management module, basic data such as images can be obtained from the CI / CD system to further simplify resource configuration; Provide resource release by defining resource release modules, including API configuration and implementation class configuration. Through the resource release module, the configured resources are applied to the CI / CD system to achieve continuous deployment of defined resources.

6. A graphical template-based cloud native transformation implementation system according to the graphical template-based cloud native transformation implementation method according to any one of claims 1 to 5, characterized in that: The system consists of a container resource generation module, a container resource setting module and a resource publishing module; The container resource generation module provides a container resource template engine, supports custom template identifiers and resource grouping, has built-in workload, service, storage, and configuration templates, and supports the generation of specific container resources based on parameters. The container resource setting module provides form-based, visual YAML-based, and drag-and-drop graphical tools, and supports setting container resources through visual selection and configuration. The resource publishing module provides extension modules to support docking with the CI / CD system, from which the basic image data can be obtained, and the generated resources can be published to improve the level of DevOps automation.

7. A graphical template-based cloud native transformation implementation system according to claim 6, characterized in that: The container resource generation module provides workload, service, storage, and configuration templates, and makes container resources that dynamically change according to usage scenarios into resource templates. Then, it uses input parameters and their parameter values ​​to render through the template engine, and finally generates available resources. Through template definition rules, customized resources are converted into templates and added to the template engine. Provide parameterized + default value configuration, generate resources through parameterized configuration, the template engine is responsible for rendering the parameter values ​​​​into the template, and finally generate the required resources. The template engine will only render the passed parameters when rendering, and other parameters use the default values, so that users only need to care about the content they want to change, simplifying the setting content.

8. A graphical template-based cloud native transformation implementation system according to claim 6, characterized in that: The container resource setting module provides a form-based setting method and a selection method to replace the full input, simplify the content of parameter configuration, and improve the efficiency of users; Provides a visual YAML setting method, provides switching between different setting methods, and allows users to choose a more convenient setting method between the form and YAML. Different setting methods play a better role in different usage scenarios. Provides a visual display method for generated content and a resource content display tool for resource groups. The generated resources are aggregated and grouped according to resource groups. For the generated resources, resource content display is provided in the resource group dimension, which is helpful for users to check the settings of the entire resource group in general. It provides a drag-and-drop orchestration method and a visual orchestration tool to maintain the dependencies between resource groups. It supports persisting the dependencies to the corresponding container resources. The orchestration tool automatically generates visual dependencies in the orchestration function based on the dependencies declared in each resource group. It supports generating deployment architecture diagrams and generates deployment architectures formed by multiple resource groups through dependencies.

9. A graphical template-based cloud native transformation implementation system according to claim 6, characterized in that: The container resource setting module provides an extension module and adopts an event mode. The event mode is widely used in the implementation of the extension mechanism. It complies with the open-closed principle and applies the event mode to the cloud-native transformed device to realize the integration of the device with other systems and form a full-process business system.

10. A graphical template-based cloud native transformation implementation system according to claim 6, characterized in that: The resource publishing module provides basic configuration management, which includes two modes: API configuration and implementation class configuration by defining a basic configuration management module; API configuration directly configures the RESTful API to provide basic configuration data; implementation class configuration is used in scenarios where the existing RESTful API does not meet the data format requirements of this device, and data is flexibly set by customizing the implementation class; through the basic configuration management module, basic data such as images are obtained from the CI / CD system to further simplify resource configuration; Provide resource release by defining resource release modules, including API configuration and implementation class configuration. Through the resource release module, the configured resources are applied to the CI / CD system to achieve continuous deployment of defined resources.