Kubents-based project platform operation and maintenance automatic deployment method, system and equipment and medium

By using a project platform operation and maintenance automation deployment method based on kubenets, and utilizing image-based platform and terminal service programs, service release and health checks are automatically completed. This solves the problem of cumbersome operation and maintenance work in existing technologies, achieves efficient operation and maintenance and rapid response, and reduces environmental coupling and the probability of misoperation.

CN121008809APending Publication Date: 2025-11-25INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511100629.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-07
Publication Date
2025-11-25

AI Technical Summary

Technical Problem

Existing technologies involve a large amount of tedious maintenance work during the automated deployment of project platform operations and maintenance. In particular, when deploying and updating application services or application service clusters under the Linux operating system, the operations are complex, multi-node service releases are cumbersome, resource expansion brings monitoring and logging service issues, and service failure response is not timely. The environment is highly coupled.

Method used

The project platform adopts an automated deployment method based on kubenets. Through the image building platform and terminal service program, the service release process is automated, including image building, configuration file updates and health checks. The local Harbor repository is used to store images, and the terminal service program schedules and records YAML files, reducing the direct operation of operation and maintenance personnel.

Benefits of technology

It achieves efficient operation and maintenance, quickly responds to and repairs online environment errors, reduces the probability of misoperation, reduces the workload of operation and maintenance personnel, improves operation and maintenance efficiency, reduces environmental coupling, and ensures server stability and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121008809A_ABST
    Figure CN121008809A_ABST
Patent Text Reader

Abstract

The invention discloses a kubents-based project platform operation and maintenance automatic deployment method, system and device and a medium, belongs to the technical field of computer software automatic operation and maintenance, and aims to solve the technical problems of overcoming the defect of a large amount of tedious work of operation and maintenance personnel in the project platform operation and maintenance automatic deployment process, reducing the coupling of the environment and improving the deployment efficiency. According to the technical scheme, the method comprises the following steps: selecting a corresponding application server to install a kubets cluster platform according to a deployment architecture diagram, and marking a kubets main server cluster as a master cluster; developing an interface required by the mirror image construction platform, starting the mirror image construction platform, analyzing interface parameter transmission through the mirror image construction platform, adding required dependence and judging whether the interface parameter transmission becomes a log monitoring node or not, generating a response dockefile, and constructing a mirror image; and compiling a terminal service program, obtaining mirror image construction platform interface parameters through the terminal service program, automatically generating a yaml file of kubents, and applying the yaml file on an application server.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer software automation operation and maintenance, in particular to a project platform operation and maintenance automation deployment method, system, device and medium based on kubenets. BACKGROUND

[0002] The mode of providing software services through the Internet enables users to access application programs through browsers or clients without installing local software, which can meet the use requirements of customers for application systems and reduce the operation and maintenance work cost of platform operation and maintenance personnel. The system of deploying Internet software services using kubenets can automatically maintain and upgrade services, access the core management platform of kubenets at any time and anywhere, and has the ability to flexibly expand service nodes, which greatly improves the operation and maintenance efficiency. However, the processes of publishing services, writing dockerfile, building images, updating configuration files and applying, the site demand and service publishing frequency are very high. Even if kubenets has optimized many processes, the remaining steps are very tedious and prone to errors by manual operation of operation and maintenance personnel. It can be seen that the prior art has the following defects:

[0003] ①Deployment and update of application services or application service clusters under the linux operating system require implementation personnel to have relatively more complex operations compared to graphical operations under the windows operating system. Traditional deployment methods require a large number of command line operations.

[0004] ②In the case of multiple nodes, the services to be published first need to record the node ip port, perform correct proxying, and update the services on each node, which is extremely tedious.

[0005] ③During the operation and maintenance process, resource expansion will bring a lot of problems, such as monitoring and configuration addition of nodes, log service expansion of nodes, etc.

[0006] ④The service does not run normally, and the inactive monitoring is relatively tedious. The response to this is to manually check the state and then process the process, which is time-consuming and the manual response is not timely.

[0007] Therefore, how to overcome the defects of a large number of tedious work of operation and maintenance personnel in the project platform operation and maintenance automation deployment process and reduce the coupling of the environment is a technical problem to be solved at present. SUMMARY

[0008] The technical task of the present application is to provide a project platform operation and maintenance automation deployment method, system, device and medium based on kubenets, to solve the problem of how to overcome the defects of a large number of tedious work of operation and maintenance personnel in the project platform operation and maintenance automation deployment process and reduce the coupling of the environment.

[0009] The technical task of the present application is achieved in the following manner, a kubenets-based project platform operation and maintenance automatic deployment method, which is as follows:

[0010] According to the deployment architecture diagram, the corresponding application server is installed with the kubenets cluster platform, and the kubenets master server cluster is marked as the master cluster;

[0011] The interface required for developing the image building platform is started, the interface parameter transmission is analyzed through the image building platform, the required dependencies are added, and whether it becomes a log monitoring node is determined, and a response dockerfile is generated to build the image;

[0012] A terminal service program is written, the image building platform interface parameters are obtained through the terminal service program, the yaml file of kubenets is automatically generated and applied on the application server;

[0013] A local Harbor warehouse is built according to the image building platform, the image building platform and the terminal service program are connected through the local Harbor warehouse, and the image built by the image building platform is received;

[0014] Harbor trust certificates and Harbor login configurations are generated on the terminal service program and the application server;

[0015] The terminal service program is started on the master cluster;

[0016] The terminal service program builds the yaml file and calls the yaml building function of the master cluster;

[0017] After the yaml building function of the master cluster is called, the health check and inactivation restart of the kubenets cluster platform service are performed.

[0018] As a preferred, the local Harbor warehouse and the terminal service program perform encrypted analysis on the interface parameters to ensure the security and confidentiality of the deployment process.

[0019] As a preferred, after the image building platform successfully builds the image, it actively contacts the terminal service program and submits the service parameters to the terminal service program.

[0020] As a preferred, after the kubenets cluster platform is deployed on the application server, only the interface parameters provided by the research and development personnel are required, and the image building platform and the terminal service program automatically complete the service release through the local Harbor warehouse.

[0021] As a preferred, the method is to check the deployment progress and the deployment process log file through the state log returned by the terminal service program in the deployment process.

[0022] As preferred, the terminal service program triggers execution through parameters provided by the mirror building platform, the local Harbor warehouse receives the image built by the mirror building platform and receives the scheduling of the terminal service program;

[0023] All yaml files are reserved during the scheduling process of the terminal service program, which is beneficial to the recovery and rollback operation of the environment at any time;

[0024] The terminal service program directly schedules the interface of the kubenets cluster platform;

[0025] The terminal service program sends service scheduling records to the operation and maintenance personnel through the interface.

[0026] More preferably, during the deployment process of the method, the log is returned to the operation and maintenance personnel for query through the network at the same time, and exists in the form of a file on the application server.

[0027] A kubenets-based project platform operation and maintenance automatic deployment system, which is used to realize the kubenets-based project platform operation and maintenance automatic deployment method as described above; the system comprises:

[0028] An application server is used to install the kubenets cluster platform according to the deployment architecture diagram, and mark the kubenets master server cluster as a master cluster;

[0029] An image building platform is used to analyze the interface parameter transmission, add required dependencies and determine whether to become a log monitoring node, and generate a response dockerfile to build an image;

[0030] A terminal service program is used to obtain the interface parameters of the image building platform, automatically generate a kubenets yaml file and apply it on the application server;

[0031] A local Harbor warehouse is used to connect the image building platform and the terminal service program, and receive the image built by the image building platform.

[0032] An electronic device, comprising a memory and at least one processor;

[0033] The memory stores a computer program;

[0034] The at least one processor executes the computer program stored in the memory, so that the at least one processor executes the kubenets-based project platform operation and maintenance automatic deployment method as described above.

[0035] A computer readable storage medium, the computer readable storage medium has a computer program stored therein, the computer program can be executed by a processor to implement the kubenets-based project platform operation automation deployment method as described above.

[0036] The kubenets-based project platform operation automation deployment method, system, device and medium have the following advantages:

[0037] (I) The present application is aimed at providing software services through the Internet, using the characteristics of kubenets to assist image building platform and terminal service program scheduling, realizing efficient operation and rapid response to repair online environment error functions;

[0038] (II) The present application improves the operation efficiency, saves a lot of tedious and repetitive work of the operation personnel, and the efficiency is more than dozens of times higher than manual operation;

[0039] (III) The present application reduces the number and frequency of direct operation of the server by the operation personnel, reduces the probability of misoperation, and ensures the stability and security of the server;

[0040] (IV) The terminal service program of the present application retains and saves the yaml construction process, which is beneficial to quickly repair when the kubenets environment has problems;

[0041] (V) The present application uses the function of Kubenets cluster platform, matches image building platform, local Harbor warehouse and terminal service, so that the service release time and the response time for repairing online sudden error are almost 0;

[0042] (VI) The present application provides an interface to accept the service package of R&D release through an image building platform, and transmits the interface parameters to the background service for image building. According to the information provided by the interface, such as required dependencies, whether log monitoring is required, and other operation service requirements, dockerfile is generated, image is built, and after the image building platform builds the image, the terminal service is used for release;

[0043] (VII) The present application builds a local Harbor warehouse to realize the auxiliary functions of image storage and image pulling;

[0044] (VIII) In the service release process, the image building platform, the terminal service and the kubenets are independent of each other, and the coupling between the pods of kubenets is also low. The present application liberates a lot of tedious work of the operation personnel, and reduces the coupling of the environment. BRIEF DESCRIPTION OF DRAWINGS

[0045] The present application will be further described below with reference to the accompanying drawings.

[0046] APPENDIX Figure 1 A flowchart of a kubenets-based project platform operation and maintenance automated deployment method. DETAILED DESCRIPTION

[0047] The kubenets-based project platform operation and maintenance automated deployment method, system, device and medium of the present application will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] Embodiment 1:

[0049] As shown in the APPENDIX Figure 1 The present embodiment provides a kubenets-based project platform operation and maintenance automated deployment method, which specifically comprises the following steps:

[0050] S1. According to the deployment architecture diagram, select the corresponding application server to install the kubenets cluster platform, and mark the kubenets master server cluster as the master cluster;

[0051] S2. Develop the interface required by the image building platform, start the image building platform, analyze the interface parameter transmission through the image building platform, add the required dependencies and whether to become a log monitoring node, and generate a response dockerfile to build the image;

[0052] S3. Write a terminal service program, obtain the image building platform interface parameters through the terminal service program, automatically generate a kubenets yaml file and apply it on the application server;

[0053] S4. Build a local Harbor repository according to the image building platform, connect the image building platform and the terminal service program through the local Harbor repository, and receive the image built by the image building platform;

[0054] S5. Generate Harbor trust certificates and Harbor login configurations on the terminal service program and the application server;

[0055] S6. Start the terminal service program on the master cluster;

[0056] S7. The terminal service program builds a yaml file and calls the yaml building function of the master cluster;

[0057] S8. After the yaml building function of the master cluster is called, the health check and inactive restart of the kubenets cluster platform service are performed.

[0058] The local Harbor repository and the terminal service program in the present embodiment perform encrypted analysis on the interface parameters, ensuring the security and confidentiality of the deployment process.

[0059] After the image building platform in this embodiment successfully builds an image, it initiates contact with the terminal service program and submits service parameters to the terminal service program.

[0060] In this embodiment, after deploying the kubenets cluster platform on the application server, only interface parameters need to be provided by the R&D personnel, and the image building platform and the terminal service program automatically complete the service release through the local Harbor warehouse.

[0061] In this embodiment, the state log returned by the terminal service program during the deployment process is used to check the deployment progress and the deployment process log file.

[0062] The terminal service program in this embodiment is triggered to execute by the parameters provided by the image building platform, and the local Harbor warehouse receives the image built by the image building platform and receives the scheduling of the terminal service program.

[0063] The terminal service program in this embodiment retains all yaml files during the scheduling process, which is conducive to the environment recovery and rollback operation at any time.

[0064] The terminal service program in this embodiment directly schedules the interface of the kubenets cluster platform.

[0065] The terminal service program in this embodiment sends service scheduling records to the operation and maintenance personnel through the interface.

[0066] During the deployment process in this embodiment, the log is returned to the operation and maintenance personnel for query through the network, and at the same time, the log exists in the form of a file on the application server.

[0067] Embodiment 2

[0068] The embodiment provides a kubenets-based project platform operation and maintenance automatic deployment system, which is used to realize the kubenets-based project platform operation and maintenance automatic deployment method in the embodiment 1; the system comprises:

[0069] An application server is configured to install a kubenets cluster platform according to a deployment architecture diagram, and mark a kubenets master server cluster as a master cluster.

[0070] An image building platform is configured to analyze interface parameter transmission, add required dependencies and determine whether to become a log monitoring node, and generate a response dockerfile to build an image.

[0071] A terminal service program is configured to obtain interface parameters of the image building platform, automatically generate a kubenets yaml file, and apply the kubenets yaml file on the application server.

[0072] Local Harbor warehouse, used to connect the image building platform and the terminal service program, and receive the image built by the image building platform.

[0073] The working process of the system is as follows:

[0074] Step 1, according to the deployment architecture diagram, select the appropriate application server to install the kubenets cluster platform, mark the master server cluster of the kubenets cluster platform as master cluster;

[0075] Step 2, develop the interface function required by the image building platform, start the image building platform, and use the interface parameters to analyze, add the required dependencies, whether to become a log monitoring node, etc., and generate a response dockerfile to build an image;

[0076] Step 3, according to step 2, build a local Harbor warehouse, connect the image building platform and the terminal service, and receive the image built by the image building platform in step 2;

[0077] Step 4, write a terminal service program to get the interface parameters of the image building platform, automatically generate a kubenets yaml file and apply it;

[0078] Step 5, according to step 4, generate Harbor trust certificate and harbor login configuration on the terminal service server and the application server;

[0079] Step 6, according to step 4, start the terminal service program on the master cluster;

[0080] Step 7, to ensure the security and confidentiality of the deployment process, the harbor warehouse and terminal service built in steps 3 and 4 need to be encrypted and parsed;

[0081] Step 8, after the image building platform in step 2 successfully builds an image, actively contact the terminal service and submit the service parameters to the terminal service program;

[0082] Step 9, according to the function of the terminal service program in step 4, build the yaml and call the yaml building function of the master cluster in step 1;

[0083] Step 10, after the completion of step 9, the kubenets cluster platform performs health check, restart, etc.

[0084] After deploying the kubenets cluster platform on the application server, only the interface parameters provided by the R&D personnel are required, and the image building platform and the terminal service program can automatically complete the service release through harbor.

[0085] The operation and maintenance personnel in the embodiment can check the deployment progress and the deployment process log file through the state log returned by the deployment process scheduler.

[0086] The terminal service program in the embodiment can be triggered to execute through the parameters provided by the image building platform, the harbor warehouse accepts the image provided by the image building platform, and the terminal service program scheduling is accepted.

[0087] In the deployment process of the embodiment, the log is not only returned to the operation and maintenance personnel through the network for checking, but also exists in the form of a file on the server.

[0088] The terminal service program in the embodiment can retain all the yaml files during the scheduling process, which is conducive to the operation of environment recovery and rollback at any time.

[0089] The terminal service program in the embodiment can directly schedule the interface of the kubenets platform.

[0090] The terminal service program in the embodiment will send the service scheduling record to the operation and maintenance personnel through the interface.

[0091] Embodiment 3:

[0092] The embodiment further provides an electronic device, including a memory and at least one processor;

[0093] The memory stores computer execution instructions;

[0094] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes the kubenets-based project platform operation and maintenance automatic deployment method in any embodiment of the application.

[0095] The processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), ready-to-program gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor can be a microprocessor, or the processor can be any conventional processor.

[0096] The memory can be used to store computer programs and / or modules, and the processor can realize various functions of the electronic device by running or executing the computer programs and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, etc.; and the data storage area can store data created according to the use of the terminal, etc. In addition, the memory can also include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a secure digital (SD) card, a flash memory card, at least one disk storage period, a flash memory device, or other volatile solid-state memory devices.

[0097] Embodiment 4:

[0098] The embodiment also provides a computer readable storage medium, in which a plurality of instructions are stored, the instructions are loaded by a processor to make the processor execute the kubenets-based project platform operation and maintenance automation deployment method in any embodiment of the application. Specifically, a system or device provided with a storage medium can be provided, and the storage medium stores software program code for realizing the functions of any one of the above embodiments, and the computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0099] In this case, the program code read from the storage medium can realize the functions of any one of the above embodiments, and therefore the program code and the storage medium storing the program code constitute a part of the application.

[0100] The storage medium for providing the program code includes a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RYM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer through a communication network.

[0101] In addition, it should be clear that not only the program code read by the computer can be executed, but also part or all of the actual operations can be completed by the operating system and the like operating on the computer based on the instructions of the program code, so as to realize the functions of any one of the above embodiments.

[0102] Further, it is understood that the program code read by the storage medium can be written into the memory provided in the expansion board inserted into the computer or the memory provided in the expansion unit connected to the computer, and then the CPU or the like mounted on the expansion board or the expansion unit is caused to perform part or all of the actual operation based on the instruction of the program code, thereby realizing the function of any of the above-described embodiments.

[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or part or all of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for automated deployment of project platform operation and maintenance based on kubenets, characterized in that, The method is as follows: According to the deployment architecture diagram, select the corresponding application server to install the kubens cluster platform, and mark the kubens master server cluster as the master cluster; Develop the necessary interfaces for the image building platform, start the image building platform, analyze the interface parameter passing through the image building platform, add the required dependencies and whether to become a log monitoring node, generate the response Dockerfile, and build the image; Write a terminal service program to obtain the interface parameters of the image building platform, automatically generate the kubenets yaml file, and apply it on the application server; Set up a local Harbor repository based on the image building platform, connect the image building platform and the terminal service program through the local Harbor repository, and receive images built by the image building platform; Generate Harbor trust certificates and Harbor login configurations on the terminal service program and application server; Start the terminal service program on the master cluster; The terminal service program builds a YAML file and calls the YAML build function of the master cluster; After the YAML build function of the master cluster is completed, the health check and restart of the service are performed through the kubenets cluster platform.

2. The automated deployment method for project platform operation and maintenance based on kubenets according to claim 1, characterized in that, The local Harbor repository and terminal service program encrypt and parse the interface parameters to ensure the security and confidentiality of the deployment process.

3. The automated deployment method for project platform operation and maintenance based on kubenets according to claim 1, characterized in that, After the image building platform successfully builds the image, it actively contacts the terminal service program and submits the service parameters to the terminal service program.

4. The automated deployment method for project platform operation and maintenance based on kubenets according to claim 1, characterized in that, After deploying the kubenets cluster platform on the application server, developers only need to provide interface parameters, and the image building platform and terminal service program will automatically complete the service release process through the local Harbor repository.

5. The automated deployment method for project platform operation and maintenance based on kubenets according to claim 1, characterized in that, This method involves viewing the deployment progress and deployment process log files through the status logs returned by the deployment process terminal service program.

6. The automated deployment method for project platform operation and maintenance based on kubenets according to claim 1, characterized in that, The terminal service program is triggered to execute by parameters provided by the image building platform. The local Harbor repository receives the image built by the image building platform and receives the scheduling of the terminal service program. The terminal service program retains all YAML file records during scheduling, which is beneficial for environment recovery and rollback operations at any time. The terminal service program directly schedules the interfaces of the kubenst cluster platform; The terminal service program sends service scheduling records to operations and maintenance personnel through an interface.

7. The automated deployment method for project platform operation and maintenance based on kubenets according to any one of claims 1 to 6, characterized in that, During the deployment of this method, the logs are returned to the operations and maintenance personnel for querying via the network, while also existing as files on the application server.

8. An automated deployment system for project platform operation and maintenance based on kubenets, characterized in that, This system is used to implement the automated deployment method for project platform operation and maintenance based on kubenets as described in any one of claims 1 to 7; the system includes: The application server is used to install the kubenets cluster platform according to the deployment architecture diagram and mark the kubenets master server cluster as the master cluster. The image building platform is used to analyze the parameters passed to the interface, add the required dependencies and determine whether to become a log monitoring node, generate the response Dockerfile, and build the image. Terminal service program is used to obtain interface parameters of image building platform, automatically generate kubenets yaml file and apply it on application server; The local Harbor repository is used to connect the image building platform and the terminal service program, and to receive images built by the image building platform.

9. An electronic device, characterized in that, include: Memory and at least one processor; The memory contains computer programs; The at least one processor executes the computer program stored in the memory, causing the at least one processor to perform the automated deployment method for project platform operation and maintenance based on kubens as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that can be executed by a processor to implement the automated deployment method for project platform operation and maintenance based on kubenets as described in any one of claims 1 to 7.