Node operation and maintenance method and device for container cloud platform
By calling the cluster interface to customize the system configuration information of the operating system in the container cloud platform, and using the system configuration controller and node proxy container to generate and manage node-level configuration information, the problem of Kubernetes' difficulty in managing container cloud platform work nodes is solved, and the problem of Kubernetes is realized. Efficient operation and maintenance management and low error rate node configuration.
Patent Information
- Application Number
- CN202411584157.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-18
AI Technical Summary
The existing technology is difficult to implement Kubernetes' management of container cloud platform work nodes, resulting in high node configuration error rate, low operation and maintenance management efficiency, and requires a lot of manual management, making it difficult to achieve real-time monitoring and rapid response.
By calling the cluster interface to customize the system configuration information of the operating system in the container cloud platform, using the system configuration controller to monitor and parse the system configuration information, generate node-level configuration information, and monitor and analyze the node-level configuration information through the node proxy container , and the daemon process is finally operated and maintained.
Kubernetes manages container cloud platform work nodes, reduces the error rate of node configuration, improves operation and maintenance management efficiency, and reduces labor costs.
Smart Images

Figure CN119484286A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud native technology, and in particular to a node operation and maintenance method and device for a container cloud platform. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No admission is made that the description herein is prior art by inclusion in this section.
[0003] Currently, for container cloud platforms based on Kubernetes, under normal circumstances, Kubernetes cannot manage the nodes of the container cloud platform. In addition, the operation and maintenance management of the working nodes of the container cloud platform requires manual management and a lot of manpower, and due to the repetitiveness and complexity of the operating system, it is easy to cause errors in the configuration information of the nodes, resulting in service interruptions; manual management methods are difficult to achieve real-time monitoring and rapid response, and cannot detect problems in time, so that small problems may appear on multiple working nodes, causing more extensive service problems; at the same time, manual management methods are inefficient and cannot be quickly replicated and applied in large-scale environments. Summary of the invention
[0004] The embodiment of the present invention provides a node operation and maintenance method of a container cloud platform, which is used to implement Kubernetes management of working nodes of the container cloud platform, reduce the error rate of node configuration, improve operation and maintenance management efficiency, and reduce labor costs. The method includes:
[0005] In the container cloud platform, the cluster interface is called to customize the system configuration information of the operating system, and the system configuration information of the operating system is monitored through the system configuration controller. When the system configuration information is monitored to change, the system configuration information is parsed through the system configuration controller to obtain the parsed system configuration content;
[0006] Based on the system configuration content, node-level configuration information of each working node is generated by the system configuration controller; the working nodes are pre-deployed in the container cloud platform;
[0007] The node-level configuration information is monitored one-to-one through the node agent container. When the node-level configuration information is monitored to be changed, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node;
[0008] Based on the node configuration content, the corresponding node is operated and managed through the daemon process of each node.
[0009] The embodiment of the present invention further provides a node operation and maintenance device for a container cloud platform, which is used to implement Kubernetes management of working nodes of the container cloud platform, reduce the error rate of node configuration, improve operation and maintenance management efficiency, and reduce labor costs. The device includes:
[0010] The system configuration information parsing module is used to call the cluster interface to customize the system configuration information of the operating system in the container cloud platform, monitor the system configuration information of the operating system through the system configuration controller, and parse the system configuration information through the system configuration controller when the system configuration information is monitored to obtain the parsed system configuration content;
[0011] A node-level configuration information generation module is used to generate node-level configuration information of each working node through a system configuration controller based on system configuration content; working nodes are pre-deployed in the container cloud platform;
[0012] A node-level configuration information parsing module is used to monitor the node-level configuration information one-to-one through a node agent container. When a change in the node-level configuration information is detected, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node;
[0013] The node operation and maintenance management module is used to perform operation and maintenance management on the corresponding node through the daemon process of each node based on the node configuration content.
[0014] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the node operation and maintenance method of the above-mentioned container cloud platform when executing the computer program.
[0015] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the node operation and maintenance method of the above-mentioned container cloud platform is implemented.
[0016] An embodiment of the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the node operation and maintenance method of the above-mentioned container cloud platform.
[0017] In an embodiment of the present invention, in a container cloud platform, the system configuration information of a custom operating system is called through a cluster interface, and the system configuration information of the operating system is monitored through a system configuration controller. When the system configuration information is monitored to change, the system configuration information is parsed through the system configuration controller to obtain the parsed system configuration content; based on the system configuration content, the node-level configuration information of each working node is generated through the system configuration controller; the working node is pre-deployed in the container cloud platform; the node-level configuration information is monitored one-to-one through a node agent container, and when the node-level configuration information is monitored to change, the node-level configuration information is parsed through a node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node; based on the node configuration content, the corresponding node is operated and maintained by the daemon process of each node. In the above process, the embodiment of the present invention calls the system configuration information of the custom operating system through the Kubernetes cluster interface, and the system configuration information of the operating system is monitored through the system configuration controller. When the system configuration controller perceives that the system configuration information has changed, the system configuration controller will obtain and parse the system configuration information, and generate node-level configuration information according to the parsed system configuration content, thereby realizing Kubernetes' management of the working nodes of the container cloud platform. The node agent container then monitors the node-level configuration information. When the node configuration information changes, the node agent container will obtain and parse the node configuration information. Based on the parsed node configuration content, the daemon process completes the operation and maintenance management of the current node without manual management. This reduces the error rate of node configuration, improves the efficiency of operation and maintenance management, and reduces labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 This is a flow chart of a node operation and maintenance method of a container cloud platform in an embodiment of the present invention;
[0020] Figure 2 Schematic diagram of the operation and maintenance management process in an embodiment of the present invention;
[0021] Figure 3 A flowchart of parsing system configuration information in an embodiment of the present invention;
[0022] Figure 4 A flowchart of parsing node-level configuration information in an embodiment of the present invention;
[0023] Figure 5 This is a flowchart of abnormal node operation and maintenance management in an embodiment of the present invention;
[0024] Figure 6 A flowchart of updating node-level configuration information in an embodiment of the present invention;
[0025] Figure 7 It is a schematic diagram of a node operation and maintenance device of a container cloud platform in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0027] Figure 1 The flowchart of the node operation and maintenance method of the container cloud platform in an embodiment of the present invention includes:
[0028] Step 101: In the container cloud platform, the cluster interface is called to customize the system configuration information of the operating system, and the system configuration information of the operating system is monitored through the system configuration controller. When the system configuration information is monitored to be changed, the system configuration information is parsed through the system configuration controller to obtain the parsed system configuration content;
[0029] Step 102, based on the system configuration content, generating node-level configuration information of each working node through the system configuration controller; the working nodes are pre-deployed in the container cloud platform;
[0030] Step 103, one-to-one monitoring of node-level configuration information is performed through a node agent container. When a change in the node-level configuration information is monitored, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node;
[0031] Step 104: Based on the node configuration content, the corresponding node is operated and managed through the daemon process of each node.
[0032] The embodiment of the present invention performs node operation and maintenance management based on a container cloud platform for Kubernetes, such as Figure 2 As shown, Figure 2Schematic diagram of the operation and maintenance management process in an embodiment of the present invention. Based on the informer notification mechanism of the Kubernetes cluster, when the system configuration controller (OS-Operator) is started, it will initiate a listening request for the custom resources in the system configuration information (OSConfig) to the Kubernetes cluster interface; when the system configuration controller (OS-Operator) perceives that the system configuration information (OSConfig) has changes such as addition, update or deletion, the system configuration controller (OS-Operator) will obtain and parse the system configuration information (OSConfig), and generate the node-level configuration information (NodeConfig) according to the operation and maintenance strategy defined in the system configuration information (OSConfig); similarly, the node proxy container (os-proxy) will also initiate a listening request for the node-level configuration information (NodeConfig) to the kubernetes APIServer based on the same principle. When the custom resources of the node configuration information (NodeConfig) change, the node proxy container (os-proxy) will obtain the node configuration information (NodeConfig) related to the node based on the information of the node; after the node proxy container (os-agent) completes the parsing and verification, it completes the operation and maintenance management of the kernel and core components of the current node system by calling the node-level daemon (os-agent), and reports the operation and maintenance management results of the node system.
[0033] In the above process, two key services are run on each working node: one is the system proxy container (os-proxy), and the other is the system management daemon (os-agent); the system proxy container and the daemon are combined to encapsulate the operation and maintenance management capabilities of the Linux system and core components that cannot be directly managed through the container cloud platform into a system management proxy container with the same status as the business container, so that the control mechanism of cloud native best practices can be used to operate and manage the working nodes of the container cloud platform. The daemon (os-agent) runs on each working node and can configure, start, stop, restart and other management operations on the system and important services; the daemon is started with super privileges and resident on the Linux operating system of the working node, with the authority and ability to operate and manage the system and services; the daemon provides an external interface for receiving upper-level instructions, and then completes the system operation and maintenance and service management of the local machine according to the instructions. The system proxy container (os-proxy) runs on each working node as a cloud native container. By sensing the basic information of the node, such as the node name, it registers with the central server of the container cloud platform's control plane, and perceives the custom resource (CR) information of the system management allocated to the local machine in real time; the proxy container analyzes the resource information of the system management, calls the local daemon process (os-agent) to execute the corresponding system management instructions, and realizes the query of system information, the configuration of core components, and the management of the life cycle; at the same time, the proxy container collects local information through the daemon process, and reports the statistics to the central server of the cloud platform.
[0034] Each step is described in detail below.
[0035] In step 101, in the container cloud platform, the cluster interface is called to customize the system configuration information of the operating system, and the system configuration information of the operating system is monitored through the system configuration controller. When the system configuration information is monitored to change, the system configuration information is parsed through the system configuration controller to obtain the parsed system configuration content.
[0036] In one embodiment, monitoring the system configuration information of the operating system by the system configuration controller includes:
[0037] According to the monitoring request initiated by the system configuration controller, the Kubernetes cluster interface is called to monitor the system configuration information.
[0038] In a specific embodiment, the system controller (OS-Operator) can use the notification mechanism of the Kubernetes cluster to perceive the dynamic changes of the system configuration information (OSConfig) in real time, implement the analysis and verification of the system configuration information, and automatically implement the node selection and node level distribution according to the node operation and maintenance management strategy; at the same time, it controls the concurrency and operation and maintenance progress of multiple nodes for system management; when operation and maintenance problems occur, it can promptly control the node to terminate the operation and maintenance management, and perform rollback to restore the operating status of the core components of the node.
[0039] In a specific embodiment, the stage of creating system configuration information includes: in this stage, the system information configuration of the container cloud platform is mainly completed. The user can use the API, SDK interface of the Kubernetes cluster or the user console interface of the product layer to create system configuration information (OSConfig), and dynamically implement the system operation and maintenance operations that need to be completed by the specified node of the container cloud platform through OSConfig, such as Figure 2 As shown in the following table, the system configuration information (OSConifg) mainly describes the following contents:
[0040] A). Node selection strategy: Select nodes that meet the requirements by setting node selection conditions; only through the selected container cloud platform nodes can the corresponding nodes be managed for system operation and maintenance;
[0041] B). System configuration information: By dynamically setting the system configuration information, determine which components on a specific node are to be operated and managed, such as setting system kernel parameters for Linux systems; or setting kubelet operating parameters for core components of the container cloud platform; or modifying the docker configuration file when the container is running. At the same time, set the modification content for specific container cloud platform components, such as kernel parameters: net.ipv4.tcp_fin_timeout, or cni component parameters mtu, and container runtime parameters insecure_registries, etc.;
[0042] C). Other configuration options: For example, setting the number of concurrent system operation and maintenance nodes, controlling the overall operation and maintenance management progress of the container cloud platform, and promptly terminating system operation and maintenance operations and performing rollback and recovery when configuration anomalies occur; setting detection cycles, periodically detecting the node update status during system operation and maintenance, and promptly discovering problems that arise during the operation and maintenance process.
[0043] Figure 3 The flowchart of parsing system configuration information in an embodiment of the present invention is as follows. In one embodiment, when a change in the system configuration information is detected, the system configuration information is parsed by the system configuration controller, including:
[0044] Step 301, when it is monitored that the system configuration information is added or deleted, the system configuration information is parsed by the system configuration controller;
[0045] Step 302: The system configuration controller communicates according to the newly added or deleted system configuration information to obtain the parsed system configuration content.
[0046] In step 102, based on the system configuration content, node-level configuration information of each working node is generated by the system configuration controller; the working nodes are pre-deployed in the container cloud platform.
[0047] In a specific embodiment, Figure 2 "2. Parse OSConfig" and "3. Create NodeConfig" in "2. Parse OSConfig" and "3. Create NodeConfig". The specific process is: complete the parsing of cluster-level system configuration information (OSConfig) and generate node-level configuration information (NodeConfig) according to the operation and maintenance strategy. The system configuration controller (OS-Openrator) continuously monitors the event information of the cluster-level system configuration information (OSConfig). When there is event information such as creation and update of the system configuration information (OSConfig), it obtains the system configuration information (OSConfig) for parsing; according to the content configured in the system configuration information (OSConfig), after the system configuration controller (OS-Operator) completes the parsing and verification, it generates or updates the node configuration information (NodeConfig) of the corresponding node for the selected container cloud platform node.
[0048] In step 103, the node-level configuration information is monitored one-to-one through the node agent container. When the node-level configuration information is monitored to change, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node.
[0049] Figure 4 The flowchart of parsing node-level configuration information in an embodiment of the present invention is as follows. In one embodiment, when a change in node-level configuration information is detected, the node-level configuration information is parsed by a node agent container, including:
[0050] Step 401, when it is monitored that the node-level configuration information is added or deleted, the node-level configuration information is parsed through the node agent container;
[0051] Step 402: The node agent container communicates according to the newly added or deleted node-level configuration information to obtain the parsed node configuration content.
[0052] In a specific embodiment, Figure 2In "4. Parse NodeConfig" and "5. Execute system management", this stage mainly completes the system configuration execution of node-level configuration information (NodeConfig) on the container cloud platform node. The system proxy container (os-proxy) on the node continuously monitors the event change information of the node-level configuration information (NodeConfig). When it finds that the configuration information related to this node has changed, the node proxy container (os-proxy) will obtain the corresponding node-level configuration information (NodeConfig). After the node proxy container (os-proxy) completes the parsing and verification of the node configuration information, it implements the operation and maintenance management of the Linux kernel, the core components of the container cloud platform, the container runtime, etc. by calling the daemon process (os-agent) on this node. If an operation abnormality occurs during the operation and maintenance management process, the node proxy container (os-proxy) will also call the daemon process (os-agent) in time to perform a rollback recovery operation for system management. At the same time, the node proxy container (os-proxy) periodically calls the daemon process (os-agent) to complete the inspection of the local system operation and maintenance status, and promptly reports the system operation status and abnormalities that occur during the operation and maintenance process, so that users can modify the system configuration information and perform system operation and maintenance management operations again.
[0053] In step 104, based on the node configuration content, the corresponding node is operated and managed through the daemon process of each node.
[0054] Figure 5 The flowchart of abnormal node operation and maintenance management in an embodiment of the present invention is shown in FIG. 1 . In one embodiment, based on the node configuration content, the operation and maintenance management of the corresponding node is performed through the daemon process of each node, and further includes:
[0055] Step 501, analyzing the node configuration content through the node agent container, and determining the abnormal node according to the analysis result;
[0056] Step 502: Call the daemon process of the abnormal node through the node agent container, and execute corresponding operation and maintenance management instructions on the abnormal node through the daemon process.
[0057] Figure 6 This is a flow chart of updating node-level configuration information in an embodiment of the present invention. In one embodiment, after the corresponding node is operated and managed by the daemon process of each node based on the node configuration content, it also includes:
[0058] Step 601, obtaining the operation and maintenance management execution results of each working node of the container cloud platform;
[0059] Step 602: Update the node-level configuration information of the working node according to the operation and maintenance management execution result.
[0060] In a specific embodiment, Figure 2 In "6. Reporting Node Operation and Maintenance Results" and "7. Query Results", this stage mainly completes the collection of system operation and maintenance results and statistics of query results. After the node proxy container (os-proxy) calls the daemon process to complete the system operation and maintenance management, it collects the status information of the system operation and maintenance management and updates it to the status information of the node-level configuration information (NodeConfig); thereafter, the system configuration controller (OS-Operator) collects the execution status of the system operation and maintenance management of each container cloud platform node, and sets it to the status information of the cluster-level system configuration information (OSConfig) after statistics.
[0061] The acquisition, transmission, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0062] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0063] The embodiment of the present invention also provides a node operation and maintenance device for a container cloud platform, as described in the following embodiment. Since the principle of solving the problem by the device is similar to the node operation and maintenance method of the container cloud platform, the implementation of the device can refer to the implementation of the node operation and maintenance method of the container cloud platform, and the repeated parts will not be repeated.
[0064] Figure 7 Schematic diagram of a node operation and maintenance device of a container cloud platform in an embodiment of the present invention, the device includes:
[0065] The system configuration information parsing module 701 is used to call the cluster interface to customize the system configuration information of the operating system in the container cloud platform, monitor the system configuration information of the operating system through the system configuration controller, and when the system configuration information is monitored to change, parse the system configuration information through the system configuration controller to obtain the parsed system configuration content;
[0066] A node-level configuration information generation module 702 is used to generate node-level configuration information of each working node through a system configuration controller based on the system configuration content; the working nodes are pre-deployed in the container cloud platform;
[0067] The node-level configuration information parsing module 703 is used to monitor the node-level configuration information one-to-one through the node agent container, and when the node-level configuration information is monitored to change, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node;
[0068] The node operation and maintenance management module 704 is used to perform operation and maintenance management on the corresponding node through the daemon process of each node based on the node configuration content.
[0069] In one embodiment, the system configuration information parsing module 701 is specifically used to:
[0070] According to the monitoring request initiated by the system configuration controller, the Kubernetes cluster interface is called to monitor the system configuration information.
[0071] In one embodiment, the system configuration information parsing module 701 is specifically used to:
[0072] When it is detected that the system configuration information is added or deleted, the system configuration information is parsed through the system configuration controller;
[0073] The system configuration controller communicates according to the newly added or deleted system configuration information to obtain the parsed system configuration content.
[0074] In one embodiment, the node-level configuration information parsing module 703 is specifically used to:
[0075] When the node-level configuration information is detected to be added or deleted, the node-level configuration information is parsed through the node agent container;
[0076] The node agent container communicates according to the newly added or deleted node-level configuration information to obtain the parsed node configuration content.
[0077] In one embodiment, the node operation and maintenance management module 704 is further used to:
[0078] Analyze the node configuration content through the node agent container and identify abnormal nodes based on the analysis results;
[0079] The daemon process of the abnormal node is called through the node agent container, and the corresponding operation and maintenance management instructions are executed on the abnormal node through the daemon process.
[0080] In one embodiment, the node operation and maintenance management module 704 is further used to:
[0081] Obtain the operation and maintenance management execution results of each working node of the container cloud platform;
[0082] According to the operation and maintenance management execution results, the node-level configuration information of the working node is updated.
[0083] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the node operation and maintenance method of the above-mentioned container cloud platform when executing the computer program.
[0084] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the node operation and maintenance method of the above-mentioned container cloud platform is implemented.
[0085] An embodiment of the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the node operation and maintenance method of the above-mentioned container cloud platform.
[0086] In an embodiment of the present invention, in a container cloud platform, the system configuration information of a custom operating system is called through a cluster interface, and the system configuration information of the operating system is monitored through a system configuration controller. When the system configuration information is monitored to change, the system configuration information is parsed through the system configuration controller to obtain the parsed system configuration content; based on the system configuration content, the node-level configuration information of each working node is generated through the system configuration controller; the working node is pre-deployed in the container cloud platform; the node-level configuration information is monitored one-to-one through a node agent container, and when the node-level configuration information is monitored to change, the node-level configuration information is parsed through a node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node; based on the node configuration content, the corresponding node is operated and maintained by the daemon process of each node. In the above process, the embodiment of the present invention calls the system configuration information of the custom operating system through the Kubernetes cluster interface, and the system configuration information of the operating system is monitored through the system configuration controller. When the system configuration controller perceives that the system configuration information has changed, the system configuration controller will obtain and parse the system configuration information, and generate node-level configuration information according to the parsed system configuration content, thereby realizing Kubernetes' management of the working nodes of the container cloud platform. The node agent container then monitors the node-level configuration information. When the node configuration information changes, the node agent container will obtain and parse the node configuration information. Based on the parsed node configuration content, the daemon process completes the operation and maintenance management of the current node without manual management. This reduces the error rate of node configuration, improves the efficiency of operation and maintenance management, and reduces labor costs.
[0087] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A node operation and maintenance method for a container cloud platform, characterized in that: include: In the container cloud platform, the cluster interface is called to customize the system configuration information of the operating system, and the system configuration information of the operating system is monitored through the system configuration controller. When the system configuration information is monitored to change, the system configuration information is parsed through the system configuration controller to obtain the parsed system configuration content; Based on the system configuration content, node-level configuration information of each working node is generated by the system configuration controller; the working nodes are pre-deployed in the container cloud platform; The node-level configuration information is monitored one-to-one through the node agent container. When the node-level configuration information is monitored to be changed, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node; Based on the node configuration content, the corresponding node is operated and managed through the daemon process of each node.
2. The method according to claim 1, characterized in that The system configuration controller monitors the system configuration information of the operating system, including: According to the monitoring request initiated by the system configuration controller, the Kubernetes cluster interface is called to monitor the system configuration information.
3. The method according to claim 1, characterized in that When the system configuration information is monitored to change, the system configuration information is parsed through the system configuration controller, including: When it is detected that the system configuration information is added or deleted, the system configuration information is parsed through the system configuration controller; The system configuration controller communicates according to the newly added or deleted system configuration information to obtain the parsed system configuration content.
4. The method according to claim 1, characterized in that When changes are detected in node-level configuration information, the node-level configuration information is parsed through the node agent container, including: When the node-level configuration information is detected to be added or deleted, the node-level configuration information is parsed through the node agent container; The node agent container communicates according to the newly added or deleted node-level configuration information to obtain the parsed node configuration content.
5. The method according to claim 1, characterized in that Based on the node configuration content, the corresponding node is operated and managed through the daemon process of each node, including: Analyze the node configuration content through the node agent container and identify abnormal nodes based on the analysis results; The daemon process of the abnormal node is called through the node agent container, and the corresponding operation and maintenance management instructions are executed on the abnormal node through the daemon process.
6. The method according to claim 1, characterized in that After the corresponding node is operated and managed through the daemon process of each node based on the node configuration content, it also includes: Obtain the operation and maintenance management execution results of each working node of the container cloud platform; According to the operation and maintenance management execution results, the node-level configuration information of the working node is updated.
7. A node operation and maintenance device for a container cloud platform, characterized in that: include: The system configuration information parsing module is used to call the cluster interface to customize the system configuration information of the operating system in the container cloud platform, monitor the system configuration information of the operating system through the system configuration controller, and parse the system configuration information through the system configuration controller when the system configuration information is monitored to obtain the parsed system configuration content; A node-level configuration information generation module is used to generate node-level configuration information of each working node through a system configuration controller based on system configuration content; working nodes are pre-deployed in the container cloud platform; A node-level configuration information parsing module is used to monitor the node-level configuration information one-to-one through a node agent container. When a change in the node-level configuration information is detected, the node-level configuration information is parsed through the node agent container to obtain the parsed node configuration content; the node agent container is pre-deployed on each working node; The node operation and maintenance management module is used to perform operation and maintenance management on the corresponding node through the daemon process of each node based on the node configuration content.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Zookeeper-technology-based system cluster method and system
CN106375342A
Container cloud cluster node anomaly detection method and system
CN114942875A
Container task query method and device, equipment and storage medium
CN116910123A
Cluster security check method, apparatus and device, and storage medium
CN116962260A
Operating system arrangement method and device
CN118796346A