A method and system for expanding computing nodes in a K8S container cluster

By automatically creating and registering computing node resources while the K8S container cluster is working normally, the problem of low manual operation efficiency of K8S container cluster expansion in the existing technology is solved, and fast and convenient automatic expansion and flexible node management are achieved, avoiding resource legacy.

CN113835834BActive Publication Date: 2025-07-11JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111060558.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-10
Publication Date
2025-07-11
Estimated Expiration
2041-09-10

AI Technical Summary

Technical Problem

In the prior art, the capacity expansion of K8S container cluster requires manual operation, which is inefficient and affects the cluster function, so it is impossible to achieve automated capacity expansion.

Method used

Provide a capacity expansion method based on K8S container cluster computing nodes. By automatically creating and registering computing node resources, including initial basic resources and residual resources, it realizes automatic capacity expansion and automatically deletes resources when failure.

Benefits of technology

It realizes the automatic expansion of container cluster computing nodes without affecting the normal operation of the cluster, which is fast and convenient, and can flexibly expand nodes according to needs, saving manpower and time, and avoiding legacy garbage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835834B_ABST
    Figure CN113835834B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of servers, and provides a method and system for expanding the computing nodes of a K8S container cluster. The method includes: while the K8S container cluster is working normally, creating the initial basic resources of the K8S container cluster; determining whether the creation of the initial basic resources is completed; when the creation is completed, controlling the automatic installation of the K8S container cluster and creating the remaining basic resources of the K8S container cluster; after the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed, controlling the registration of the computing nodes of the K8S container cluster; determining whether the registration of the computing nodes is completed, if so, determining that the expansion of the K8S container cluster is successful, otherwise determining that the expansion fails; when it is determined that the creation of the initial basic resources fails, then determining that the expansion fails and ending, thereby realizing the automatic expansion of the K8S container cluster without affecting the normal operation of the K8S container cluster.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of servers, and particularly relates to a method and system for expanding computing nodes of a K8S container cluster. Background Art

[0002] Kubernetes is an open-source container-based cluster management platform. The goal of Kubernetes is to simply and efficiently deploy containerized applications, providing a mechanism for application deployment, planning, updating, and maintenance, abbreviated as K8S. A K8S system, usually called a K8S cluster, mainly includes two parts: several Master nodes (primary nodes) and a group of Node nodes (computing nodes). The K8S cluster is a containerized management system and a collection of cloud resources required for container operation. It consists of several working nodes (cloud hosts or physical machines), load balancers, networks, and other resources, providing rich functions such as resource scheduling, deployment and operation, service discovery, and expansion and contraction of Node nodes for containerized applications. A Pod refers to the application load in the K8S cluster, and Pods run on nodes. A Pod consists of one or more containers that share container storage, network, and container runtime configuration items. Containers in a Pod are always scheduled simultaneously and have a common runtime environment, where:

[0003] The Master node is mainly responsible for management and control, including the API Server, Scheduler, Controllermanager, and ETCD. The API Server is the external interface of the entire system, which is called by clients and other components, equivalent to a "business hall". The Scheduler is responsible for scheduling resources within the cluster, monitoring newly created Pods that have not been assigned to nodes, and selecting a node for them to run, that is, the scheduling of Pods. The Controller manager is responsible for managing controllers, equivalent to a "general manager". ETCD is the default storage system provided by K8S, which stores all cluster data. A backup plan needs to be provided for ETCD data when it is used;

[0004] The Node node is the node that actually runs the workload. The Pods assigned by the Master run on the Node node. When a certain Node node fails, the Pods on it will be automatically transferred to other Node nodes. Each Node node is installed with Node components, including Kubelet, Kube-proxy, etc. The Kubelet monitors the Pods assigned to the node, is responsible for the lifecycle management of the Pods, and closely cooperates with the Master to maintain and manage all containers on the Node, realizing the basic functions of cluster management. The Kube-proxy is mainly responsible for providing proxies for Pod objects.

[0005] After the K8S container cluster is completed, during the use process, there is a situation where the capacity is too small to meet the needs of new services. At this time, expanding the Node nodes of the cluster is the simplest and most convenient way. The original method for expanding the Node nodes of the container cluster is to manually create resources such as cloud hosts and cloud hard disks. After the resources are successfully created, the cloud hard disk is mounted to the cloud host, and then through executing script commands, the manually created cloud host is associated with the container cluster. Finally, relevant parameters are manually configured to achieve the expansion of the cluster; during a series of operations, certain functions in the container cluster need to be paused; if the creation of the cloud host and cloud hard disk fails, the cloud host and cloud hard disk also need to be manually deleted. This kind of operation requires manual intervention and cannot achieve automatic expansion and the cleaning of the remaining data resources. Summary of the Invention

[0006] In view of the deficiencies in the prior art, the present invention provides a method for expanding computing nodes of a K8S container cluster, aiming to solve the problems that the expansion of the K8S container cluster in the prior art needs to be completed manually, is inconvenient to operate and has low efficiency, and at the same time, relevant functions of the container cluster need to be paused during the expansion process.

[0007] The technical solution provided by the present invention is: a method for expanding computing nodes of a K8S container cluster, the method comprising the following steps:

[0008] According to the expansion requirement information of the computing nodes of the user's K8S container cluster, while the K8S container cluster is working properly, create the initial basic resources of the K8S container cluster;

[0009] Judge whether the creation of the initial basic resources of the K8S container cluster is completed;

[0010] When it is determined that the creation of the initial basic resources of the K8S container cluster is completed, control the automatic installation of the K8S container cluster and the creation of the remaining basic resources of the K8S container cluster;

[0011] When the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed, control the registration of the computing nodes of the K8S container cluster;

[0012] Judge whether the registration of the computing nodes is completed. If so, determine that the expansion of the K8S container cluster is successful; otherwise, determine that the expansion of the K8S container cluster fails;

[0013] When it is determined that the creation of the initial basic resources of the K8S container cluster fails, then determine that the expansion of the K8S container cluster fails and end.

[0014] Another object of the present invention is to provide an expansion system for a K8S container cluster computing node based on an expansion method for a K8S container cluster computing node, the system comprising:

[0015] An initial basic resource creation module, configured to create the initial basic resources of the K8S container cluster while the K8S container cluster is operating normally according to the expansion requirement information of the K8S container cluster computing node of the user;

[0016] An initial basic resource creation judgment module, configured to judge whether the creation of the initial basic resources of the K8S container cluster is completed;

[0017] An installation control module, configured to control the automatic installation of the K8S container cluster and the creation of the remaining basic resources of the K8S container cluster when it is determined that the creation of the initial basic resources of the K8S container cluster is completed;

[0018] A computing node registration module, configured to control the registration of the computing nodes of the K8S container cluster after the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed;

[0019] A computing node registration judgment module, configured to judge whether the registration of the computing nodes is completed;

[0020] An expansion success determination module, configured to determine that the expansion of the K8S container cluster is successful when the computing node registration judgment module judges that the registration of the computing nodes is completed;

[0021] An expansion failure determination module, configured to determine that the expansion of the K8S container cluster fails and end when it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when the computing node registration judgment module judges that the registration of the computing nodes fails.

[0022] In an embodiment of the present invention, according to the expansion requirement information of the computing nodes of the K8S container cluster of a user, while the K8S container cluster is working normally, initial basic resources of the K8S container cluster are created; it is determined whether the creation of the initial basic resources of the K8S container cluster is completed; when it is determined that the creation of the initial basic resources of the K8S container cluster is completed, the automatic installation of the K8S container cluster and the creation of the remaining basic resources of the K8S container cluster are controlled; after the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed, the registration of the computing nodes of the K8S container cluster is controlled; it is determined whether the registration of the computing nodes is completed, if so, it is determined that the expansion of the K8S container cluster is successful, otherwise it is determined that the expansion of the K8S container cluster fails; when it is determined that the creation of the initial basic resources of the K8S container cluster fails, it is determined that the expansion of the K8S container cluster fails and the process ends, thereby realizing the automatic expansion of the K8S container cluster without affecting the normal operation of the K8S container cluster, which is convenient and fast. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.

[0024] Figure 1 FIG. is a flowchart of the implementation of the method for expanding the computing nodes of the K8S container cluster provided by the present invention;

[0025] Figure 2 FIG. is a block diagram of the structure of the system for expanding the computing nodes of the K8S container cluster provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0026] The following will describe in detail the embodiments of the technical solutions of the present invention with reference to the drawings. The following embodiments are only used to illustrate the technical solutions of the present invention more clearly, and thus are only examples and cannot be used to limit the protection scope of the present invention.

[0027] Figure 1 FIG. is a flowchart of the implementation of the method for expanding the computing nodes of the K8S container cluster provided by the present invention, which specifically includes the following steps:

[0028] In step S101, according to the expansion requirement information of the computing nodes of the K8S container cluster of a user, while the K8S container cluster is working normally, initial basic resources of the K8S container cluster are created;

[0029] In step S102, it is determined whether the initial basic resources of the K8S container cluster have been created. If so, step S103 is executed; otherwise, step S07 is executed.

[0030] In step S103, when it is determined that the initial basic resources of the K8S container cluster have been created, control is performed to automatically install the K8S container cluster and create the remaining basic resources of the K8S container cluster.

[0031] In step S104, after the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed, control is performed to register the computing nodes of the K8S container cluster.

[0032] In step S105, it is determined whether the registration of the computing nodes is completed. If so, step S106 is executed; otherwise, step S107 is executed.

[0033] In step S106, when it is determined that the registration of the computing nodes is completed, it is determined that the expansion of the K8S container cluster is successful.

[0034] In step S107, when it is determined that the registration of the computing nodes fails, or when it is determined that the creation of the initial basic resources of the K8S container cluster fails, it is determined that the expansion of the K8S container cluster fails, and the process ends.

[0035] In this embodiment, without affecting the normal operation of the K8S container cluster, the expansion of the computing nodes of the container cluster is automatically completed, which is convenient and fast. Moreover, the number of expanded computing nodes can be determined according to actual requirements, which will not be elaborated here.

[0036] In the embodiment of the present invention, the following steps need to be executed before performing the above step S101:

[0037] (1) When the K8S container cluster is created, the expansion requirements of the computing nodes of the K8S container cluster input by the user are received. Among them, the action of receiving the expansion requirements of the computing nodes of the K8S container cluster input by the user is implemented through the middleware cetus of the relational database. The middleware cetus of the relational database is built into the open-source cloud computing management platform project OpenStack. Moreover, Cetus is a middleware of the relational database MySQL developed in C language, which mainly provides a comprehensive database access proxy function. The connection method of Cetus is basically compatible with MySQL, and the application program can access the database through Cetus with almost no modification, realizing the horizontal expansion and high availability of the database layer. OpenStack provides scalable and elastic cloud computing services for private clouds and public clouds. The project goal is to provide a cloud computing management platform with simple implementation, large-scale expandability, richness, and unified standards;

[0038] (2) Analyze the scaling demand of the computing nodes in the K8S container cluster received from the user to obtain the scaling demand information of the computing nodes in the K8S container cluster;

[0039] (3) According to the scaling demand information of the computing nodes in the K8S container cluster, call the orchestration service component interface Heat. Among them, the orchestration service component interface Heat is used to create the initial basic resources of the K8S container cluster, and the initial basic resources of the K8S container cluster include cloud hosts, security groups, and cloud hard disks;

[0040] Among them, the step of calling the orchestration service component interface Heat is implemented through the middleware cetus of the relational database.

[0041] In the embodiment of the present invention, as Figure 1 shown in the solution, when it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when it is determined that the registration of the computing nodes fails, call the orchestration service component interface Heat to automatically delete the already created basic resources; automatically deleting the already created basic resources will not generate leftover garbage resources and will not affect the normal operation of the K8S container cluster.

[0042] In the embodiment of the present invention, while expanding the computing nodes, the K8S container cluster is in a normal working state. Among them, the cluster state of the K8S container cluster can be set as follows to clearly know the current state:

[0043] While executing the step of creating the initial basic resources of the K8S container cluster, change the cluster state of the K8S container cluster from "available" to "available, scaling";

[0044] When it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when it is determined that the registration of the computing nodes fails, and call the orchestration service component interface Heat to automatically delete the already created basic resources, change the cluster state of the K8S container cluster from "available, scaling" to "available, scaling failed";

[0045] When it is determined that the scaling of the K8S container cluster is successful, change the cluster state of the K8S container cluster from "available, scaling" to "available, scaling successful".

[0046] In the embodiment of the present invention, without affecting the external services of the cluster, the Node nodes of the container cluster are expanded. When the cluster expansion is successful, the capacity such as memory increases, and customers can continue to install and deploy new services. When the cluster expansion fails due to external factors such as network and host memory, the relevant interfaces of Cetus and Heat are automatically called to realize the automatic deletion of the initial basic resources such as cloud hosts, cloud disks, and security groups created, and no leftover garbage resources will be generated.

[0047] Figure 2 The structure block diagram of the expansion system for the computing nodes of the K8S container cluster provided by the present invention is shown. For the sake of convenience of description, only the parts related to the embodiments of the present invention are given in the figure.

[0048] The expansion system for the computing nodes of the K8S container cluster includes:

[0049] The initial basic resource creation module 11 is used to create the initial basic resources of the K8S container cluster according to the expansion requirement information of the computing nodes of the K8S container cluster of the user while the K8S container cluster is working properly.

[0050] The initial basic resource creation judgment module 12 is used to judge whether the creation of the initial basic resources of the K8S container cluster is completed.

[0051] The installation control module 13 is used to control the automatic installation of the K8S container cluster and create the remaining basic resources of the K8S container cluster when it is determined that the creation of the initial basic resources of the K8S container cluster is completed.

[0052] The computing node registration module 14 is used to control the registration of the computing nodes of the K8S container cluster after the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed.

[0053] The computing node registration judgment module 15 is used to judge whether the registration of the computing nodes is completed.

[0054] The expansion success determination module 16 is used to determine that the expansion of the K8S container cluster is successful when the computing node registration judgment module judges that the registration of the computing nodes is completed.

[0055] The expansion failure determination module 17 is used to determine that the expansion of the K8S container cluster fails and ends when it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when the computing node registration judgment module judges that the registration of the computing nodes fails.

[0056] In this embodiment, the system further includes:

[0057] The expansion requirement receiving module 18 is used to receive the expansion requirement of the computing nodes of the K8S container cluster input by the user when the K8S container cluster is created successfully.

[0058] The expansion requirement parsing module 19 is used to parse the expansion requirement of the computing nodes of the K8S container cluster input by the user to obtain the expansion requirement information of the computing nodes of the K8S container cluster.

[0059] The first orchestration service component interface calling module 20 is used to call the orchestration service component interface Heat according to the expansion requirement information of the computing nodes of the K8S container cluster. The orchestration service component interface Heat is used to create the initial basic resources of the K8S container cluster, and the initial basic resources of the K8S container cluster include cloud hosts, security groups, and cloud hard disks.

[0060] In the embodiment of the present invention, the system further includes:

[0061] The second orchestration service component interface calling module 21 is used to call the orchestration service component interface Heat to automatically delete the already created basic resources when it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when it is determined that the registration of the computing nodes fails.

[0062] In the embodiment of the present invention, as Figure 2 shown, the system further includes:

[0063] The cluster status update module 22 is used to synchronously update the cluster status of the K8S container cluster during the expansion process of the computing nodes of the K8S container cluster.

[0064] Among them, the cluster status update module 22 specifically includes:

[0065] The first cluster status update module 23 is used to change the cluster status of the K8S container cluster from "available" to "available, expanding" while performing the step of creating the initial basic resources of the K8S container cluster.

[0066] The second cluster status update module 24 is used to change the cluster status of the K8S container cluster from "available, expanding" to "available, expansion failed" while determining that the creation of the initial basic resources of the K8S container cluster fails, or when it is determined that the registration of the computing nodes fails, and calling the orchestration service component interface Heat to automatically delete the already created basic resources.

[0067] The third cluster status update module 25 is used to change the cluster status of the K8S container cluster from "available, expanding" to "available, expansion successful" while determining that the expansion of the K8S container cluster is successful.

[0068] When expanding the K8S container cluster without affecting its external services, the beneficial effects are as follows:

[0069] 1. It is convenient and fast. When the cluster capacity cannot meet the new business requirements, the customer can directly expand the cluster without affecting the original business functions. After the expansion is completed, new services can be directly deployed.

[0070] 2. The function of one-key expansion is fully realized. Even personnel who are not familiar with the business can successfully expand the cluster, saving time and manpower.

[0071] 3. It is controllable. One or more Node nodes can be expanded according to business needs to achieve controllable nodes and save economic costs.

[0072] 4. When expanding the K8S container cluster without affecting its external services, if the cluster expansion fails due to external factors such as network and host memory, the relevant interfaces of Cetus and Heat are automatically called to automatically delete the successfully created basic resources, and no residual garbage resources will be generated.

[0073] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered by the scope of the claims and the specification of the present invention.

Claims

1. An expansion method for computing nodes in a K8S container cluster, characterized in that The method includes the following steps: According to the scaling demand information of the computing nodes of the user's K8S container cluster, while the K8S container cluster is working properly, create the initial basic resources of the K8S container cluster; Judge whether the creation of the initial basic resources of the K8S container cluster is completed; When it is determined that the creation of the initial basic resources of the K8S container cluster is completed, control the automatic installation of the K8S container cluster and the creation of the remaining basic resources of the K8S container cluster; After the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed, control the registration of the computing nodes of the K8S container cluster; Judge whether the registration of the computing nodes is completed. If so, determine that the scaling of the K8S container cluster is successful; otherwise, determine that the scaling of the K8S container cluster fails; When it is determined that the creation of the initial basic resources of the K8S container cluster fails, determine that the scaling of the K8S container cluster fails and end; Among them, before the step of creating the initial basic resources of the K8S container cluster according to the scaling demand information of the computing nodes of the user's K8S container cluster while the K8S container cluster is working properly, the following steps are also included: (1) When the K8S container cluster is created, receive the scaling demand of the computing nodes of the K8S container cluster input by the user; (2) Analyze the received scaling demand of the computing nodes of the K8S container cluster input by the user to obtain the scaling demand information of the computing nodes of the K8S container cluster; (3) According to the scaling demand information of the computing nodes of the K8S container cluster, call the orchestration service component interface Heat. Among them, the orchestration service component interface Heat is used to create the initial basic resources of the K8S container cluster, and the initial basic resources of the K8S container cluster include cloud hosts, security groups, and cloud hard disks.

2. The method for expanding the computing nodes of the K8S container cluster according to claim 1, wherein Before the step of creating the initial basic resources of the K8S container cluster according to the scaling demand information of the computing nodes of the user's K8S container cluster while the K8S container cluster is working properly, the following steps are also included: When the K8S container cluster is created, receive the scaling demand of the computing nodes of the K8S container cluster input by the user; Analyze the received scaling demand of the computing nodes of the K8S container cluster input by the user to obtain the scaling demand information of the computing nodes of the K8S container cluster; According to the scaling demand information of the computing nodes of the K8S container cluster, call the orchestration service component interface Heat. Among them, the orchestration service component interface Heat is used to create the initial basic resources of the K8S container cluster, and the initial basic resources of the K8S container cluster include cloud hosts, security groups, and cloud hard disks.

3. The method for expanding the computing nodes of the K8S container cluster according to claim 2, wherein The method also includes the following steps: When it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when it is determined that the registration of the computing nodes fails, call the orchestration service component interface Heat to automatically delete the already created basic resources.

4. The method for expanding the computing nodes of the K8S container cluster according to claim 3, characterized in that, The method also includes the following steps: During the process of scaling the computing nodes of the K8S container cluster, synchronously update the cluster status of the K8S container cluster.

5. The method for expanding the computing nodes of the K8S container cluster according to claim 4, wherein, During the process of expanding the computing nodes of the K8S container cluster, the steps of synchronously updating the cluster state of the K8S container cluster specifically include the following steps: While executing the step of creating the initial basic resources of the K8S container cluster, change the cluster state of the K8S container cluster from "Available" to "Available, Expanding".

6. The method for expanding the computing nodes of the K8S container cluster according to claim 4, characterized in that, During the process of expanding the computing nodes of the K8S container cluster, the steps of synchronously updating the cluster state of the K8S container cluster also specifically include the following steps: When it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when it is determined that the registration of the computing nodes fails, while automatically deleting the already created basic resources by calling the orchestration service component interface Heat, change the cluster state of the K8S container cluster from "Available, Expanding" to "Available, Expansion Failed".

7. The method for expanding a computing node of a K8S container cluster according to claim 4, wherein During the process of expanding the computing nodes of the K8S container cluster, the steps of synchronously updating the cluster state of the K8S container cluster also specifically include the following steps: When it is determined that the expansion of the K8S container cluster is successful, change the cluster state of the K8S container cluster from "Available, Expanding" to "Available, Expansion Successful".

8. The method for expanding the computing nodes of the K8S container cluster according to claim 2, wherein When the K8S container cluster is created, the steps of receiving the expansion requirement of the computing nodes of the K8S container cluster input by the user specifically include the following steps: When the K8S container cluster is created, receive the expansion requirement of the computing nodes of the K8S container cluster input by the user through the middleware cetus of the relational database.

9. The method for expanding the computing nodes of the K8S container cluster according to claim 8, wherein, The steps of calling the orchestration service component interface Heat according to the expansion requirement information of the computing nodes of the K8S container cluster specifically include the following steps: According to the expansion requirement information of the computing nodes of the K8S container cluster, call the orchestration service component interface Heat through the middleware cetus of the relational database.

10. An expansion system for a computing node of a K8S container cluster based on the expansion method of a computing node of a K8S container cluster according to claim 1, characterized in that, The system includes: An initial basic resource creation module, configured to create the initial basic resources of the K8S container cluster according to the expansion requirement information of the computing nodes of the K8S container cluster while the K8S container cluster is working properly; An initial basic resource creation judgment module, configured to judge whether the creation of the initial basic resources of the K8S container cluster is completed; An installation control module, configured to control the automatic installation of the K8S container cluster and create the remaining basic resources of the K8S container cluster when it is determined that the creation of the initial basic resources of the K8S container cluster is completed; A computing node registration module, configured to control the registration of the computing nodes of the K8S container cluster after the automatic installation of the K8S container cluster and the creation of the remaining basic resources are completed; A computing node registration judgment module, configured to judge whether the registration of the computing nodes is completed; An expansion success determination module, configured to determine that the expansion of the K8S container cluster is successful when the computing node registration judgment module judges that the registration of the computing nodes is completed; The expansion failure determination module is used to determine that the expansion of the K8S container cluster fails and end when it is determined that the creation of the initial basic resources of the K8S container cluster fails, or when the computing node registration judgment module determines that the registration of the computing node fails. Among them, before the step of creating the initial basic resources of the K8S container cluster according to the expansion requirement information of the computing nodes of the K8S container cluster of the user while the K8S container cluster is working properly, the following steps are further included: (1) When the K8S container cluster is created, receive the expansion requirements of the computing nodes of the K8S container cluster input by the user. (2) Analyze the received expansion requirements of the computing nodes of the K8S container cluster to obtain the expansion requirement information of the computing nodes of the K8S container cluster. (3) According to the expansion requirement information of the computing nodes of the K8S container cluster, call the orchestration service component interface Heat, where the orchestration service component interface Heat is used to create the initial basic resources of the K8S container cluster, and the initial basic resources of the K8S container cluster include cloud hosts, security groups, and cloud hard disks.

Citation Information

Patent Citations

  • Telescopic capacity control method and device for Kubernetes container cluster and network equipment

    CN111464355A

  • K8S quick starting method based on cloud platform

    CN111522622A