Operation and maintenance management method and device, electronic equipment and storage medium

By automatically executing operation and maintenance scripts in Kubernetes and redirecting the results to HTML files, the problems of cumbersome manual operations and security risks during operation and maintenance are solved, and safer and more efficient operation and maintenance management are achieved.

CN120045288APending Publication Date: 2025-05-27BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510202264.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

During the operation and maintenance of Kubernetes, manually logging into the container group pod to execute scripts cumbersome and potential security risks, such as port leakage and key leakage.

Method used

By obtaining the terminal's operation and maintenance instructions and performing identity authentication, the operation and maintenance scripts are obtained from the code warehouse, the script package is generated, and the script package is automatically executed in the container group of Kubernetes, the script execution results are obtained, and the result is redirected to the hypertext markup language file, and the access link is returned to the terminal.

Benefits of technology

Simplified the operation and maintenance operation process, avoiding the risk of enabling SSH services in the container group, and improving the security of operation and maintenance management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120045288A_ABST
    Figure CN120045288A_ABST
Patent Text Reader

Abstract

The invention relates to an operation and maintenance management method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining an operation and maintenance instruction of a terminal; acquiring an operation and maintenance script corresponding to the operation and maintenance instruction from a code warehouse under the condition that the identity authentication of the terminal is passed; generating a script package based on the operation and maintenance script, and executing the script package in a container group of Kubernetes to obtain a script execution result; and redirecting the script execution result to the hypertext markup language file. According to the method, an operation and maintenance platform generates a script package according to an operation and maintenance script obtained from a code warehouse, the script package is automatically executed in a container group of Kubernetes to obtain a script execution result, the script execution result is redirected to a hypertext markup language file, a user can view the script execution result through an access link of the hypertext markup language file, and the user experience is improved. The risk that the SSH service is started in the container group during manual operation of the user is avoided while the operation process is simplified, and the safety of operation and maintenance management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an operation and maintenance management method, device, electronic device and storage medium. Background Art

[0002] With the in-depth application of containerization technology, enterprises are increasingly relying on Kubernetes for application deployment and management. However, during the operation and maintenance process, many operations still require manual login to the container group pod in Kubernetes to execute scripts, such as checking logs and restarting processes. These manual operations are not only cumbersome but also have potential security risks. For example, enabling the Secure Shell (SSH) service in the pod can easily lead to risks such as port leakage and key leakage. Summary of the invention

[0003] The present application provides an operation and maintenance management method, device, electronic device and storage medium to solve the problem of how to avoid potential security risks in the operation and maintenance process.

[0004] In a first aspect, the present application provides an operation and maintenance management method, the method comprising:

[0005] Obtain terminal operation and maintenance instructions;

[0006] When the identity authentication of the terminal is passed, obtaining an operation and maintenance script corresponding to the operation and maintenance instruction from a code repository;

[0007] Generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result;

[0008] Redirecting the script execution result to a hypertext markup language file;

[0009] The access link of the hypertext markup language file is returned to the terminal, so that the terminal can view the script execution result through the access link.

[0010] Optionally, obtain operation and maintenance instructions of the terminal, including:

[0011] Get the command message sent by the terminal through the preset tool;

[0012] The instruction message is parsed to obtain the operation and maintenance instruction, and the operation and maintenance instruction is sent to the script execution platform.

[0013] Optionally, when the identity authentication of the terminal is passed, obtaining an operation and maintenance script corresponding to the operation and maintenance instruction from a code repository includes:

[0014] Acquiring Internet Protocol address information of the terminal;

[0015] If the Internet Protocol address information passes verification, reading the configuration management information of the terminal;

[0016] In a case where the configuration management information indicates that the terminal has management authority, an operation and maintenance script corresponding to the operation and maintenance instruction is obtained from a code repository.

[0017] Optionally, a script package is generated based on the operation and maintenance script, and the script package is executed in a container group of Kubernetes to obtain a script execution result, including:

[0018] Gain access rights to the target Kubernetes;

[0019] Generate a script package based on the operation and maintenance script, and generate a download link for the script package;

[0020] Controlling the target Kubernetes to download the script package through the download link based on the access permission;

[0021] The script package is executed in the container group of the target Kubernetes to obtain a script execution result.

[0022] Optionally, executing the script package in the container group of the target Kubernetes to obtain a script execution result includes:

[0023] Obtain execution configuration information of the target Kubernetes container group;

[0024] The operation and maintenance script in the script package is executed based on the execution configuration information to obtain a script execution result.

[0025] Optionally, redirecting the script execution result to a hypertext markup language file includes:

[0026] The script execution result is redirected to a hypertext markup language file, and the hypertext markup language file is pushed to a preset storage address for storage.

[0027] Optionally, returning the access link of the hypertext markup language file to the terminal so that the terminal can view the script execution result through the access link, includes:

[0028] Generating an access link to the hypertext markup language file;

[0029] The access link is sent to the terminal, so that the terminal can view the script execution result through the access link.

[0030] In a second aspect, the present application provides an operation and maintenance management device, the device comprising:

[0031] An instruction acquisition module is used to obtain operation and maintenance instructions of the terminal;

[0032] A script acquisition module, used to acquire the operation and maintenance script corresponding to the operation and maintenance instruction from the code repository when the identity authentication of the terminal is passed;

[0033] A script execution module is used to generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result;

[0034] A redirection module, used for redirecting the script execution result to a hypertext markup language file;

[0035] The returning module is used to return the access link of the hypertext markup language file to the terminal, so that the terminal can view the script execution result through the access link.

[0036] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0037] Memory, used to store computer programs;

[0038] The processor is used to implement the operation and maintenance management method described in any embodiment of the first aspect when executing the program stored in the memory.

[0039] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the operation and maintenance management method as described in any one of the embodiments of the first aspect is implemented.

[0040] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application obtains the operation and maintenance instructions of the terminal; when the identity authentication of the terminal is passed, obtains the operation and maintenance script corresponding to the operation and maintenance instructions from the code repository; generates a script package based on the operation and maintenance script, and executes the script package in the container group of Kubernetes to obtain the script execution result; redirects the script execution result to a hypertext markup language file; returns the access link of the hypertext markup language file to the terminal, so that the terminal can view the script execution result through the access link. In this method, the operation and maintenance platform generates a script package based on the operation and maintenance script obtained from the code repository, automatically executes the script package in the container group of Kubernetes to obtain the script execution result, and redirects the script execution result to the hypertext markup language file. The user can view the script execution result through the access link of the hypertext markup language file, which simplifies the operation process while avoiding the risk of opening the SSH service in the container group when the user manually operates, thereby improving the security of operation and maintenance management. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0044] Figure 1 A system architecture diagram of an operation and maintenance management method provided for one embodiment of the present application;

[0045] Figure 2 A flowchart of an operation and maintenance management method provided by an embodiment of the present application;

[0046] Figure 3 A schematic diagram of the structure of an operation and maintenance platform provided for one embodiment of the present application;

[0047] Figure 4 A schematic diagram of the structure of an operation and maintenance management device provided in one embodiment of the present application;

[0048] Figure 5 A schematic diagram of the structure of an electronic device provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0050] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0051] In order to solve the problem of how to avoid potential security risks in the operation and maintenance process in the prior art, the present application provides an operation and maintenance management method, device, electronic device and storage medium, which can simplify the operation process while avoiding the risk of enabling SSH service in the container group during manual operation by the user, thereby improving the security of operation and maintenance management.

[0052] The first embodiment of the present application provides an operation and maintenance management method, which can be applied to Figure 1 The system architecture shown includes at least a terminal 101 and an operation and maintenance platform 102 , and the terminal 101 and the operation and maintenance platform 102 establish a communication connection.

[0053] The method can be applied to the operation and maintenance platform 102 in the system architecture, wherein the terminal 101 refers to the user's operating terminal, such as a desktop computer, a tablet computer, a notebook, a supercomputer and other devices; the operation and maintenance platform 102 can be a local server, a cloud server, or a server cluster; the operation and maintenance platform 102 can include a script execution platform, a Kubernetes terminal, a storage server, etc., wherein Kubernetes (also referred to as K8s) is an open source management platform for automatically deploying, scaling and managing containerized applications.

[0054] Next, based on the system architecture, the operation and maintenance management method is described in detail. Figure 2 , the operation and maintenance management method includes:

[0055] Step 201, obtaining operation and maintenance instructions of the terminal.

[0056] In one embodiment, obtaining the operation and maintenance instructions of the terminal includes: obtaining an instruction message sent by the terminal through a preset tool; parsing the instruction message to obtain the operation and maintenance instructions, and sending the operation and maintenance instructions to the script execution platform.

[0057] In this embodiment, the preset tool can be a chat interaction software tool on the terminal, such as Feishu, etc. The user can send command messages through the chat interaction software tool on the terminal. The operation and maintenance platform can parse the command messages to obtain operation and maintenance instructions that represent the user's intentions, and forward the operation and maintenance instructions to the script execution platform in the operation and maintenance platform.

[0058] Step 202: When the identity authentication of the terminal is passed, an operation and maintenance script corresponding to the operation and maintenance instruction is obtained from the code repository.

[0059] The code repository can pre-store various operation and maintenance scripts developed by users according to predetermined specifications, so that when the identity verification and authentication of the terminal pass, the operation and maintenance script corresponding to the operation and maintenance instruction can be obtained from the code repository.

[0060] In one embodiment, when the identity authentication of the terminal is passed, an operation and maintenance script corresponding to the operation and maintenance instruction is obtained from the code repository, including: obtaining the Internet Protocol address information of the terminal; when the Internet Protocol address information is verified, reading the configuration management information of the terminal; when the configuration management information indicates that the terminal has management authority, obtaining the operation and maintenance script corresponding to the operation and maintenance instruction from the code repository.

[0061] In this embodiment, the script execution platform can first confirm the user identity, for example, by verifying whether the Internet Protocol Address (IP address) information of the terminal belongs to a preset address to confirm the user identity. When the IP address information is verified, the terminal's Configuration Management Database (CMDB) information can be further read to check whether the terminal has management authority over the application. When the CMDB information indicates that the terminal has management authority, the operation and maintenance script corresponding to the operation and maintenance instruction can be obtained from the code repository.

[0062] Step 203: Generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain the script execution result.

[0063] In one embodiment, a script package is generated based on an operation and maintenance script, and the script package is executed in a container group of Kubernetes to obtain a script execution result, including: obtaining access rights to a target Kubernetes; generating a script package based on an operation and maintenance script, and generating a download link for the script package; controlling the target Kubernetes to download the script package through the download link based on access rights; and executing the script package in a container group of the target Kubernetes to obtain a script execution result.

[0064] In this embodiment, the script execution platform needs to first obtain access rights to the target Kubernetes terminal, and package the obtained operation and maintenance script to generate a script package. The script package is not executed directly, but the script execution platform provides a script package download link, and the target Kubernetes container group pod downloads the script package through the download link, and executes the script package in the pod to obtain the script execution result. Since it is executed through the preset operation and maintenance script and the script execution platform, the risk of enabling the SSH service in the pod during the execution process is avoided.

[0065] In one embodiment, executing a script package in a target Kubernetes container group to obtain a script execution result includes: obtaining execution configuration information of the target Kubernetes container group; and executing an operation and maintenance script in the script package based on the execution configuration information to obtain a script execution result.

[0066] In this embodiment, in the process of executing the script package in the target Kubernetes container group to obtain the script execution result, the execution configuration information of the target Kubernetes pod (such as K8S-exec configuration) can be obtained, and the operation and maintenance script in the K8S-exec configuration straight line script package can be used to obtain the script execution result.

[0067] Step 204: redirect the script execution result to a hypertext markup language file.

[0068] After the operation and maintenance script is executed, all outputs after the script execution are redirected to a Hypertext Markup Language (HTML) file to prevent users from directly accessing Kubernetes, thereby ensuring operation and maintenance security.

[0069] In one embodiment, redirecting the script execution result to a hypertext markup language file includes: redirecting the script execution result to the hypertext markup language file, and pushing the hypertext markup language file to a preset storage address for storage.

[0070] In this embodiment, the pod may push the generated HTML file to a preset storage address for storage, such as to a storage server for storage, thereby providing a function of querying historical records.

[0071] Step 205: Return the access link of the hypertext markup language file to the terminal, so that the terminal can view the script execution result through the access link.

[0072] In this method, the operation and maintenance platform generates a script package based on the operation and maintenance script obtained from the code repository, automatically executes the script package in the container group of Kubernetes to obtain the script execution result, and redirects the script execution result to a hypertext markup language file. Users can view the script execution result through the access link of the hypertext markup language file. While simplifying the operation process, it avoids the risk of enabling the SSH service in the container group during manual operation by users, and improves the security of operation and maintenance management.

[0073] In one embodiment, returning an access link of a hypertext markup language file to a terminal so that the terminal can view the script execution result through the access link includes: generating an access link of the hypertext markup language file; sending the access link to the terminal so that the terminal can view the script execution result through the access link.

[0074] In this embodiment, the operation and maintenance platform can generate an access link for the HTML file, and can return the access link for the HTML file to the terminal through a chat interaction software tool, so that the user can view the script execution results through the access link on the terminal. The entire operation and maintenance management process is convenient and efficient, and does not generate security risks such as accidentally opening the SSH service in the pod, thereby improving the security of operation and maintenance management.

[0075] In a specific embodiment, the operation and maintenance platform may be an artificial intelligence for IT operations (AIOPS) platform that can automatically execute exec commands, such as Figure 3 ,The operation and maintenance platform includes : target verification module, authentication module, command generation module, command execution module, result storage module, version management module, notification module and log module.

[0076] Among them, users can develop operation and maintenance scripts according to predetermined specifications and push them to the code repository for management. Users send instructions to the operation and maintenance platform through chat tools (such as Feishu, WeChat, DingTalk, etc.). After the AI ​​system parses the user's intention, it obtains the operation and maintenance instructions. The user's identity is confirmed and authenticated through the target verification module and the authentication module, for example, obtaining the target IP information, verifying the relationship between the IP and the target application, reading the cmdb information, and verifying whether the user has the corresponding permissions for the target application. The command generation module pulls the code from the code repository, obtains the latest operation and maintenance script, verifies the availability of the code, and if available, packages the script package and generates a download link for the script package. The download link is sent to the command execution module. The command execution module obtains the k8s-exec configuration. The pod in Kubernetes will download the script package according to the link and execute the shell command generated based on the operation and maintenance script to obtain the script execution result. According to the script specification, all outputs after the script is executed will be redirected to the HTML file. The result storage module can generate an upload connection for the script execution result and upload the result to HTML. At the same time, the platform will obtain the corresponding Kubernetes terminal access rights for subsequent operations. The chat tool returns the access link of the HTML file to the user, through which the user can view the execution results of the operation and maintenance script. Among them, the version management is responsible for recording the gitlab version and command execution, the notification module is responsible for operator notification and application administrator notification, and the log module records task status changes and task details printing. Through the above steps, this embodiment realizes a convenient, efficient and secure Kubernetes automated operation and maintenance management solution.

[0077] Based on the same technical concept, the second embodiment of the present application provides an operation and maintenance management device, such as Figure 4 , the device comprises:

[0078] The instruction acquisition module 401 is used to acquire the operation and maintenance instructions of the terminal;

[0079] The script acquisition module 402 is used to acquire the operation and maintenance script corresponding to the operation and maintenance instruction from the code repository when the identity authentication of the terminal is passed;

[0080] The script execution module 403 is used to generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result;

[0081] A redirection module 404, used to redirect the script execution result to a hypertext markup language file;

[0082] The return module 405 is used to return the access link of the hypertext markup language file to the terminal, so that the terminal can view the script execution result through the access link.

[0083] The device, the operation and maintenance platform generates a script package according to the operation and maintenance script obtained from the code repository, automatically executes the script package in the container group of Kubernetes to obtain the script execution result, and redirects the script execution result to a hypertext markup language file. The user can view the script execution result through the access link of the hypertext markup language file, which simplifies the operation process and avoids the risk of opening the SSH service in the container group when the user manually operates, thereby improving the security of operation and maintenance management.

[0084] like Figure 5 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.

[0085] Memory 113, used for storing computer programs;

[0086] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the operation and maintenance management method provided by any of the above method embodiments, including:

[0087] Obtain terminal operation and maintenance instructions;

[0088] When the identity authentication of the terminal is passed, obtaining an operation and maintenance script corresponding to the operation and maintenance instruction from a code repository;

[0089] Generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result;

[0090] Redirecting the script execution result to a hypertext markup language file;

[0091] The access link of the hypertext markup language file is returned to the terminal, so that the terminal can view the script execution result through the access link.

[0092] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0093] The communication interface is used for communication between the above terminal and other devices.

[0094] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0095] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0096] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the operation and maintenance management method provided by any one of the above method embodiments is implemented, including:

[0097] Obtain terminal operation and maintenance instructions;

[0098] When the identity authentication of the terminal is passed, obtaining an operation and maintenance script corresponding to the operation and maintenance instruction from a code repository;

[0099] Generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result;

[0100] Redirecting the script execution result to a hypertext markup language file;

[0101] The access link of the hypertext markup language file is returned to the terminal, so that the terminal can view the script execution result through the access link.

[0102] Optionally, obtain operation and maintenance instructions of the terminal, including:

[0103] Get the command message sent by the terminal through the preset tool;

[0104] The instruction message is parsed to obtain the operation and maintenance instruction, and the operation and maintenance instruction is sent to the script execution platform.

[0105] Optionally, when the identity authentication of the terminal is passed, obtaining an operation and maintenance script corresponding to the operation and maintenance instruction from a code repository includes:

[0106] Acquiring Internet Protocol address information of the terminal;

[0107] If the Internet Protocol address information passes verification, reading the configuration management information of the terminal;

[0108] In a case where the configuration management information indicates that the terminal has management authority, an operation and maintenance script corresponding to the operation and maintenance instruction is obtained from a code repository.

[0109] Optionally, a script package is generated based on the operation and maintenance script, and the script package is executed in a container group of Kubernetes to obtain a script execution result, including:

[0110] Gain access rights to the target Kubernetes;

[0111] Generate a script package based on the operation and maintenance script, and generate a download link for the script package;

[0112] Controlling the target Kubernetes to download the script package through the download link based on the access permission;

[0113] The script package is executed in the container group of the target Kubernetes to obtain a script execution result.

[0114] Optionally, executing the script package in the container group of the target Kubernetes to obtain a script execution result includes:

[0115] Obtain execution configuration information of the target Kubernetes container group;

[0116] The operation and maintenance script in the script package is executed based on the execution configuration information to obtain a script execution result.

[0117] Optionally, redirecting the script execution result to a hypertext markup language file includes:

[0118] The script execution result is redirected to a hypertext markup language file, and the hypertext markup language file is pushed to a preset storage address for storage.

[0119] Optionally, returning the access link of the hypertext markup language file to the terminal so that the terminal can view the script execution result through the access link, includes:

[0120] Generating an access link to the hypertext markup language file;

[0121] The access link is sent to the terminal, so that the terminal can view the script execution result through the access link.

[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0124] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0125] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. In the description, the suffixes such as "module", "component" or "unit" used to represent the elements are only used to facilitate the description of the present application and have no specific meaning in themselves. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0126] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. An operation and maintenance management method, characterized in that: The method comprises: Obtain terminal operation and maintenance instructions; When the identity authentication of the terminal is passed, obtaining an operation and maintenance script corresponding to the operation and maintenance instruction from a code repository; Generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result; Redirecting the script execution result to a hypertext markup language file; The access link of the hypertext markup language file is returned to the terminal, so that the terminal can view the script execution result through the access link.

2. The method according to claim 1, characterized in that: Obtain terminal operation and maintenance instructions, including: Get the command message sent by the terminal through the preset tool; The instruction message is parsed to obtain the operation and maintenance instruction, and the operation and maintenance instruction is sent to the script execution platform.

3. The method according to claim 1, characterized in that When the identity authentication of the terminal is passed, obtaining the operation and maintenance script corresponding to the operation and maintenance instruction from the code repository includes: Acquiring Internet Protocol address information of the terminal; If the Internet Protocol address information passes verification, reading the configuration management information of the terminal; In a case where the configuration management information indicates that the terminal has management authority, an operation and maintenance script corresponding to the operation and maintenance instruction is obtained from a code repository.

4. The method according to claim 1, characterized in that: Generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain the script execution result, including: Gain access rights to the target Kubernetes; Generate a script package based on the operation and maintenance script, and generate a download link for the script package; Controlling the target Kubernetes to download the script package through the download link based on the access permission; The script package is executed in the container group of the target Kubernetes to obtain a script execution result.

5. The method according to claim 4, characterized in that Execute the script package in the target Kubernetes container group to obtain the script execution result, including: Obtain execution configuration information of the target Kubernetes container group; The operation and maintenance script in the script package is executed based on the execution configuration information to obtain a script execution result.

6. The method according to claim 1, characterized in that Redirecting the script execution result to a hypertext markup language file includes: The script execution result is redirected to a hypertext markup language file, and the hypertext markup language file is pushed to a preset storage address for storage.

7. The method according to claim 1, characterized in that Returning the access link of the hypertext markup language file to the terminal so that the terminal can view the script execution result through the access link, including: Generating an access link to the hypertext markup language file; The access link is sent to the terminal, so that the terminal can view the script execution result through the access link.

8. An operation and maintenance management device, characterized in that: The device comprises: An instruction acquisition module is used to obtain operation and maintenance instructions of the terminal; A script acquisition module, used to acquire the operation and maintenance script corresponding to the operation and maintenance instruction from the code repository when the identity authentication of the terminal is passed; A script execution module is used to generate a script package based on the operation and maintenance script, and execute the script package in the container group of Kubernetes to obtain a script execution result; A redirection module, used for redirecting the script execution result to a hypertext markup language file; The returning module is used to return the access link of the hypertext markup language file to the terminal, so that the terminal can view the script execution result through the access link.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the operation and maintenance management method described in any one of claims 1 to 7 when executing the program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the operation and maintenance management method according to any one of claims 1 to 7 is implemented.