A method and system for creating a kubernetes application

By writing and combining software templates, the problem of not being able to manage software combination process and version upgrades in the existing technology is solved, and the simplicity and flexibility of application creation on kubernetes are realized, and the learning cost is reduced.

CN114385157BActive Publication Date: 2024-11-22SINA TECH (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111614437.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-11-22
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The existing technology cannot effectively manage and combine the software processes required for business, cannot easily and quickly create complete applications running on kubernetes, and cannot handle software version upgrades.

Method used

By writing software templates, adding and combining software templates using template service modules, saving them to the database with the core service module, and submitting them to the kubernetes cluster management service module through the application deployment service module to create a kubernetes application.

Benefits of technology

It realizes application creation with simple operation and easy use, supports software version upgrade, low learning cost, and can deploy various applications in any combination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114385157B_ABST
    Figure CN114385157B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method and system for creating an application by combining application templates of Kubernetes, including: creating various software templates required for Kubernetes application through template service module; selecting required software templates from the created software templates and combining the selected software templates into a software template combination; polling the core service module through the application deployment service wheel module, requesting the core service module to inform whether there is a new synthetic software template combination; when informed that there is a new synthetic software template combination, obtaining the new synthetic software template combination, submitting the new synthetic software template combination to the Kubernetes cluster management service module, and making a request to create an application to the Kubernetes cluster management service module; the Kubernetes cluster management service module constructs the Kubernetes application according to the new synthetic software template combination. Writing software templates and creating applications by combining templates is simple to operate and easy to use, and can be combined arbitrarily to deploy various applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of kubernetes clusters, and in particular to a method and system for creating a kubernetes application. Background Art

[0002] In the process of business migration container, using kubernetes orchestration tool to deploy container service requires creating multiple kubernetes resources, such as deployment, service, ingress, configmap, hpa, etc. For non-professional kubernetes maintenance personnel, the learning cost is very high, the learning time is very long, and it is easy to have problems, which are difficult to troubleshoot. At the same time, a service online also needs to deploy database service, redis service, memcache service, mq service and other software to ensure a complete service online. The whole deployment process is very complicated, and there are problems with its containers. Based on this background, it is very necessary to use a simple template method to combine templates to create an application running on kubernetes.

[0003] In the process of implementing the present invention, the applicant discovered that there are at least the following problems in the prior art:

[0004] Currently, similar technical solutions can use the Kubernetes expansion capabilities to create some Kubernetes resources, but cannot manage the combination process of software required by the business.

[0005] 1. It can only manage Kubernetes resources, but cannot manage the combination process of business software;

[0006] 2. Unable to manage versions. When a component needs to be upgraded, it cannot be processed;

[0007] 3. It is not possible to easily and quickly create a complete application running on Kubernetes. Summary of the invention

[0008] The embodiment of the present invention provides a method and system for creating a Kubernetes application, which creates an application by writing a software template and combining the templates. The operation is simple and easy to use, and various applications can be arbitrarily combined and deployed.

[0009] To achieve the above object, on the one hand, an embodiment of the present invention provides a method for creating a kubernetes application, including:

[0010] The template service module adds various software templates for creating kubernetes applications; the software template refers to the script and description file of a certain software deployed on kubernetes when creating a kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created by using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template;

[0011] Selecting a required software template from each added software template and combining the selected software templates into a software template combination, and saving the software template combination to a database through a core service module;

[0012] The application deployment service module polls the core service module and requests the core service module to inform whether there is a new synthetic software template combination; when informed that there is a new synthetic software template combination, the new synthetic software template combination is obtained from the database, the new synthetic software template combination is submitted to the kubernetes cluster management service module, and a request to create a kubernetes application is made to the kubernetes cluster management service module;

[0013] According to the received request for creating a kubernetes application, the kubernetes cluster management service module creates the kubernetes application according to the new synthetic software template combination.

[0014] On the other hand, an embodiment of the present invention provides a system for creating a Kubernetes application, including:

[0015] The template service module is used to create software templates for kubernetes applications; the software template refers to the script and description file of a certain software deployed on kubernetes when creating a kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created by using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template;

[0016] A template combination module, used to select a required software template from each added software template and combine the selected software templates into a software template combination;

[0017] The application deployment service module is used to poll the core service module and request the core service module to inform whether there is a new synthetic software template combination; when it is informed that there is a new synthetic software template combination, the new synthetic software template combination is obtained from the database, the new synthetic software template combination is submitted to the kubernetes cluster management service module, and a request to create a kubernetes application is made to the kubernetes cluster management service module;

[0018] The kubernetes cluster management service module is used to receive requests to create kubernetes applications and create kubernetes applications based on the new synthetic software template combination submitted by the application deployment service module;

[0019] The core service module is used to save the software template combination composed by the template combination module to the database; and when the application deployment service module polls and requests to be informed whether there is a new synthetic software template combination, if there is a new synthetic software template combination, the application deployment service module is informed.

[0020] The above technical solution has the following beneficial effects: by writing software templates and combining templates to create applications, the operation is simple and easy to use, and various applications can be arbitrarily combined and deployed. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 It is a flowchart of a method for creating a kubernetes application according to an embodiment of the present invention;

[0023] Figure 2 It is a structural diagram of a Kubernetes application creation system according to an embodiment of the present invention;

[0024] Figure 3 It is a flowchart of another method for creating a Kubernetes application according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on 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.

[0026] In combination with an embodiment of the present invention, a method for creating a kubernetes application is provided, comprising:

[0027] S101: The template service module adds various software templates for creating kubernetes applications; the software template refers to the script and description file of a certain software deployed on kubernetes when creating a kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created by using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template;

[0028] S102: Selecting a required software template from the added software templates and combining the selected software templates into a software template combination, and saving the software template combination to a database through a core service module;

[0029] S103: the application deployment service module polls the core service module and requests the core service module to inform whether there is a new synthetic software template combination; when informed that there is a new synthetic software template combination, the new synthetic software template combination is obtained from the database, the new synthetic software template combination is submitted to the kubernetes cluster management service module, and a request to create a kubernetes application is made to the kubernetes cluster management service module;

[0030] S104: According to the received request for creating a kubernetes application, the kubernetes cluster management service module creates a kubernetes application according to the new synthesized software template combination.

[0031] Preferably, in step 101, the template service module adds various software templates for creating kubernetes applications, specifically including:

[0032] The software template is added through the application program interface provided by the template service module, and the template service module where the software template is located is accessed through the application program interface to submit each software template to be added to the template service module.

[0033] Preferably, it also includes:

[0034] S105: the core service module polls the template service module to monitor whether there is a newly added software template, and when a newly added software template is monitored, the newly added software template is obtained and submitted to the data verification service module;

[0035] S106: Verify whether the newly added software template is legal through the data verification service module, where legal means that it meets the preset requirements of Kubernetes;

[0036] S107: If the newly added software template is legal, the data verification service module saves the newly added software template to the database and marks the corresponding version number for the newly added software template; at the same time, the template script, template description file, and template parameters of the newly added software template are stored in the database; wherein the legal newly added software template is used to combine into a software template combination.

[0037] Preferably, after combining the selected software templates into a software template combination, the method further includes:

[0038] S108: Submitting the software template combination to the core service module, and the core service module submits the software template combination to the data verification service module;

[0039] S109: Check whether the integrity of the new synthetic software template combination meets the requirements through the data verification service module, wherein checking whether the integrity of the new synthetic software template combination meets the requirements refers to checking whether the provided template parameters are complete; the new synthetic software template combination that meets the requirements is saved in the database.

[0040] Preferably, step 104 specifically includes:

[0041] Calling the container orchestration management tool kubernetes, running the new synthesized software template combination through kubernetes, filling in the parameters in the new synthesized software template combination to create the software; and

[0042] Create a container through Kubernetes, and run the created software through the created container to build a Kubernetes application.

[0043] In combination with an embodiment of the present invention, a system for creating a kubernetes application is provided, including:

[0044] The template service module 21 is used to create software templates for kubernetes applications; the software template refers to the script and description file of a certain software deployed on kubernetes when creating a kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created by using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template;

[0045] The template combination module 22 is used to select a required software template from each added software template and combine the selected software templates into a software template combination;

[0046] The application deployment service module 23 is used to poll the core service module and request the core service module to inform whether there is a new synthetic software template combination; when it is informed that there is a new synthetic software template combination, the new synthetic software template combination is obtained from the database, the new synthetic software template combination is submitted to the kubernetes cluster management service module, and a request to create a kubernetes application is made to the kubernetes cluster management service module;

[0047] The kubernetes cluster management service module 24 is used to receive a request to create a kubernetes application and create the kubernetes application according to the new synthetic software template combination submitted by the application deployment service module;

[0048] The core service module 25 is used to save the software template combination formed by the template combination module to the database; and when the application deployment service module polls and requests to be informed whether there is a new synthetic software template combination, if there is a new synthetic software template combination, the application deployment service module is informed.

[0049] Preferably, the template service module 21 provides an application program interface, specifically used for:

[0050] The software templates to be added are received through the application program interface.

[0051] Preferably, it includes a data verification service module 26 and a database, wherein:

[0052] The core service module 25 is also used to poll the template service module to monitor whether there is a newly added software template, and when a newly added software template is monitored, the newly added software template is obtained and submitted to the data verification service module;

[0053] The data verification service module 26 is used to verify whether the newly added software template is legal, where legal means that it meets the preset requirements of Kubernetes; if the newly added software template is legal, the newly added software template is saved to the database, and the corresponding version number is marked for the newly added software template; at the same time, the template script, template description file, and template parameters of the newly added software template are stored in the database; wherein the legal newly added software template is used to combine into a software template combination.

[0054] Preferably,

[0055] The template combination module 22 is further used for submitting the software template combination to the core service module after combining the selected software templates into the software template combination;

[0056] The core service module 25 is used to submit the software template combination submitted by the template combination module to the data verification service module;

[0057] The data verification service module 26 is also used to check whether the integrity of the new synthetic software template combination submitted by the core service module meets the requirements. The checking whether the integrity of the new synthetic software template combination meets the requirements refers to checking whether the provided template parameters are complete; the new synthetic software template combination that meets the requirements is saved in the database.

[0058] Preferably, the kubernetes cluster management service module 24 is specifically used for:

[0059] Calling the container orchestration management tool kubernetes, running the new synthesized software template combination through kubernetes, filling in the parameters in the new synthesized software template combination to create the software; and

[0060] Create a container through Kubernetes, and run the created software through the created container to build a Kubernetes application.

[0061] The technical effects achieved by the present invention are as follows:

[0062] 1. Intuitively display the software version.

[0063] 2. You can write software templates and create applications by combining templates.

[0064] 3. Simple operation, easy to use, can be combined arbitrarily, and deployed in various applications.

[0065] 4. Low learning cost.

[0066] 5. Support software version upgrade.

[0067] The above technical solution of the embodiment of the present invention is described in detail below in conjunction with specific application examples. For technical details not introduced during the implementation process, please refer to the relevant description in the previous text.

[0068] Kubernetes: A container orchestration management tool

[0069] Pod: The smallest scheduling unit of Kubernetes, containing one or more containers

[0070] Deployment, service, ingress: These three are used by kubernetes to orchestrate container services

[0071] Container: A container image is a lightweight, independent executable package of software that contains everything needed to run it: code, runtime, system tools, system libraries, settings, etc. A container is the running state of a program in a container.

[0072] The present invention is a method and system for creating a service by combining application templates of Kubernetes. By using the system, a complex application running on Kubernetes can be quickly and simply launched without caring about Kubernetes itself. The system can support the release and launch of multiple applications by combining templates.

[0073] This system consists of multiple components, each of which is responsible for a part of the functionality.

[0074] like Figure 3 As shown:

[0075] a. Template administrator: add templates for each software used to create a kubernetes application (the template service provides an API interface, and the administrator submits the software template to the template service by accessing the API interface of the template service, that is, receiving the software templates to be added through the application program interface), and submit to the template service, as shown in step 1. The software template refers to the script and description file of a certain software deployed on kubernetes when creating a kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template.

[0076] Template description: A template refers to the deployment script and description file of a certain software on Kubernetes that an application needs, such as the template of nginx software, the template of mysql software, the template of redis software, the template of kafka software, etc.

[0077] The template script is used to execute the program to create an instance of the template.

[0078] The template description file is used to describe the function, version, software, and adjustable template parameters of the current template. Software refers to the basic software and programming language operating environment that the developed application depends on. For example, an application developed in PHP language. You need to install PHP, PHP-FPM, Nginx, MySQL, and other software on the Linux operating system. Any software that needs to assist the complete operation of the application is included in the management scope of this service.

[0079] A template instance is an instance of an accessible program created by using the template's description file, script, and parameters. For example, a MySQL instance 1.1.1.1:3306 is created using the MySQL template.

[0080] b. Template service:

[0081] The template administrator creates a service and submits it to the template service, which then waits for the core service to connect to it. The service refers to the source code of the application developed by the R&D personnel and the necessary operating environment of the development language of the source code. For example, if the PHP source code is to run and provide services, it needs PHP software, MySQL software, PHP-FMP software, Nginx software, etc. The source code and software together provide a complete service, such as a user login service.

[0082] c. Core service modules:

[0083] As shown in step 3, the template service module is polled to monitor whether there is a newly added software template. When a newly added software template is monitored, the newly added software template is obtained and submitted to the data verification service module.

[0084] Specifically: the core service polls the access template service, and when a new template is found, it obtains the template and submits it to the data verification service. Among them, the creation of a new template requires the creation of a new template, that is, with the development of the software, there are the following situations where a new template needs to be created, such as the software version is upgraded and a new type of software is required.

[0085] The core service module saves the software template combination composed by the template combination module to the database (the core service module submits the software template combination submitted by the template combination module to the data verification service module, and saves it to the database after verification); and when the application deployment service module polls and requests to be informed whether there is a new synthesized software template combination, if there is a new synthesized software template combination, the application deployment service module is informed.

[0086] d. Data verification service (data verification service module):

[0087] As shown in step 4, verify whether the newly added software template is legal, where legal means that it meets the preset requirements of kubernetes; if the newly added software template is legal, save the newly added software template to the database, and mark the corresponding version number for the newly added software template; at the same time, store the template script, template description file, and template parameters of the newly added software template in the database; wherein the legal newly added software template is used to combine into a software template combination.

[0088] Specifically: It is used to verify whether the template creation submitted by the administrator is legal and meets the requirements of kubernetes. Among them, legal means that it meets the format requirements of the kubernetes yaml language and the requirements of the system for key and value. There are some preset values ​​for key and value. For example, the name of the key is example1, which is the preset value, but the user wrote example2. This is illegal; failure of yaml format verification is also illegal.

[0089] If it meets the requirements, it is submitted to the database service and an email is sent to the template administrator to notify that the creation has been completed. Otherwise, the template administrator is notified that the creation failed and the reason for the failure. The creation here means storing in the data service, because we are creating a template, and the template does not have a real instance at this time. After a real description of a service is made later, the template plus parameters together form an instance (an instance is an application entity), and the parameters are based on the service.

[0090] The data verification service module is also used to check whether the integrity of the new synthetic software template combination submitted by the core service module meets the requirements. The checking whether the integrity of the new synthetic software template combination meets the requirements refers to checking whether the provided template parameters are complete; the new synthetic software template combination that meets the requirements is saved to the database.

[0091] e. Database services:

[0092] As shown in step 5:

[0093] After the data verification service passes the verification, the relevant data of the template (template script, template description file, template parameters) will be stored in the database service, and the modified version will be marked. Each modification will have a corresponding version.

[0094] f. User ui and command line tools (template combination module):

[0095] The template combination module is used to select the required software templates from the added software templates and combine the selected software templates into a software template combination. Specifically: users refer to people who create applications using the template combination created by the administrator. They can use the UI interface or the command line tool to select more than one software template to assemble a complete application.

[0096] For example, a user chooses to use nginx 1.19.3 template, php7.2 template, laravel5.7 template, mysql 5.7 template, and redis 2.3 template to form an http service (i.e. application) to provide web page access. Service = template + parameter value added in the template.

[0097] After the selected software templates are combined into a software template combination, the software template combination is submitted to the core service module. Specifically: the combined data (the required software templates and software parameters are combined to form a set of application data) is the application combination, the application combination is submitted to the core service, the core service is submitted to the data verification service, the data verification service checks the integrity of the application combination (whether the parameters provided by the user are complete. Some parameters need to be used in conjunction), for example, the nginx template must rely on the mysql template to create an application combination, for example, nginx 1.19 must be used in conjunction with the luajit2 template, etc.

[0098] After the check passes, it is stored in the database service. Otherwise, the user is prompted with the UI and command line where the error is.

[0099] g. Application deployment service (application deployment module):

[0100] As shown in step 6, poll the core service module and request the core service module to inform whether there is a new synthetic software template combination; when informed that there is a new synthetic software template combination, obtain the new synthetic software template combination from the database, submit the new synthetic software template combination to the kubernetes cluster management service module, and make a request to the kubernetes cluster management service module to create a kubernetes application.

[0101] Specifically: the application deployment service polls the core service, requests the core service to inform it of the application combination that needs to be created, obtains the application combination that needs to be created, and submits it to the kubernetes cluster management service to create the application.

[0102] h.Kubernetes cluster management service:

[0103] Receive a request to create a Kubernetes application, and create the Kubernetes application based on the new synthetic software template combination submitted by the application deployment service module.

[0104] Specifically: This service component adds multiple Kubernetes clusters. It can create Kubernetes resources, such as deployment, in multiple Kubernetes clusters at the same time.

[0105] As shown in step 7, the kubernetes cluster management service receives the request from the application deployment service.

[0106] i.Kubernetes container orchestration management tool:

[0107] A carrier used to run application template instances;

[0108] As shown in step 8, call the container orchestration management tool kubernetes, run the new software template combination through kubernetes, fill in the parameters in the new software template combination to create software; and create a container through kubernetes, and run the created software through the created container to build a kubernetes application. Specifically: the kubernetes cluster management service starts calling kubernetes, requiring kubernetes to create deployments, etc.;

[0109] Kubernetes will actually create the container;

[0110] This completes the process of combining multiple templates to create a service.

[0111] The technical effects achieved by the present invention are as follows:

[0112] 1. Intuitively display the software version.

[0113] 2. You can write software templates and create applications by combining templates.

[0114] 3. Simple operation, easy to use, can be combined arbitrarily, and deploy various applications

[0115] 4. Low learning cost.

[0116] 5. Support software version upgrade.

[0117] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.

[0118] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.

[0119] The disclosed embodiments are described above to enable any person skilled in the art to implement or use the present invention. Various modifications of these embodiments are obvious to those skilled in the art, and the general principles defined herein may also be applied to other embodiments without departing from the spirit and scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments given herein, but is consistent with the broadest scope of the principles and novel features disclosed in this application.

[0120] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".

[0121] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.

[0122] The various illustrative logic blocks or units described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.

[0123] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.

[0124] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.

[0125] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for creating a kubernetes application. It is characterized in that include: The template service module adds various software templates for creating kubernetes applications; The software template refers to the script and description file of a certain software deployed on Kubernetes when creating a Kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created by using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template; Selecting a required software template from each added software template and combining the selected software templates into a software template combination, and saving the software template combination to a database through a core service module; The application deployment service module polls the core service module and requests the core service module to inform whether there is a new synthetic software template combination; when informed that there is a new synthetic software template combination, the new synthetic software template combination is obtained from the database, the new synthetic software template combination is submitted to the kubernetes cluster management service module, and a request to create a kubernetes application is made to the kubernetes cluster management service module; According to the received request for creating a kubernetes application, the kubernetes cluster management service module creates the kubernetes application according to the new synthetic software template combination.

2. The method for creating a kubernetes application according to claim 1, It is characterized in that The template service module adds various software templates for creating kubernetes applications, including: The software template is added through the application program interface provided by the template service module, and the template service module where the software template is located is accessed through the application program interface to submit each software template to be added to the template service module.

3. The method for creating a kubernetes application according to claim 1, It is characterized in that Also includes: The core service module polls the template service module to monitor whether there is a newly added software template. When a newly added software template is monitored, the core service module obtains the newly added software template and submits the newly added software template to the data verification service module. Verify the legality of the newly added software template through the data verification service module. Legality means that it meets the preset requirements of Kubernetes. If the newly added software template is legal, the data verification service module saves the newly added software template to the database and marks the corresponding version number for the newly added software template; at the same time, the template script, template description file, and template parameters of the newly added software template are stored in the database; wherein the legal newly added software template is used to combine into a software template combination.

4. The method for creating a kubernetes application according to claim 3, It is characterized in that After combining the selected software templates into a software template combination, the method further includes: Submit the software template combination to the core service module, and the core service module submits the software template combination to the data verification service module; The data verification service module is used to check whether the integrity of the new synthetic software template combination meets the requirements. The checking whether the integrity of the new synthetic software template combination meets the requirements refers to checking whether the provided template parameters are complete; the new synthetic software template combination that meets the requirements is saved in the database.

5. The method for creating a kubernetes application according to claim 1, It is characterized in that According to the received request to create an application, the kubernetes cluster management service module constructs a kubernetes application according to the newly synthesized software template combination, specifically including: Calling the container orchestration management tool kubernetes, running the new synthesized software template combination through kubernetes, filling in the parameters in the new synthesized software template combination to create the software; and Create a container through Kubernetes, and run the created software through the created container to build a Kubernetes application.

6. A system for creating kubernetes applications, It is characterized in that include: Template service module, used to create software templates for kubernetes applications; The software template refers to the script and description file of a certain software deployed on Kubernetes when creating a Kubernetes application; wherein the script of the software template is a program used to execute the creation of a template instance; the template instance refers to an instance of an accessible program created by using the description file, script, and template parameters of the software template; the description file of the software template is used to describe the function, version, software introduction, and adjusted template parameters of the software template; A template combination module, used to select a required software template from each added software template and combine the selected software templates into a software template combination; The application deployment service module is used to poll the core service module and request the core service module to inform whether there is a new synthetic software template combination; when it is informed that there is a new synthetic software template combination, the new synthetic software template combination is obtained from the database, the new synthetic software template combination is submitted to the kubernetes cluster management service module, and a request to create a kubernetes application is made to the kubernetes cluster management service module; The kubernetes cluster management service module is used to receive requests to create kubernetes applications and create kubernetes applications based on the new synthetic software template combination submitted by the application deployment service module; The core service module is used to save the software template combination composed by the template combination module to the database; and when the application deployment service module polls and requests to be informed whether there is a new synthetic software template combination, if there is a new synthetic software template combination, the application deployment service module is informed.

7. The system for creating a kubernetes application according to claim 6, It is characterized in that The template service module provides an application program interface, which is specifically used for: The software templates to be added are received through the application program interface.

8. The system for creating a kubernetes application according to claim 6, It is characterized in that It also includes a data verification service module and a database, including: The core service module is further used to poll the template service module to monitor whether there is a newly added software template, and when a newly added software template is monitored, the newly added software template is obtained and submitted to the data verification service module; The data verification service module is used to verify whether the newly added software template is legal, where legal means that it meets the preset requirements of Kubernetes; if the newly added software template is legal, the newly added software template is saved to the database and the corresponding version number is marked for the newly added software template; at the same time, the template script, template description file, and template parameters of the newly added software template are stored in the database; wherein the legal newly added software template is used to combine into a software template combination.

9. The system for creating a kubernetes application according to claim 8, It is characterized in that The template combination module is further used for submitting the software template combination to the core service module after the selected software templates are combined into the software template combination; The core service module is used to submit the software template combination submitted by the template combination module to the data verification service module; The data verification service module is also used to check whether the integrity of the new synthetic software template combination submitted by the core service module meets the requirements. The checking whether the integrity of the new synthetic software template combination meets the requirements refers to checking whether the provided template parameters are complete; the new synthetic software template combination that meets the integrity requirements is saved to the database.

10. The system for creating a kubernetes application according to claim 6, It is characterized in that The kubernetes cluster management service module is specifically used for: Calling the container orchestration management tool kubernetes, running the new synthesized software template combination through kubernetes, filling in the parameters in the new synthesized software template combination to create the software; and Create a container through Kubernetes, and run the created software through the created container to build a Kubernetes application.