Cluster management method and device, computer device and storage medium
By receiving cluster management requests from users, determining the cluster type, and managing it accordingly, the problem of low efficiency in managing resources across different cloud platforms and availability zones in existing technologies is solved, thus achieving efficient cluster management.
Patent Information
- Application Number
- CN202110394569.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-04-13
AI Technical Summary
Existing multi-cluster management technologies are difficult to manage efficiently resources distributed across different cloud platforms or different availability zones on the same cloud platform, and are subject to network and environmental limitations.
By receiving cluster management requests initiated by users, the cluster type of the cluster to be managed is determined, and the cluster is forwarded or managed directly according to the type, so as to achieve efficient management of resources on different cloud platforms or different availability zones of the same cloud platform.
It improves cluster management efficiency and enables efficient management of resources distributed across different cloud platforms or different availability zones on the same cloud platform.
Smart Images

Figure CN115202955B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a cluster management method, apparatus, computer equipment, and storage medium. Background Technology
[0002] With the development of cloud technology, more and more enterprises are distributing their project resources across clusters based on different cloud platforms for management, in order to avoid being limited by a single cloud service provider and thus improve service delivery capabilities. Currently, enterprises typically use multi-cluster management technologies such as KubeFed, Fleet, and Crossplane to manage project resources scattered across various cloud platforms.
[0003] However, existing multi-cluster management technologies are very limited, often imposing many restrictions on the network and availability environment, making it difficult to efficiently manage resources distributed across different cloud platforms or different availability zones on the same cloud platform. Summary of the Invention
[0004] Therefore, it is necessary to provide a cluster management method, apparatus, computer equipment, and storage medium that can improve resource management efficiency in response to the above-mentioned technical problems.
[0005] A cluster management method, the method comprising:
[0006] Receive cluster management requests initiated by the user client;
[0007] The cluster type of the cluster to be managed is determined based on the cluster management parameters in the cluster management request;
[0008] When the cluster type is the first cluster type, the cluster management request is forwarded to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request;
[0009] When the cluster type is the second cluster type, the cluster to be managed is managed based on the cluster management request.
[0010] A cluster management device, the device comprising:
[0011] The request receiving module is used to receive cluster management requests initiated by the user client.
[0012] The cluster type determination module is used to determine the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request.
[0013] The request forwarding module is used to forward the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs when the cluster type is the first cluster type, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request;
[0014] The cluster management module is used to manage the cluster to be managed based on the cluster management request when the cluster type is the second cluster type.
[0015] In one embodiment, the cluster type determination module is further configured to:
[0016] The cluster management request is parsed to obtain cluster management parameters; the cluster management parameters include cluster type determination parameters.
[0017] The cluster type of the cluster to be managed is determined based on the parameters of the cluster type.
[0018] In one embodiment, the cluster management parameters further include identity parameters; the cluster type determination module is also used for:
[0019] The management permissions of the initiator of the cluster management request are verified based on the identity parameters.
[0020] Once the management permission verification is successful, the step of determining the cluster type of the cluster to be managed based on the cluster type determination parameters is executed.
[0021] In one embodiment, the apparatus is deployed with a target cluster management component of a cluster management system, and the cluster type determination module is further configured to:
[0022] Based on the cluster type parameters, it is determined whether the availability zone to which the cluster to be managed belongs is the same as the target availability zone; the target availability zone is the availability zone where the target cluster management component is located.
[0023] If the availability zone and the target availability zone are not the same availability zone, then the cluster type of the cluster to be managed is determined to be the first cluster type;
[0024] If the availability zone and the target availability zone are the same availability zone, then the cluster type of the cluster to be managed is determined to be the second cluster type.
[0025] In one embodiment, the cluster type determination parameter includes at least one of an availability zone identifier, a cluster identifier, and a node identifier, and the cluster type determination module is further configured to:
[0026] The availability zone identifier of the cluster to be managed is determined based on at least one of the availability zone identifier, cluster identifier, and node identifier.
[0027] Obtain the target availability zone identifier;
[0028] If the availability zone identifier of the availability zone to which the cluster to be managed belongs is inconsistent with the target availability zone identifier, then it is determined that the availability zone to which the cluster to be managed belongs and the target availability zone are not the same availability zone.
[0029] If the availability zone identifier of the availability zone to which the cluster to be managed belongs is the same as the target availability zone identifier, then the availability zone to which the cluster to be managed belongs and the target availability zone are determined to be the same availability zone.
[0030] In one embodiment, the device deploys a target cluster management component of a cluster management system, and the cluster management module is further configured to:
[0031] When the cluster management request is a cluster addition request, the cluster to be managed is added to the cluster management system;
[0032] When the cluster management request is a cluster modification request, the cluster to be managed is modified.
[0033] When the cluster management request is a cluster deletion request, the cluster to be managed is deleted.
[0034] In one embodiment, the cluster management module is further configured to:
[0035] When the cluster management request is a cluster addition request, it is determined whether the cluster to be managed has already been created based on the cluster management parameters of the cluster management request;
[0036] If the cluster to be managed has not been created, then the cluster to be managed shall be created in the cluster management system;
[0037] If the cluster to be managed has already been created, then import the cluster to be managed into the cluster management system.
[0038] In one embodiment, the cluster management module is further configured to:
[0039] Establish a communication connection between the target cluster management component and the target nodes within the target availability zone to which the target cluster management component belongs;
[0040] Obtain the cluster deployment data package used to create the cluster to be managed;
[0041] The cluster deployment data packet is sent to the target node through the communication connection, and a cluster creation command is sent to the target node so that the target node creates the cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet.
[0042] In one embodiment, the cluster management module is further configured to:
[0043] Obtain the cluster address information and credential information corresponding to the cluster to be managed;
[0044] A cluster import request is generated based on the cluster address information and credential information;
[0045] The cluster import request is sent to the cluster to be managed corresponding to the cluster address information, so that the cluster to be managed establishes a communication connection with the target cluster management component after the credential information in the cluster import request is verified.
[0046] In one embodiment, the device is equipped with a target cluster management component of a cluster management system. The clusters managed by the cluster management system are distributed across multiple availability zones, and each availability zone corresponds to a cluster management component. The cluster management components of each availability zone are cascaded to form a multi-level topology.
[0047] In one embodiment, the cluster managed by the cluster management system is a Kubernetes cluster.
[0048] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program performing the following steps:
[0049] Receive cluster management requests initiated by the user client;
[0050] The cluster type of the cluster to be managed is determined based on the cluster management parameters in the cluster management request;
[0051] When the cluster type is the first cluster type, the cluster management request is forwarded to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request;
[0052] When the cluster type is the second cluster type, the cluster to be managed is managed based on the cluster management request.
[0053] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0054] Receive cluster management requests initiated by the user client;
[0055] The cluster type of the cluster to be managed is determined based on the cluster management parameters in the cluster management request;
[0056] When the cluster type is the first cluster type, the cluster management request is forwarded to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request;
[0057] When the cluster type is the second cluster type, the cluster to be managed is managed based on the cluster management request.
[0058] A computer program includes computer instructions stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the following steps:
[0059] Receive cluster management requests initiated by the user client;
[0060] The cluster type of the cluster to be managed is determined based on the cluster management parameters in the cluster management request;
[0061] When the cluster type is the first cluster type, the cluster management request is forwarded to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request;
[0062] When the cluster type is the second cluster type, the cluster to be managed is managed based on the cluster management request.
[0063] The aforementioned cluster management method, apparatus, computer equipment, and storage medium determine the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request initiated by the user terminal. When the cluster type is the first cluster type, the cluster management request is forwarded to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request. When the cluster type is the second cluster type, cluster management is performed on the cluster to be managed based on the cluster management request, thereby realizing efficient management of resources distributed on different cloud platforms or different availability zones on the same cloud platform, and improving cluster management efficiency. Attached Figure Description
[0064] Figure 1 This is a diagram illustrating the application environment of a cluster management method in one embodiment;
[0065] Figure 2 This is a flowchart illustrating a cluster management method in one embodiment;
[0066] Figure 3This is a schematic diagram of the available area hierarchy in one embodiment;
[0067] Figure 4 This is a schematic diagram of a cluster management system in one embodiment;
[0068] Figure 5 This is a flowchart illustrating the cluster type determination steps in one embodiment;
[0069] Figure 6 A flowchart illustrating the cluster addition steps in one embodiment;
[0070] Figure 7 This is a flowchart illustrating the cluster management method in another embodiment;
[0071] Figure 8 This is a flowchart illustrating the cluster management method in another embodiment;
[0072] Figure 9 This is a timing diagram of the cluster management method in another embodiment;
[0073] Figure 10 This is a structural block diagram of a cluster management device in one embodiment;
[0074] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0075] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0076] The cluster management method provided in this application can be implemented based on cloud technology. Cloud technology refers to a hosting technology that unifies hardware, software, and network resources within a wide area network (WAN) or local area network (LAN) to achieve data computation, storage, processing, and sharing. Cloud technology is a general term encompassing network technology, information technology, integration technology, management platform technology, and application technology applied in the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to a backend system for logical processing. Data at different levels will be processed separately, and various industry data will require robust system support, which can only be achieved through cloud computing.
[0077] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology and distributed storage file systems to bring together a large number of storage devices of various types in the network (storage devices are also called storage nodes) to work together through application software or application interfaces to provide data storage and business access functions to the outside world.
[0078] Currently, the storage method in storage systems is as follows: Logical volumes are created, and during creation, physical storage space is allocated to each logical volume. This physical storage space may consist of a single storage device or the disks of several storage devices. Clients store data on a logical volume, which means storing the data on the file system. The file system divides the data into many parts, each part being an object. Each object contains not only the data but also additional information such as a data identifier (ID, ID entity). The file system writes each object to the physical storage space of that logical volume and records the storage location information of each object. Therefore, when a client requests access to data, the file system can allow the client to access the data based on the storage location information of each object.
[0079] The process by which a storage system allocates physical storage space to a logical volume is as follows: the physical storage space is pre-divided into strips according to the capacity estimate of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of Redundant Array of Independent Disks (RAID). A logical volume can be understood as a strip, thus allocating physical storage space to the logical volume.
[0080] Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying platform, a platform product and service layer, and an application service layer.
[0081] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operational monitoring. The user management module is responsible for managing the identity information of all blockchain participants, including maintaining public and private key generation (account management), key management, and maintaining the correspondence between user real identities and blockchain addresses (access management). Furthermore, under authorization, it monitors and audits transactions of certain real identities and provides risk control rule configuration (risk control audit). The basic services module is deployed on all blockchain node devices to verify the validity of business requests. After consensus is reached on valid requests, they are recorded in storage. For a new business request, the basic services first perform interface adaptation parsing and authentication (interface adaptation), and then encrypt the business information using a consensus algorithm (consensus management). After encryption, the data is transmitted completely and consistently to the shared ledger (network communication) and recorded and stored. The smart contract module is responsible for contract registration, issuance, triggering, and execution. Developers can define contract logic using a programming language and publish it to the blockchain (contract registration). According to the contract terms, the key or other events are invoked to trigger execution and complete the contract logic. It also provides functions for contract upgrades and cancellations. The operation monitoring module is mainly responsible for deployment, configuration modification, contract settings, cloud adaptation, and real-time status visualization during product launch, such as alarms, monitoring network conditions, and monitoring the health status of node devices.
[0082] The platform's product service layer provides the basic capabilities and implementation frameworks for typical applications. Developers can leverage these basic capabilities, along with the specific characteristics of their business needs, to implement blockchain-based business logic. The application service layer provides blockchain-based application services to business stakeholders.
[0083] The cluster management method provided in this application can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with first server 104 via a network, and first server 104 communicates with second server 106 via a network. First server 104 is the cluster management server for the target availability zone of the cluster management system, and second server 106 is the cluster management server for an availability zone different from the target availability zone. Terminal 102 runs the client of the cluster management system, and the first server 104 and second server 106 respectively run the cluster management components of the cluster management system. The cluster management system can manage the clusters in the target availability zone (AZ1) through the target cluster management component on the first server, and can also manage the clusters in its own availability zone (AZ2) through the cluster management component on the second server 106. Taking the above cluster management method executed on the first server 104 as an example, the first server 104 receives a cluster management request initiated by the user client; determines the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request; when the cluster type is the first cluster type, forwards the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request; when the cluster type is the second cluster type, manages the cluster to be managed based on the cluster management request.
[0084] The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server (including the first server 102 and the second server 104) can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal and the server can be directly or indirectly connected through wired or wireless communication, which is not limited herein.
[0085] In one embodiment, such as Figure 2 As shown, a cluster management method is provided, which can be applied to... Figure 1 Taking the first server 104 as an example, the explanation includes the following steps:
[0086] S202 receives cluster management requests initiated by the user client.
[0087] Cluster management requests are used to perform management operations on clusters to be managed. These clusters can be located in the target Availability Zone or in a different Availability Zone. An Availability Zone (AZ) is a physical area within the same geographic region where power and network infrastructure are independent. Instances within the same Availability Zone experience lower network latency.
[0088] Specifically, a cluster can be a Kubernetes cluster. Kubernetes is an open-source application used to manage containerized applications on multiple hosts in a cloud platform. The goal of Kubernetes is to make deploying containerized applications simple and powerful. Kubernetes provides a mechanism for application deployment, planning, updating, and maintenance. A Kubernetes cluster is a cluster managed by a Kubernetes application.
[0089] Cluster management requests include cluster add requests, cluster modify requests, and cluster delete requests. A cluster add request is used to request the addition of a cluster to be managed to the cluster management system so that further management operations such as modification or deletion of the added cluster can be performed. A cluster modify request is used to request modifications to the cluster to be managed, such as modifying the name of the cluster to be managed or the maximum number of pods that can be deployed in the cluster. A cluster delete request is used to request the deletion of a cluster to be managed from the cluster management system, or to delete nodes in the cluster to be managed from the cluster to be managed.
[0090] Clusters to be managed can be clusters that have already been created and imported into the cluster management system; these are called imported clusters. For imported clusters, the client can initiate cluster modification or deletion requests to modify or delete them. Clusters to be managed can also be clusters that have already been created but have not yet been imported into the cluster management system; these are called clusters to be imported. For clusters to be imported, the client can initiate cluster add requests to import them into the cluster management system. Clusters to be managed can also be clusters that have not yet been created; these are called clusters to be created. For clusters to be created, the client can initiate cluster add requests to create a new cluster within the availability zone of the cluster management system and import the created cluster into the cluster management system.
[0091] In one embodiment, a user terminal of a cluster management system is deployed on the terminal. Users can initiate cluster management requests through the user terminal's interactive interface. The first server receives the cluster management requests initiated by the user terminal and can then perform management operations on the cluster to be managed based on the cluster management requests.
[0092] In one embodiment, the cluster management system provides a cluster management interface to the outside world through the cluster management component in the target availability zone. The client initiates a cluster management request by calling the corresponding cluster management interface. The called cluster management interface can be a cluster add interface, a cluster modify interface, or a cluster delete interface, and the cluster management request can be an HTTP request.
[0093] Specifically, the client can access the cluster add interface path using the POST method to call the cluster add interface; the client can also access the cluster modify interface path using the PUT method to call the cluster modify interface; and the client can also access the cluster delete interface path using the DEELETE method to call the cluster delete interface.
[0094] In one embodiment, the cluster management request can also be a cluster information retrieval request, used to obtain cluster information of the clusters managed by the cluster management system, specifically the cluster information of the clusters in the target availability zone or the cluster information of the clusters in a non-target availability zone.
[0095] S204, determine the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request.
[0096] The cluster type is determined based on the availability zone where the cluster is located, and includes a first cluster type and a second cluster type. The first cluster type is the cluster type of clusters outside the target availability zone, also known as the stacked cluster type. The second cluster type is the cluster type of clusters within the target availability zone, also known as the normal cluster type. The target availability zone is the availability zone where the first server is located.
[0097] Specifically, after receiving the cluster management request, the first server parses the cluster management request to obtain the cluster management parameters, determines the availability zone where the cluster to be managed is located based on the cluster management parameters, and determines the cluster type of the cluster to be managed based on the availability zone where the cluster to be managed is located.
[0098] In one embodiment, if the cluster management request is a cluster add request based on the POST method, the first server parses the cluster add request using the parsing method corresponding to the POST method to obtain the cluster management parameters in the cluster add request; if the cluster management request is a cluster modify request based on the PUT method, the first server parses the cluster modify request using the parsing method corresponding to the PUT method to obtain the cluster management parameters in the cluster modify request; if the cluster management request is a cluster delete request based on the DEELETE method, the first server parses the cluster modify request using the parsing method corresponding to the DEELETE method to obtain the cluster management parameters in the cluster modify request.
[0099] In one embodiment, after determining the availability zone where the cluster to be managed is located, if the availability zone to which the cluster to be managed belongs is the target availability zone, then the cluster type of the cluster to be managed is determined to be the first cluster type; if the availability zone to which the cluster to be managed belongs is not the target availability zone, then the cluster type of the cluster to be managed is determined to be the second cluster type.
[0100] S206, when the cluster type is the first cluster type, forward the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request.
[0101] The cluster management component is used to manage clusters within its own availability zone; it manages clusters to be managed, specifically by adding, modifying, or deleting clusters to be managed.
[0102] Specifically, after determining that the cluster type of the cluster to be managed is the first cluster type, the first server obtains the address information and interface information of the cluster management component of the availability zone to which the cluster to be managed belongs. Based on the address information of the cluster management component of the availability zone to which the cluster to be managed belongs, the first server calls the corresponding interface of the cluster management component, so that the first server forwards the cluster management request it receives to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component of the availability zone to which the cluster to be managed belongs can manage the cluster to be managed in the availability zone based on the cluster management request.
[0103] In one embodiment, after obtaining the address information and interface information of the cluster management component of the availability zone to which the cluster to be managed belongs, the first server determines whether the availability zone to which the cluster to be managed belongs is an adjacent lower-level availability zone of the target availability zone based on the address information of the cluster management component of the availability zone to which the cluster to be managed belongs. If the availability zone to which the cluster to be managed belongs is an adjacent lower-level availability zone of the target availability zone, a communication connection is established between the first server and the cluster management component corresponding to the cluster to be managed based on the address information of the cluster management component, and the corresponding interface of the cluster management component of the availability zone to which the cluster to be managed belongs is called through the communication connection to forward the cluster management request received to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs.
[0104] In one embodiment, after obtaining the address and interface information of the cluster management component of the availability zone to which the cluster to be managed belongs, the first server determines whether the availability zone to which the cluster to be managed belongs is an adjacent lower-level availability zone of the target availability zone based on the address information of the cluster management component of the availability zone to which the cluster to be managed belongs. If the availability zone to which the cluster to be managed belongs is not an adjacent lower-level availability zone of the target availability zone, the server obtains the address and interface information of the cluster management component of the interval availability zone between the target availability zone and the availability zone to which the cluster to be managed belongs, and forwards the cluster management request to the corresponding cluster management component of the availability zone to which the cluster to be managed belongs level by level through the address and interface information of the cluster management component of the interval availability zone.
[0105] The above embodiment will be described as an example. (See references.) Figure 3 The diagram shows the availability zone hierarchy. There are N+1 availability zone levels and m availability zones in total. The level 0 availability zone can also be called the central availability zone. Figure 3 In this system, Availability Zone AZ1 corresponds to Availability Zone Level 0, Availability Zone AZi corresponds to Availability Zone Level t-1, Availability Zones AZ(i+1) and AZ(i+2) correspond to Availability Zone Level t, Availability Zones AZ(i+3), AZ(i+4), and AZ(i+5) correspond to Availability Zone Level t+1, and Availability Zone AZm corresponds to Availability Zone Level N. Each Availability Zone has its own cluster management component, which allows for the management of various clusters within the Availability Zone.
[0106] If the target availability zone where the first server is located is availability zone AZi, and the availability zone to which the cluster to be managed belongs is availability zone AZ(i+1), and availability zone AZ(i+1) is an adjacent lower-level availability zone of availability zone AZi, then the first server establishes a communication connection between the first server and the cluster management component corresponding to availability zone AZ(i+1) based on the address information of the cluster management component of availability zone AZ(i+1), and calls the corresponding interface of the cluster management component of availability zone AZ(i+1) through the communication connection to forward the cluster management request it receives to the cluster management component of availability zone AZ(i+1).
[0107] If the target availability zone where the first server is located is availability zone AZi, and the availability zone to which the cluster to be managed belongs is availability zone AZ(i+5), and availability zone AZ(i+5) is not an adjacent lower-level availability zone of availability zone AZi, and there is an interval availability zone AZ(i+2) between availability zone AZ(i+5) and availability zone AZi, then the first server obtains the address information and interface information of the cluster management component of the interval availability zone AZ(i+2), and based on the address information and interface information of the cluster management component of the interval availability zone AZ(i+2), forwards the cluster management request it receives to the cluster management component of the interval availability zone AZ(i+2). Then, the cluster management component of the interval availability zone AZ(i+2) forwards the cluster management request it receives to the cluster management component of availability zone AZ(i+5) based on the address information and interface information of the cluster management component of availability zone AZ(i+5).
[0108] In one embodiment, when the cluster management request is a cluster add request, the cluster management component of the availability zone to which the cluster to be managed belongs adds the cluster to be managed to the cluster management system based on the cluster add request; when the cluster management request is a cluster modify request, the cluster management component of the availability zone to which the cluster to be managed belongs modifies the cluster to be managed based on the cluster modify request; when the cluster management request is a cluster delete request, the cluster management component of the availability zone to which the cluster to be managed belongs deletes the cluster to be managed based on the cluster delete request.
[0109] Specifically, when the cluster management request is a cluster addition request, if the cluster to be managed is a cluster to be imported, the cluster management component of the availability zone to which the cluster to be managed belongs will import the cluster to be managed into the cluster management system based on the cluster addition request; if the cluster to be managed is a cluster to be created, the cluster management component of the availability zone to which the cluster to be managed belongs will create the corresponding cluster in the availability zone to which the cluster to be managed belongs based on the cluster addition request, and the created cluster can be managed through the cluster management system.
[0110] S208, when the cluster type is the second cluster type, perform cluster management on the cluster to be managed based on the cluster management request.
[0111] Specifically, the first server can perform cluster management on the cluster to be managed based on the cluster management request through the cluster management component corresponding to the target availability zone. The cluster management component is used to manage clusters within its own availability zone; managing the cluster to be managed can specifically involve the cluster management component performing management operations such as adding, modifying, or deleting the cluster to be managed.
[0112] In the above embodiments, the first server determines the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request initiated by the user terminal. When the cluster type is the first cluster type, the server forwards the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request. When the cluster type is the second cluster type, the server performs cluster management based on the cluster management request, thereby realizing efficient management of resources distributed on different cloud platforms or different availability zones on the same cloud platform, and improving cluster management efficiency.
[0113] In one embodiment, the cluster management method provided in this application is applied to Figure 4 The target cluster management component 402 of the cluster management system is shown. The clusters managed by the cluster management system are distributed across multiple availability zones, and each availability zone corresponds to a cluster management component, such as... Figure 4 The target cluster management components are 402, 404, and 406. The cluster management components of each availability zone are cascaded to form a multi-level topology, as shown in the reference. Figure 4 The topology shown.
[0114] Figure 4 The cluster management system can manage clusters within their respective availability zones through cluster management components in each availability zone, and can also manage clusters across availability zones based on these components. For example, if the target cluster management component 402 in availability zone AZA receives a cluster management request initiated by a terminal, and the availability zone to which the cluster to be managed belongs is availability zone AZC, then the target cluster management component 402 forwards the cluster management request through the cluster management component 404 in availability zone AZB to the cluster management component 406 in availability zone AZC, so that the cluster management component 406 can manage the cluster to be managed based on the cluster management request.
[0115] Understandable, Figure 4 The image only shows a portion of the clusters within the availability zones managed by the cluster management system, as well as a portion of the nodes contained within those clusters. Each cluster within the cluster management system can report its monitoring, alarms, logs, and events to the cluster management component of its respective availability zone. The cluster management component can centrally process the data reported by the clusters or by the cluster management components of lower-level availability zones, obtaining processed data. Based on pre-configured reporting rules, it determines whether to report the processed data to the cluster management component of the higher-level availability zone.
[0116] In practical applications, this cluster management system can be used in scenarios requiring cluster management across availability zones. For example, user centers, provincial-level clusters, and municipal-level clusters may correspond to different availability zones. Clusters within the availability zones corresponding to user centers, provincial-level clusters, and municipal-level clusters can be managed using... Figure 4 The cluster management system shown is used for cluster deployment and management.
[0117] In the above embodiments, the cluster management method is executed by the target cluster management component of the cluster management system. The clusters managed by the cluster management system are distributed in multiple availability zones, and each availability zone has a corresponding cluster management component. The cluster management components of each availability zone are cascaded to form a multi-level topology. Each cluster management component can perform cluster management independently or achieve cross-availability zone cluster management, which simplifies the cluster deployment structure and improves the availability of the system.
[0118] In one embodiment, the first server parses the cluster management request to obtain cluster management parameters, including cluster type determination parameters. The first server determines the cluster type of the cluster to be managed based on the cluster type determination parameters.
[0119] The cluster type determination parameter is used to determine the availability zone to which the cluster to be managed belongs, and then determines the cluster type of the cluster to be managed based on the availability zone to which the cluster to be managed belongs. The cluster type determination parameter includes at least one of availability zone identifier, cluster identifier, and node identifier. The availability zone identifier can uniquely identify the availability zone to which the cluster to be managed belongs, the cluster identifier can uniquely identify the cluster to be managed, and the node identifier can uniquely identify the server node where the cluster to be managed is located.
[0120] Specifically, when the cluster management request is a cluster modification request or a cluster deletion request, the cluster type determination parameter carried in the cluster management request can be at least one of the availability zone identifier, cluster identifier, and node identifier. When the cluster management request is a cluster addition request, if the cluster to be managed is a cluster to be imported, the cluster type determination parameter carried in the cluster management request can be at least one of the availability zone identifier, cluster identifier, and node identifier; if the cluster to be managed is a cluster to be created, the cluster type determination parameter carried in the cluster management request can be at least one of the availability zone identifier and node identifier.
[0121] In the above embodiments, the first server parses the cluster management request to obtain cluster management parameters, including cluster type determination parameters. The first server determines the cluster type of the cluster to be managed based on the cluster type determination parameters, and then adopts the corresponding cross-cluster request processing scheme based on the cluster type to manage the cluster to be managed corresponding to the cluster management request, thereby improving the efficiency of cluster management.
[0122] In one embodiment, the cluster management parameters also include identity parameters. After parsing the cluster management request and obtaining the identity parameters and cluster type determination parameters, the first server verifies the management authority of the initiator of the cluster management request based on the identity parameters. After the management authority verification of the initiator of the cluster management request is passed, the server executes the step of determining the cluster type of the cluster to be managed based on the cluster type determination parameters.
[0123] Specifically, the identity parameter can be the identity identifier of the initiator. After obtaining the identity parameter, the first server searches for the identity information corresponding to the identity parameter in the pre-stored identity identifier database. If the pre-stored identity information corresponding to the identity parameter can be found, it is determined that the initiator of the cluster management request has the management authority of the cluster. If the pre-stored identity information corresponding to the identity parameter cannot be found, it is determined that the initiator of the cluster management request does not have the management authority of the cluster.
[0124] In the above embodiments, the first server verifies the management permissions of the initiator of the cluster management request based on identity parameters, ensuring that only users with management permissions can initiate cluster management requests to achieve cluster management and ensure the security of cluster management.
[0125] In one embodiment, the above-described cluster management method is applied to the target cluster management component of the cluster management system, such as... Figure 5 As shown, S204 specifically includes the following steps:
[0126] S502 determines whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same based on the cluster type parameters; the target availability zone is the availability zone where the target cluster management component is located.
[0127] The cluster type determination parameters include at least one of the availability zone identifier, cluster identifier, and node identifier.
[0128] In one embodiment, after parsing the cluster management request to obtain the cluster type determination parameter, if the obtained cluster type determination parameter is an availability zone identifier, the first server directly determines the availability zone corresponding to the availability zone identifier as the availability zone to which the cluster to be managed belongs, and determines whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone.
[0129] In one embodiment, after the first server parses the cluster management request to obtain the cluster type determination parameter, if the obtained cluster type determination parameter is a cluster identifier or a node identifier, then the target string in the cluster identifier or node identifier determines the availability zone to which the cluster to be managed belongs.
[0130] The cluster identifier may carry a target string that represents the availability zone where the cluster is located, and the node identifier may also carry a target string that represents the availability zone where the node is located.
[0131] Specifically, after obtaining the cluster identifier or node identifier, the first server extracts the target string corresponding to the specified position from the cluster identifier or node identifier according to the preset target string extraction position, and determines the availability zone identifier corresponding to the target string based on the extracted target string.
[0132] For example, in the cluster identifier "AZ1Clusrer3", "AZ1" corresponds to availability zone 1 and "Clusrer3" corresponds to cluster 3. This cluster identifier is the cluster identifier of cluster 3 in availability zone 1, where "AZ1" is the target string in the cluster identifier used to represent the availability zone where the cluster is located. In the node identifier "AZ2Node5", "AZ2" corresponds to availability zone 2 and "Node5" corresponds to node 5. This node identifier is the node identifier of node 5 in availability zone 2, where "AZ2" is the target string in the node identifier used to represent the availability zone where the node is located.
[0133] S504 If the availability zone and the target availability zone are not the same availability zone, then the cluster type of the cluster to be managed is determined to be the first cluster type.
[0134] S506 If the availability zone and the target availability zone are the same availability zone, then the cluster type of the cluster to be managed is determined to be the second cluster type.
[0135] In the above embodiments, the first server determines the cluster type of the cluster to be managed by determining whether the availability zone to which the cluster to be managed belongs is the same as the target availability zone. Then, it can adopt the corresponding cross-cluster request processing scheme based on the cluster type to manage the cluster to be managed corresponding to the cluster management request, thereby improving the efficiency of cluster management.
[0136] In one embodiment, the cluster type determination parameter includes at least one of availability zone identifier, cluster identifier, and node identifier. S502 specifically includes the following steps: determining the availability zone identifier of the availability zone to which the cluster to be managed belongs based on at least one of the availability zone identifier, cluster identifier, and node identifier; obtaining the target availability zone identifier of the target availability zone; if the availability zone identifier of the availability zone to which the cluster to be managed belongs is inconsistent with the target availability zone identifier, then it is determined that the availability zone to which the cluster to be managed belongs and the target availability zone are not the same availability zone; if the availability zone identifier of the availability zone to which the cluster to be managed belongs is consistent with the target availability zone identifier, then it is determined that the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone.
[0137] For example, if the target availability zone is identified as "AZ1" and the availability zone of the cluster to be managed determined by the first server is identified as "AZ2", then the availability zone of the cluster to be managed and the target availability zone are not the same availability zone; if the target availability zone is identified as "AZ1" and the availability zone of the cluster to be managed determined by the first server is also "AZ1", then the availability zone of the cluster to be managed and the target availability zone are the same availability zone.
[0138] In the above embodiments, the first server determines the availability zone identifier of the availability zone to which the cluster to be managed belongs based on at least one of the availability zone identifier, cluster identifier, and node identifier, and determines the cluster type of the cluster to be managed based on the availability zone identifier of the availability zone to which the cluster to be managed belongs. Then, it can adopt the corresponding cross-cluster request processing scheme based on the cluster type to manage the cluster to be managed corresponding to the cluster management request, thereby improving the efficiency of cluster management.
[0139] In one embodiment, the above-described cluster management method is applied to the target cluster management component of the cluster management system. S208 specifically includes the following steps: when the cluster management request is a cluster addition request, the cluster to be managed is added to the cluster management system; when the cluster management request is a cluster modification request, the cluster to be managed is modified; when the cluster management request is a cluster deletion request, the cluster to be managed is deleted.
[0140] Specifically, when the cluster management request is a cluster add request, the cluster management component of the target availability zone adds the cluster to be managed to the cluster management system based on the cluster add request; when the cluster management request is a cluster modify request, the cluster management component of the target availability zone modifies the cluster to be managed based on the cluster modify request; and when the cluster management request is a cluster delete request, the cluster management component of the target availability zone deletes the cluster to be managed based on the cluster delete request.
[0141] In one embodiment, when a cluster management request is a cluster addition request, if the cluster to be managed is a cluster to be imported, the cluster management component of the target availability zone imports the cluster to be managed into the cluster management system based on the cluster addition request; if the cluster to be managed is a cluster to be created, the cluster management component of the target availability zone creates the corresponding cluster in the target availability zone based on the cluster addition request, and the created cluster can be managed through the cluster management system.
[0142] In the above embodiments, the first server adopts the corresponding cluster management scheme to manage the cluster to be managed in response to different cluster management requests, thereby improving the efficiency of cluster management.
[0143] In one embodiment, such as Figure 6As shown, when a cluster management request is a cluster addition request, the process by which the first server adds the cluster to be managed to the cluster management system includes:
[0144] S602, when a cluster management request is a cluster addition request, the cluster management parameters of the cluster management request are used to determine whether the cluster to be managed has already been created.
[0145] Specifically, the cluster management parameters include cluster type determination parameters. After the first server parses the cluster management request to obtain the cluster type determination parameters, if the obtained cluster type determination parameters do not carry a cluster identifier, it is determined that the cluster to be managed has not yet been created; if the obtained cluster type determination parameters carry a cluster identifier, it is determined that the cluster to be managed has been created.
[0146] In one embodiment, if the first server determines that the cluster to be managed corresponding to the cluster addition request has not yet been created, then the cluster to be managed is determined to be a cluster to be created; if the first server determines that the cluster to be managed corresponding to the cluster addition request has already been created, then the cluster to be managed is determined to be a cluster to be imported.
[0147] S604: If the cluster to be managed has not been created, then create the cluster to be managed in the cluster management system.
[0148] Specifically, if the first server determines that the cluster to be managed has not yet been created in the target availability zone, i.e., the cluster to be managed is a cluster to be created, then it creates the cluster to be managed on the target node in the target availability zone through the target management component of the cluster management system, and imports the created cluster to be managed into the cluster management system. The target node is the node corresponding to the node identifier carried in the cluster management request.
[0149] S606: If the cluster to be managed has already been created, then import the cluster to be managed into the cluster management system.
[0150] Specifically, if the first server determines that the cluster to be managed has already been created in the target availability zone, that is, the cluster to be managed is the cluster to be imported, then the cluster to be managed is imported into the cluster management system through the target management component of the cluster management system, so that the cluster to be managed can be modified, deleted or otherwise managed through the cluster management system in the future.
[0151] In the above embodiments, the first server determines whether the cluster to be managed corresponding to the cluster addition request has been created. For the cluster to be managed that has been created and the cluster to be managed that has not yet been created, the first server adopts the corresponding cluster addition scheme to add the cluster to be managed to the cluster management system, so that the added cluster can be managed more efficiently in the future, thereby improving the cluster management efficiency.
[0152] In one embodiment, S604 specifically includes the following steps: establishing a communication connection between the target cluster management component and the target node in the target availability zone to which the target cluster management component belongs; obtaining a cluster deployment data packet for creating a cluster to be managed; sending the cluster deployment data packet to the target node through the communication connection, and sending a cluster creation command to the target node, so that the target node creates a cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet.
[0153] The cluster deployment data package includes the cluster installation package, configuration files, and certificates. The established communication connection can be a communication connection based on the Secure Shell (SSH) protocol. The SSH protocol is a security protocol built on the application layer and is a relatively reliable protocol designed to provide security for remote login sessions and other network services.
[0154] In one embodiment, after receiving the cluster deployment data packet and the cluster creation command, the target node starts the cluster service to create the cluster according to the received cluster creation command and based on the received cluster deployment data packet. During the process of receiving the cluster deployment data packet and creating the cluster, the target node returns the status of the cluster to be managed to the target cluster management component in real time until the cluster is successfully created.
[0155] The status of the cluster to be managed includes Pending, Running, Completed, and Failed.
[0156] Specifically, during the process of receiving the cluster deployment data packet, the target node can return a "waiting" status to the target cluster management component, indicating that it is waiting to create the cluster to be managed; during the process of starting the cluster service and deploying the cluster based on the cluster deployment data packet, the target node returns a "installing" status to the target cluster management component, indicating that the cluster to be managed is being deployed; after successfully creating the cluster to be managed, the target node returns a "complete" status to the target cluster management component, indicating that the cluster to be managed has been successfully created and imported into the cluster management system; if the target node fails to create the cluster to be managed, it returns a "failure" status to the target cluster management component, indicating that the creation of the cluster to be managed has failed.
[0157] In the above embodiments, the first server establishes a communication connection between the target cluster management component and the target node within the target availability zone to which the target cluster management component belongs. Through this communication connection, the server sends a cluster deployment data packet for creating a cluster to be managed to the target node and sends a cluster creation command to the target node. This enables the target node to create a cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet, thereby improving the cluster creation efficiency. Furthermore, the cluster created by this method has been imported into the cluster management system, allowing for more efficient management of the created cluster in the future, thus improving the cluster management efficiency.
[0158] In one embodiment, S606 specifically includes the following steps: obtaining cluster address information and credential information corresponding to the cluster to be managed; generating a cluster import request based on the cluster address information and credential information; and sending the cluster import request to the cluster to be managed corresponding to the cluster address information, so that the cluster to be managed establishes a communication connection with the target cluster management component after the credential information in the cluster import request is verified.
[0159] Specifically, if the first server determines that the cluster to be managed has not yet been created in the target availability zone, it obtains the cluster address information and credential information corresponding to the cluster identifier carried in the cluster management request. Based on the cluster address information and credential information, it generates a cluster import request and initiates the cluster import request by calling the corresponding interface of the cluster to be managed corresponding to the cluster address information through the target cluster management component. After receiving the cluster import request, the cluster to be managed verifies the credential information in the cluster import request. If the verification is successful, it establishes a communication connection with the target cluster management component and returns a message indicating successful import to the target management component when the communication connection is successfully established. If the communication connection fails to be established, it returns a message indicating import failure to the target management component. If the verification fails, it directly returns a message indicating incorrect credential to the target management component.
[0160] In the above embodiments, the first server obtains the cluster address information and credential information corresponding to the cluster to be managed and generates a cluster import request. The cluster import request is then sent to the cluster to be managed corresponding to the cluster address information. After the credential information in the cluster import request is verified, the cluster to be managed establishes a communication connection with the target cluster management component and completes the import of the cluster to be managed. Subsequently, the imported cluster can be managed more efficiently, thereby improving the cluster management efficiency.
[0161] In one embodiment, when the cluster management request is a cluster add request and the cluster type of the cluster to be managed is a first cluster type, the process by which the cluster management component of the availability zone to which the cluster to be managed belongs adds the cluster to the cluster management system based on the cluster add request includes the following steps: when the cluster management request is a cluster add request, the cluster management component of the availability zone to which the cluster to be managed belongs determines whether the cluster to be managed has been created based on the cluster management parameters of the cluster management request; if the cluster to be managed has not been created, the cluster to be managed is created in the cluster management system through the cluster management component of the availability zone to which the cluster to be managed belongs; if the cluster to be managed has been created, the cluster to be managed is imported into the cluster management system through the cluster management component of the availability zone to which the cluster to be managed belongs.
[0162] In one embodiment, creating a cluster to be managed in a cluster management system through a cluster management component of the availability zone to which the cluster to be managed belongs specifically includes: establishing a communication connection between the cluster management component of the availability zone to which the cluster to be managed belongs and a target node within the availability zone to which the cluster to be managed belongs; obtaining a cluster deployment data packet for creating the cluster to be managed; sending the cluster deployment data packet to the target node through the communication connection, and sending a cluster creation command to the target node, so that the target node creates the cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet.
[0163] In one embodiment, importing a cluster to be managed into the cluster management system via the cluster management component of the availability zone to which the cluster belongs specifically includes: obtaining the cluster address information and credential information corresponding to the cluster to be managed through the cluster management component of the availability zone to which the cluster belongs; generating a cluster import request based on the cluster address information and credential information; and sending the cluster import request to the cluster to be managed corresponding to the cluster address information, so that after the cluster to be managed verifies the credential information in the cluster import request, a communication connection is established between the cluster to be managed and the cluster management component of the availability zone to which the cluster belongs.
[0164] In the above embodiments, the cluster management component of the availability zone to which the cluster to be managed belongs determines whether the cluster to be managed corresponding to the cluster addition request has been created. For the cluster to be managed that has been created and the cluster to be managed that has not yet been created, the corresponding cluster addition scheme is adopted to add the cluster to be managed to the cluster management system, so that the added cluster can be managed more efficiently in the future, thereby improving the cluster management efficiency.
[0165] In one embodiment, such as Figure 7 As shown, a cluster management method is provided, which can be applied to... Figure 4 Taking the target cluster management component of the cluster management system in the example, the explanation includes the following steps:
[0166] S702 receives cluster addition requests initiated by the user client.
[0167] S704 parses the cluster add request to obtain cluster management parameters. These parameters include cluster type determination parameters and identity parameters.
[0168] S706 verifies the management permissions of the party initiating the cluster addition request based on identity parameters.
[0169] If the verification passes, execute S708; if the verification fails, execute S734.
[0170] S708 determines whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same based on the cluster type parameters.
[0171] The target availability zone is the availability zone where the target cluster management component is located. If the availability zone and the target availability zone are not the same availability zone, execute S710; if the availability zone and the target availability zone are the same availability zone, execute S716.
[0172] S710, determine the cluster type of the cluster to be managed as the first cluster type.
[0173] S712 forwards the cluster addition request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs.
[0174] S714, determine whether the cluster management component corresponding to the availability zone of the cluster to be managed has received a message indicating that the cluster to be managed has been successfully added to the cluster management system.
[0175] If yes, return to S702 to wait for the next cluster add request; otherwise, execute S736.
[0176] S716, determine the cluster type of the cluster to be managed as the second cluster type.
[0177] S718 determines whether the cluster to be managed has been created based on the cluster management parameters of the cluster management request.
[0178] If the cluster to be managed has not been created, execute S720; if the cluster to be managed has been created, execute S728.
[0179] S720 establishes a communication connection between the target cluster management component and the target nodes within the target availability zone to which the target cluster management component belongs.
[0180] S722, obtain the cluster deployment data package used to create the cluster to be managed.
[0181] S724 sends cluster deployment data packets to the target node via a communication connection and sends a cluster creation command to the target node, so that the target node can create a cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packets.
[0182] S726, determine whether a cluster creation success message has been received from the target node.
[0183] If yes, return to S702 to wait for the next cluster add request; otherwise, execute S734.
[0184] S728, obtain the cluster address information and credential information corresponding to the cluster to be managed.
[0185] S730 generates a cluster import request based on cluster address information and credential information.
[0186] S732 sends a cluster import request to the cluster to be managed corresponding to the cluster address information, so that the cluster to be managed can establish a communication connection with the target cluster management component after the credential information in the cluster import request is verified.
[0187] S734 determines whether to establish a communication connection with the cluster to be managed.
[0188] If yes, return to S702 to wait for the next cluster add request; otherwise, execute S734.
[0189] S736, the result of this cluster addition request is confirmed as a failure.
[0190] This application also provides a cluster management component for executing the above-described cluster management method. Specifically, the process by which the cluster management component executes the above-described cluster management method is as follows:
[0191] The cluster management component (Platform management component) is based on the K8S Aggregated APIServer + Controller architecture. It compiles platform-api and platform-controller programs and encapsulates them into containers. The platform-api registers and implements CR resources such as Cluster, Machine and Addon, providing the platform with API interfaces including clusters, nodes and extended components. At the same time, the platform-controller implements the monitoring and synchronization of the above resource objects, realizing the orchestration and management of custom resource objects.
[0192] refer to Figure 8The flowchart shown illustrates the execution of the cluster management method by the target cluster management component. The Platform management component exposes an OpenAPI interface to receive cluster management requests from the client or adjacent upper-level Platform management components. Taking a cluster addition request as an example, the Platform management component parses the request after receiving it, obtains the request parsing result, and verifies permissions based on the result. After successful permission verification, it determines the cluster type to be managed based on the cluster type parameters in the request parsing result. The cluster type can be a normal cluster type or a stacked cluster type. Based on different cluster types, the Platform management component calls different internal interfaces of the cluster provider to implement the addition operation of different cluster types. Specifically, the normal cluster type includes two types: independent clusters and imported clusters. If the cluster to be managed of this type is on the same intranet (i.e., within the same availability zone) as the Platform management component, the Platform management component can directly connect to and access the cluster to be managed or the target node corresponding to the cluster. If the cluster to be managed of the stacked cluster type is not on the same network (i.e., not in the same availability zone) as the Platform management component, the Platform management component cannot directly access the cluster to be managed of this stacked cluster type. It needs to be proxied by the Platform management component corresponding to the availability zone to which the cluster to be managed belongs. The Platform management component forwards the cluster addition request to the Platform management component corresponding to the availability zone to which the cluster to be managed belongs, and the Platform management component corresponding to the availability zone to which the cluster to be managed belongs performs the cluster addition operation.
[0193] The process of adding clusters of different cluster types to be managed by calling the cluster provider interface in the Platform management component is as follows:
[0194] Option 1: Standalone Cluster. The Platform component connects to the target cluster nodes via SSH, distributing the necessary installation packages, configuration files, and certificates to the cluster nodes. It then remotely starts the cluster service on the nodes via SSH commands, establishing the cluster. During the distribution of installation packages and the startup of cluster services, the Platform component synchronously waits for the results and updates the status of the cluster in real time until creation is successful. Otherwise, the installation is interrupted and returns.
[0195] Option 2: Import Cluster. This option supports importing existing user clusters. Users can directly connect to the cluster to be managed via the API of the target cluster using the configured target cluster address and credentials, thus completing the import. Conversely, if the connection to the target cluster fails or the credentials are incorrect, the option will display the corresponding error message and return a returned value.
[0196] Option 3: Stacked Clusters. In this scenario, the Platform lacks a direct network connection to the cluster to be managed. It relies on the Platform management component corresponding to the availability zone of the cluster to be managed for proxying. The Platform management component forwards the cluster addition request to the Platform management component corresponding to the availability zone of the cluster to be managed, which then performs the cluster addition operation. Specifically, during the cluster addition process, the Platform management component of the availability zone determines whether the cluster to be managed is an independent cluster or an imported cluster. For independent clusters, it uses the cluster addition steps from Option 1 to create the cluster within the availability zone; for imported clusters, it uses the cluster addition steps from Option 2 to import the cluster within the availability zone. After completing the cluster addition, it returns status information to the Platform management component. During the cluster creation process, the Platform management component synchronously waits for the status of the cluster to be managed, anticipating completion of the addition operation; otherwise, it displays an error message and returns.
[0197] This application also provides another application scenario in which the above-described cluster management method is applied. Specifically, the cluster management method is applied in this scenario as follows:
[0198] refer to Figure 9 The diagram shown illustrates the cluster addition sequence. AZ1 and AZ2 are two different availability zones, but the Platform management component deployed in both is identical. This Platform management component is further divided into the Platform-api interface component and the Platform-controller component. The process for adding a cluster across availability zones is as follows:
[0199] Step 1: The client sends the request to Platform-api in AZ1. Platform-api verifies and checks permissions for the cluster addition request to determine whether the user has the necessary permissions to perform the operation.
[0200] Step 2: After passing the permission check, Platform-api creates the corresponding cluster provider object. The cluster provider object describes the data structure of the cluster. Platform-controller listens to and synchronizes the status of the cluster provider object through the interface, so as to call the corresponding cluster provider's interface to perform cluster addition operations.
[0201] Step 3: Call the stacked cluster provider interface to forward the cluster add request to the lower-level AZ2 platform management component.
[0202] Step 4: Repeat the cluster addition operation in Step 1 or Step 2 on the platform under the AZ2 availability zone, and call the baremetal cluster provider to add the cluster to the cluster management system in this availability zone.
[0203] Step 5: Wait for the cluster to be created and continuously synchronize the cluster's Pending, Running, Completed, and Failed statuses with the parent system.
[0204] It should be understood that, although Figure 2 , 5 The steps in flowchart -9 are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order requirement for the execution of these steps, and they can be executed in other orders. Furthermore, Figure 2 , 5 At least some of the steps in -9 may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.
[0205] In one embodiment, such as Figure 10 As shown, a cluster management device is provided. This device can be a software module, a hardware module, or a combination of both as part of a computer device. Specifically, the device includes: a request receiving module 1002, a cluster type determination module 1004, a request forwarding module 1006, and a cluster management module 1008, wherein:
[0206] The request receiving module 1002 is used to receive cluster management requests initiated by the user terminal;
[0207] Cluster type determination module 1004 is used to determine the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request;
[0208] The request forwarding module 1006 is used to forward cluster management requests to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs when the cluster type is the first cluster type, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request;
[0209] The cluster management module 1008 is used to manage the cluster to be managed based on the cluster management request when the cluster type is the second cluster type.
[0210] In one embodiment, the cluster managed by the cluster management system is a Kubernetes cluster.
[0211] In the above embodiments, the first server determines the cluster type of the cluster to be managed based on the cluster management parameters in the cluster management request initiated by the user terminal. When the cluster type is the first cluster type, the server forwards the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component can manage the cluster to be managed in the availability zone based on the cluster management request. When the cluster type is the second cluster type, the server performs cluster management based on the cluster management request, thereby realizing efficient management of resources distributed on different cloud platforms or different availability zones on the same cloud platform, and improving cluster management efficiency.
[0212] In one embodiment, the cluster type determination module 1004 is further configured to: parse the cluster management request to obtain cluster management parameters; the cluster management parameters include cluster type determination parameters; and determine the cluster type of the cluster to be managed based on the cluster type determination parameters.
[0213] In the above embodiments, the first server parses the cluster management request to obtain cluster management parameters, including cluster type determination parameters. The first server determines the cluster type of the cluster to be managed based on the cluster type determination parameters, and then adopts the corresponding cross-cluster request processing scheme based on the cluster type to manage the cluster to be managed corresponding to the cluster management request, thereby improving the efficiency of cluster management.
[0214] In one embodiment, the cluster management parameters also include identity parameters; the cluster type determination module 1004 is further configured to: verify the management authority of the initiator of the cluster management request based on the identity parameters; and after the management authority verification is passed, execute the step of determining the cluster type of the cluster to be managed based on the cluster type determination parameters.
[0215] In the above embodiments, the first server verifies the management permissions of the initiator of the cluster management request based on identity parameters, ensuring that only users with management permissions can initiate cluster management requests to achieve cluster management and ensure the security of cluster management.
[0216] In one embodiment, the device deploys a target cluster management component of a cluster management system. The cluster type determination module 1004 is further configured to: determine whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone based on the cluster type determination parameters; the target availability zone is the availability zone where the target cluster management component is located; if the availability zone and the target availability zone are not the same availability zone, then the cluster type of the cluster to be managed is determined to be a first cluster type; if the availability zone and the target availability zone are the same availability zone, then the cluster type of the cluster to be managed is determined to be a second cluster type.
[0217] In the above embodiments, the first server determines the cluster type of the cluster to be managed by determining whether the availability zone to which the cluster to be managed belongs is the same as the target availability zone. Then, it can adopt the corresponding cross-cluster request processing scheme based on the cluster type to manage the cluster to be managed corresponding to the cluster management request, thereby improving the efficiency of cluster management.
[0218] In one embodiment, the cluster type determination parameter includes at least one of availability zone identifier, cluster identifier, and node identifier. The cluster type determination module 1004 is further configured to: determine the availability zone identifier of the availability zone to which the cluster to be managed belongs based on at least one of the availability zone identifier, cluster identifier, and node identifier; obtain the target availability zone identifier of the target availability zone; if the availability zone identifier of the availability zone to which the cluster to be managed belongs is inconsistent with the target availability zone identifier, then determine that the availability zone to which the cluster to be managed belongs and the target availability zone are not the same availability zone; if the availability zone identifier of the availability zone to which the cluster to be managed belongs is consistent with the target availability zone identifier, then determine that the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone.
[0219] In the above embodiments, the first server determines the availability zone identifier of the availability zone to which the cluster to be managed belongs based on at least one of the availability zone identifier, cluster identifier, and node identifier, and determines the cluster type of the cluster to be managed based on the availability zone identifier of the availability zone to which the cluster to be managed belongs. Then, it can adopt the corresponding cross-cluster request processing scheme based on the cluster type to manage the cluster to be managed corresponding to the cluster management request, thereby improving the efficiency of cluster management.
[0220] In one embodiment, the device is equipped with a target cluster management component of a cluster management system. The cluster management module 1008 is further configured to: add the cluster to be managed to the cluster management system when the cluster management request is a cluster addition request; modify the cluster to be managed when the cluster management request is a cluster modification request; and delete the cluster to be managed when the cluster management request is a cluster deletion request.
[0221] In the above embodiments, the first server adopts the corresponding cluster management scheme to manage the cluster to be managed in response to different cluster management requests, thereby improving the efficiency of cluster management.
[0222] In one embodiment, the cluster management module 1008 is further configured to: when a cluster management request is a cluster addition request, determine whether the cluster to be managed has been created based on the cluster management parameters of the cluster management request; if the cluster to be managed has not been created, create the cluster to be managed in the cluster management system; if the cluster to be managed has been created, import the cluster to be managed into the cluster management system.
[0223] In the above embodiments, the first server determines whether the cluster to be managed corresponding to the cluster addition request has been created. For the cluster to be managed that has been created and the cluster to be managed that has not yet been created, the first server adopts the corresponding cluster addition scheme to add the cluster to be managed to the cluster management system, so that the added cluster can be managed more efficiently in the future, thereby improving the cluster management efficiency.
[0224] In one embodiment, the cluster management module 1008 is further configured to: establish a communication connection between the target cluster management component and the target node in the target availability zone to which the target cluster management component belongs; obtain a cluster deployment data packet for creating a cluster to be managed; send the cluster deployment data packet to the target node through the communication connection, and send a cluster creation command to the target node, so that the target node creates a cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet.
[0225] In the above embodiments, the first server establishes a communication connection between the target cluster management component and the target node within the target availability zone to which the target cluster management component belongs. Through this communication connection, the server sends a cluster deployment data packet for creating a cluster to be managed to the target node and sends a cluster creation command to the target node. This enables the target node to create a cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet, thereby improving the cluster creation efficiency. Furthermore, the cluster created by this method has been imported into the cluster management system, allowing for more efficient management of the created cluster in the future, thus improving the cluster management efficiency.
[0226] In one embodiment, the cluster management module 1008 is further configured to: obtain cluster address information and credential information corresponding to the cluster to be managed; generate a cluster import request based on the cluster address information and credential information; and send the cluster import request to the cluster to be managed corresponding to the cluster address information, so that the cluster to be managed can establish a communication connection with the target cluster management component after the credential information in the cluster import request is verified.
[0227] In the above embodiments, the first server obtains the cluster address information and credential information corresponding to the cluster to be managed and generates a cluster import request. The cluster import request is then sent to the cluster to be managed corresponding to the cluster address information. After the credential information in the cluster import request is verified, the cluster to be managed establishes a communication connection with the target cluster management component and completes the import of the cluster to be managed. Subsequently, the imported cluster can be managed more efficiently, thereby improving the cluster management efficiency.
[0228] In one embodiment, the device is equipped with a target cluster management component of a cluster management system. The clusters managed by the cluster management system are distributed across multiple availability zones, and each availability zone has its own cluster management component. The cluster management components of each availability zone are cascaded to form a multi-level topology.
[0229] In the above embodiments, the cluster management method is executed by the target cluster management component of the cluster management system. The clusters managed by the cluster management system are distributed in multiple availability zones, and each availability zone has a corresponding cluster management component. The cluster management components of each availability zone are cascaded to form a multi-level topology. Each cluster management component can perform cluster management independently or achieve cross-availability zone cluster management, which simplifies the cluster deployment structure and improves the availability of the system.
[0230] Specific limitations regarding the cluster management device can be found in the limitations of the cluster management method described above, and will not be repeated here. Each module in the aforementioned cluster management device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0231] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 11 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores cluster management request data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a cluster management method.
[0232] Those skilled in the art will understand that Figure 11The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0233] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0234] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0235] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in the above-described method embodiments.
[0236] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0237] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0238] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A cluster management method characterized by, The method is applied to the target cluster management component of the cluster management system running on the first server. The clusters managed by the cluster management system are distributed across multiple availability zones, and each availability zone corresponds to a cluster management component. The cluster management components of each availability zone are cascaded to form a multi-level topology; the method includes: Receive cluster management requests initiated by the user client; Based on the cluster management parameters in the cluster management request, it is determined whether the availability zone to which the cluster to be managed belongs is the same as the target availability zone; the target availability zone is the availability zone where the target cluster management component is located; if the availability zone to which the cluster to be managed belongs is not the same as the target availability zone, then the cluster type of the cluster to be managed is determined to be the first cluster type; if the availability zone to which the cluster to be managed belongs is the same as the target availability zone, then the cluster type of the cluster to be managed is determined to be the second cluster type. When the cluster type is the first cluster type, if the availability zone to which the cluster to be managed belongs is an adjacent lower-level availability zone of the target availability zone, then based on the address information of the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, a communication connection is established between the first server and the cluster management component corresponding to the availability zone to which the cluster to be managed belongs. The interface of the cluster management component corresponding to the availability zone to which the cluster to be managed belongs is called through the communication connection to forward the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs. If the availability zone to which the cluster to be managed belongs is not an adjacent lower-level availability zone of the target availability zone, then the address information and interface information of the cluster management component of the interval availability zone between the target availability zone and the availability zone to which the cluster to be managed belongs are obtained. Based on the address information and interface information of the cluster management component of the interval availability zone, the cluster management request is forwarded level by level to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, so that the cluster management component corresponding to the availability zone to which the cluster to be managed manages the cluster to be managed within the availability zone to which the cluster to be managed belongs based on the cluster management request. When the cluster type is the second cluster type, the cluster to be managed is managed based on the cluster management request.
2. The method of claim 1, wherein, The step of determining whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same based on the cluster management parameters in the cluster management request includes: The cluster management request is parsed to obtain cluster management parameters; the cluster management parameters include cluster type determination parameters. Based on the cluster type, the parameters determine whether the availability zone to which the cluster to be managed belongs is the same as the target availability zone.
3. The method of claim 2, wherein, The cluster management parameters also include identity parameters; the method further includes: The management permissions of the initiator of the cluster management request are verified based on the identity parameters. Once the management permission verification is successful, the step of determining whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone based on the cluster type determination parameters is executed.
4. The method of claim 2, wherein, The cluster type determination parameters include at least one of availability zone identifier, cluster identifier, and node identifier. The step of determining whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same based on the cluster type determination parameters includes: The availability zone identifier of the cluster to be managed is determined based on at least one of the availability zone identifier, cluster identifier, and node identifier. Obtain the target availability zone identifier; If the availability zone identifier of the availability zone to which the cluster to be managed belongs is inconsistent with the target availability zone identifier, then it is determined that the availability zone to which the cluster to be managed belongs and the target availability zone are not the same availability zone. If the availability zone identifier of the availability zone to which the cluster to be managed belongs is the same as the target availability zone identifier, then the availability zone to which the cluster to be managed belongs and the target availability zone are determined to be the same availability zone.
5. The method of claim 1, wherein, When the cluster type is the second cluster type, the management of the cluster to be managed based on the cluster management request includes: When the cluster management request is a cluster addition request, the cluster to be managed is added to the cluster management system; When the cluster management request is a cluster modification request, the cluster to be managed is modified. When the cluster management request is a cluster deletion request, the cluster to be managed is deleted.
6. The method of claim 5, wherein, When the cluster management request is a cluster addition request, adding the cluster to be managed to the cluster management system includes: When the cluster management request is a cluster addition request, it is determined whether the cluster to be managed has already been created based on the cluster management parameters of the cluster management request; If the cluster to be managed has not been created, then the cluster to be managed shall be created in the cluster management system; If the cluster to be managed has already been created, then import the cluster to be managed into the cluster management system.
7. The method of claim 6, wherein, Creating the cluster to be managed in the cluster management system includes: Establish a communication connection between the target cluster management component and the target nodes within the target availability zone to which the target cluster management component belongs; Obtain the cluster deployment data package used to create the cluster to be managed; The cluster deployment data packet is sent to the target node through the communication connection, and a cluster creation command is sent to the target node so that the target node creates the cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet.
8. The method of claim 6, wherein, The step of importing the cluster to be managed into the cluster management system includes: Obtain the cluster address information and credential information corresponding to the cluster to be managed; A cluster import request is generated based on the cluster address information and credential information; The cluster import request is sent to the cluster to be managed corresponding to the cluster address information, so that the cluster to be managed establishes a communication connection with the target cluster management component after the credential information in the cluster import request is verified.
9. The method of claim 1, wherein, The cluster management system manages a Kubernetes cluster.
10. A cluster management apparatus characterized by comprising: The target cluster management component of the cluster management system running on the first server, wherein the clusters managed by the cluster management system are distributed in multiple availability zones, and each availability zone corresponds to a cluster management component. The cluster management components of each availability zone are cascaded to form a multi-level topology; the device includes: The request receiving module is used to receive cluster management requests initiated by the user client; The cluster type determination module is used to determine whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same based on the cluster management parameters in the cluster management request; the target availability zone is the availability zone where the target cluster management component is located; if the availability zone to which the cluster to be managed belongs and the target availability zone are not the same availability zone, then the cluster type of the cluster to be managed is determined to be a first cluster type; if the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone, then the cluster type of the cluster to be managed is determined to be a second cluster type. The request forwarding module is configured to, when the cluster type is a first cluster type, if the availability zone to which the cluster to be managed belongs is an adjacent lower-level availability zone of the target availability zone, establish a communication connection between the first server and the cluster management component corresponding to the availability zone to which the cluster to be managed belongs based on the address information of the cluster management component corresponding to the availability zone to which the cluster to be managed belongs, and call the interface of the cluster management component corresponding to the availability zone to which the cluster to be managed belongs through the communication connection to forward the cluster management request to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs. If the availability zone to which the cluster to be managed belongs is not an adjacent lower-level availability zone of the target availability zone, obtain the address information and interface information of the cluster management component of the interval availability zone between the target availability zone and the availability zone to which the cluster to be managed belongs, and forward the cluster management request level by level to the cluster management component corresponding to the availability zone to which the cluster to be managed belongs based on the address information and interface information of the cluster management component of the interval availability zone, so that the cluster management component corresponding to the availability zone to which the cluster to be managed belongs can manage the cluster to be managed within the availability zone to which the cluster to be managed belongs based on the cluster management request. The cluster management module is used to manage the cluster to be managed based on the cluster management request when the cluster type is the second cluster type.
11. The apparatus of claim 10, wherein, The cluster type determination module is also used for: The cluster management request is parsed to obtain cluster management parameters; the cluster management parameters include cluster type determination parameters. Based on the cluster type, the parameters determine whether the availability zone to which the cluster to be managed belongs is the same as the target availability zone.
12. The apparatus of claim 11, wherein, The cluster management parameters also include identity parameters; the cluster type determination module is further used for: The management permissions of the initiator of the cluster management request are verified based on the identity parameters. Once the management permission verification is successful, the step of determining whether the availability zone to which the cluster to be managed belongs and the target availability zone are the same availability zone based on the cluster type determination parameters is executed.
13. The apparatus of claim 11, wherein, The cluster type determination parameters include at least one of availability zone identifier, cluster identifier, and node identifier. The cluster type determination module is further configured to: determine the availability zone identifier of the availability zone to which the cluster to be managed belongs based on at least one of the availability zone identifier, cluster identifier, and node identifier. Obtain the target availability zone identifier; If the availability zone identifier of the availability zone to which the cluster to be managed belongs is inconsistent with the target availability zone identifier, then it is determined that the availability zone to which the cluster to be managed belongs and the target availability zone are not the same availability zone. If the availability zone identifier of the availability zone to which the cluster to be managed belongs is the same as the target availability zone identifier, then the availability zone to which the cluster to be managed belongs and the target availability zone are determined to be the same availability zone.
14. The apparatus of claim 10, wherein, The cluster management module is also used for: When the cluster management request is a cluster addition request, the cluster to be managed is added to the cluster management system; When the cluster management request is a cluster modification request, the cluster to be managed is modified. When the cluster management request is a cluster deletion request, the cluster to be managed is deleted.
15. The apparatus of claim 14, wherein, The cluster management module is also used for: When the cluster management request is a cluster addition request, it is determined whether the cluster to be managed has already been created based on the cluster management parameters of the cluster management request; If the cluster to be managed has not been created, then the cluster to be managed shall be created in the cluster management system; If the cluster to be managed has already been created, then import the cluster to be managed into the cluster management system.
16. The apparatus of claim 15, wherein, The cluster management module is also used for: Establish a communication connection between the target cluster management component and the target nodes within the target availability zone to which the target cluster management component belongs; Obtain the cluster deployment data package used to create the cluster to be managed; The cluster deployment data packet is sent to the target node through the communication connection, and a cluster creation command is sent to the target node so that the target node creates the cluster to be managed in the cluster management system based on the cluster creation command and the cluster deployment data packet.
17. The apparatus of claim 15, wherein, The cluster management module is also used for: Obtain the cluster address information and credential information corresponding to the cluster to be managed; A cluster import request is generated based on the cluster address information and credential information; The cluster import request is sent to the cluster to be managed corresponding to the cluster address information, so that the cluster to be managed establishes a communication connection with the target cluster management component after the credential information in the cluster import request is verified.
18. The apparatus of claim 10, wherein, The cluster management system manages a Kubernetes cluster. 19.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-18. When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
20. A computer readable storage medium storing a computer program, wherein the computer program comprises instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1-19. When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
21. A computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Multi-cluster management method and management server
CN110198225A
Network management method, device and equipment and storage medium
CN111327668A
