System and method for micro-service application pluggable module based on Kubernetes
By designing standardized CRD, dynamic monitoring services, automated deployment services and real-time alarm services on Kubernetes, the problem of lack of automated deployment of dynamic pluggable modules in the existing microservice architecture is solved, and the plug-and-play and efficient automated operation and maintenance of microservice modules are realized.
Patent Information
- Application Number
- CN202411458407.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-03-25
AI Technical Summary
The existing microservice architecture lacks the automated deployment and uninstallation mechanism of dynamic pluggable modules, resulting in the need of manual intervention in the start-stop microservice module and lacks the plug-and-play function.
A Kubernetes-based system is designed, including standardized CRD for microservice applications, dynamic monitoring services, automated deployment services and real-time alarm services. Through the collaborative work of these service modules, dynamic monitoring, automated deployment, uninstallation and changes of microservice modules are realized, and millisecond response and plug-and-play are supported.
It realizes dynamic pluggable and automated deployment of microservice modules, significantly reduces the complexity of manual operation and maintenance, improves the automation and real-time nature of application deployment, update, and uninstallation, and is suitable for large distributed and microservice application systems.
Smart Images

Figure CN119690580A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of microservice technology, and in particular relates to a system and method for a microservice application pluggable module based on Kubernetes. Background Art
[0002] As the current mainstream system architecture, microservices have been widely used in various application systems. Based on the microservice architecture, modularization can be achieved, each module assumes independent functions, and many microservices form a complete application system. However, in the existing microservice model, each microservice is fully dependent on deployment, which takes up a lot of resources. If users need to start and stop microservice function modules, manual intervention is required for deployment and operation and maintenance. There is a lack of pluggable features and automated deployment processes for microservice modules, that is, there is no way to achieve "automatic deployment when needed and automatic uninstallation when not needed" for microservice modules. The lack of dynamic pluggable mechanisms and automated deployment processes restricts the further widespread application of microservices. Summary of the invention
[0003] (I) Purpose of the invention
[0004] In order to overcome the above shortcomings, the purpose of the present invention is to provide a system and method for pluggable modules for microservice applications based on Kubernetes to solve the above technical problems.
[0005] (II) Technical solution
[0006] To achieve the above objectives, the technical solutions provided by this application are as follows:
[0007] A pluggable module system for microservice applications based on Kubernetes, characterized by including the following service modules:
[0008] Microservice application standardized CRD can define the usage switches and version information of each microservice functional module and middleware;
[0009] Dynamic monitoring service module, mainly dynamically monitors the changes of standardized CRD of microservice applications;
[0010] The automated deployment service module is responsible for receiving requests for dynamic monitoring services. It integrates the HelmCharts package of microservices and can automatically install, uninstall, and change front-end and back-end microservices and middleware.
[0011] The real-time alarm service module receives the results of installing, uninstalling, and changing pluggable modules from the automated deployment service in real time.
[0012] Preferably, when a user wants to start or stop a pluggable module, he only needs to modify the configuration corresponding to the pluggable module on the microservice application standardized CRD, without having to process each pluggable microservice module separately.
[0013] Preferably, when the dynamic monitoring service module monitors changes in the standardized CRD of the microservice application, the automated deployment service is dynamically called according to the changes to achieve millisecond-level response.
[0014] Preferably, the automated deployment service module, the dynamic monitoring service module, and the real-time alarm service module are all deployed on Kubernetes.
[0015] Preferably, the real-time alarm service module also sends event anomalies to operation and maintenance personnel in a timely manner, and manually handles them when necessary to ensure the integrity of the processing flow.
[0016] Preferably, the real-time alarm service module supports DingTalk, WeChat, SMS and email, and the alarm rules need to be pre-configured.
[0017] A method for pluggable modules for microservice applications based on Kubernetes, comprising the following steps:
[0018] Step 1: Deploy the microservice application standardized CRD, dynamic monitoring service, automated deployment service, and real-time alarm service in the Kubernetes cluster in order;
[0019] Step 2: When the user wants to start or stop a pluggable functional module, he only needs to modify the functional module switch corresponding to the standardized CRD of the microservice application, without having to process each pluggable module separately;
[0020] Step 3: The dynamic monitoring service monitors the changes of the standardized CRD of the microservice application in real time. After monitoring the configuration changes of the standardized CRD of the microservice application, it will pass the configuration request that needs to be changed to the automatic deployment module within milliseconds, and then continue to monitor. If no change is detected, it will not send a configuration change request and continue to monitor.
[0021] Step 4: After receiving the configuration change request of the dynamic monitoring service, the automated deployment service automatically deploys, uninstalls and changes the changed pluggable functional modules according to the configuration change, collects the execution results after the execution is completed, and transmits the execution results to the real-time alarm module;
[0022] Step 5: The real-time alarm module receives the execution results from the automated deployment service and analyzes the execution results. If there are any abnormal events, an alarm will be sent and manual intervention will be performed to solve the problem if necessary.
[0023] Beneficial effects:
[0024] 1. This method and system can completely solve the problem of dynamic pluggable deployment of microservices, solve the problem of manually starting and stopping pluggable microservice modules, establish an automated process, and significantly improve efficiency.
[0025] 2. The present invention realizes plug-and-play of pluggable modules in the microservice mode, solves the problem that the existing microservice architecture cannot dynamically realize automatic deployment, uninstallation and change of pluggable modules, significantly reduces the complexity of manual operation and maintenance, and improves the automation and real-time performance of application deployment, update and uninstallation.
[0026] 3. The present invention is based on the cloud-native route, is simple to implement, and has strong standardization. It is particularly suitable for large-scale distributed and microservice application systems and has high promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a system composition diagram of the present invention;
[0028] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present invention more clear, the following is a detailed description of the present invention in conjunction with the specific implementation methods and with reference to the attached drawings. Figure 1-2 , the present invention is further described in detail. It should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concept of the present invention.
[0030] The present invention provides a microservice application pluggable module system based on Kubernetes, including the following service modules:
[0031] Microservice application standardized CRD, defined in the Kubernetes cluster. The microservice application standard CRD is the CustomResourceDefinition in Kubernetes. The CRD defines the use switches and version information of each microservice functional module, middleware, etc. When the user wants to start or stop the pluggable module, he only needs to modify the configuration corresponding to the pluggable module on the CRD, without having to process each pluggable microservice module separately.
[0032] The dynamic monitoring service is deployed on Kubernetes. It mainly monitors the changes of the standardized CRD of microservice applications. Once the standardized CRD of microservice applications is monitored, the automatic deployment service is dynamically called according to the changes to achieve millisecond-level response. The dynamic monitoring service will continuously and in real time detect the standard CRD of microservice applications, and send out new creation, modification, and deletion signals according to its changes.
[0033] The automated deployment service is deployed on Kubernetes. It mainly receives dynamic monitoring service requests and integrates the helm charts packages of the front-end and back-end pluggable microservices and middleware of the microservice application. It uses Helm charts to deploy microservice applications with one click. It can automatically install, uninstall and change pluggable modules such as front-end and back-end microservices and middleware according to the received requests, which completely solves the problem of dynamic pluggable deployment of microservices and the problem of manually starting and stopping pluggable microservice modules, thus improving processing efficiency.
[0034] The real-time alarm service is deployed on Kubernetes and receives the results of the automated deployment service to install, uninstall, and change pluggable modules in real time. It sends event exceptions to the operation and maintenance personnel in a timely manner and manually handles them when necessary to ensure the integrity of the processing flow. The real-time alarm service module supports DingTalk, WeChat, SMS, and email, and the alarm rules need to be pre-configured.
[0035] A method for pluggable modules for microservice applications based on Kubernetes, comprising the following steps:
[0036] Step 1: Deploy the microservice application standardized CRD, dynamic monitoring service, automated deployment service, and real-time alarm service in the Kubernetes cluster in order;
[0037] Step 2: When the user wants to start or stop a pluggable functional module, he only needs to modify the functional module switch corresponding to the standardized CRD of the microservice application, without having to process each pluggable module separately;
[0038] Step 3: The dynamic monitoring service monitors the changes of the standardized CRD of the microservice application in real time. After monitoring the configuration changes of the standardized CRD of the microservice application, it will pass the configuration request that needs to be changed to the automatic deployment module within milliseconds, and then continue to monitor. If no change is detected, it will not send a configuration change request and continue to monitor.
[0039] Step 4: After receiving the configuration change request of the dynamic monitoring service, the automated deployment service automatically deploys, uninstalls, and changes the changed pluggable functional modules according to the configuration change, collects the execution results after the execution is completed, and passes the execution results to the real-time alarm module; in the whole process, the dynamic plug-and-play and dynamic automated deployment, uninstallation, and change of the pluggable functional modules of the microservice application are perfectly realized;
[0040] Step 5: The real-time alarm module receives the execution results from the automated deployment service and analyzes the execution results. If there are any abnormal events, an alarm will be sent and manual intervention will be performed to solve the problem if necessary.
[0041] The present invention can realize plug-and-play of pluggable modules in microservice mode, solve the problem that the existing microservice architecture cannot dynamically realize automatic deployment, uninstallation and change of pluggable modules, significantly reduce the complexity of manual operation and maintenance, and improve the automation and real-time performance of application deployment, update and uninstallation. At the same time, the method is completely based on the cloud native route, is simple to implement, and has a strong standardized process. It is particularly suitable for large-scale distributed, microservice application systems and has high promotion value.
[0042] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0043] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A pluggable module system for microservice applications based on Kubernetes, characterized in that: Includes the following service modules: Microservice application standardized CRD can define the usage switches and version information of each microservice functional module and middleware; Dynamic monitoring service module, mainly dynamically monitors the changes of standardized CRD of microservice applications; The automated deployment service module is responsible for receiving requests for dynamic monitoring services. It integrates the Helm Charts package of microservices and can automatically install, uninstall, and change front-end and back-end microservices and middleware. The real-time alarm service module receives the results of installing, uninstalling, and changing pluggable modules from the automated deployment service in real time.
2. According to claim 1, a system for microservice application pluggable modules based on Kubernetes is characterized in that: When users want to start or stop a pluggable module, they only need to modify the configuration corresponding to the pluggable module on the standardized CRD of the microservice application, without having to handle each pluggable microservice module separately.
3. According to claim 1, a Kubernetes-based system for microservice application pluggable modules is characterized in that: When the dynamic monitoring service module detects changes in the standardized CRD of the microservice application, it dynamically calls the automated deployment service based on the changes to achieve millisecond-level response.
4. According to claim 1, a system for microservice application pluggable modules based on Kubernetes is characterized in that: The automated deployment service module, dynamic monitoring service module, and real-time alarm service module are all deployed on Kubernetes.
5. According to claim 1, a system for microservice application pluggable modules based on Kubernetes is characterized in that: The real-time alarm service module also sends event anomalies to operation and maintenance personnel in a timely manner, and manually handles them when necessary to ensure the integrity of the processing flow.
6. A Kubernetes-based microservice application pluggable module system according to claim 1, characterized in that: The real-time alarm service module supports DingTalk, WeChat, SMS and email, and the alarm rules need to be pre-configured.
7. A method for pluggable modules for microservice applications based on Kubernetes, characterized in that: The following steps are involved: Step 1: Deploy the microservice application standardized CRD, dynamic monitoring service, automated deployment service, and real-time alarm service in the Kubernetes cluster in order; Step 2: When the user wants to start or stop a pluggable functional module, he only needs to modify the functional module switch corresponding to the standardized CRD of the microservice application, without having to process each pluggable module separately; Step 3: The dynamic monitoring service monitors the changes of the standardized CRD of the microservice application in real time. After monitoring the configuration changes of the standardized CRD of the microservice application, it passes the configuration request that needs to be changed to the automatic deployment module within milliseconds, and then continues to monitor; If no change is detected, no configuration change request will be sent and monitoring will continue; Step 4: After receiving the configuration change request of the dynamic monitoring service, the automated deployment service automatically deploys, uninstalls and changes the changed pluggable functional modules according to the configuration change, collects the execution results after the execution is completed, and transmits the execution results to the real-time alarm module; Step 5: The real-time alarm module receives the execution results from the automated deployment service and analyzes the execution results. If there are any abnormal events, an alarm will be sent and manual intervention will be performed to solve the problem if necessary.