CN115396441A - A kind of Kubernetes multi-cluster management method, device, equipment, storage medium - Google Patents
A kind of Kubernetes multi-cluster management method, device, equipment, storage medium Download PDFInfo
- Publication number
- CN115396441A CN115396441A CN202211027099.5A CN202211027099A CN115396441A CN 115396441 A CN115396441 A CN 115396441A CN 202211027099 A CN202211027099 A CN 202211027099A CN 115396441 A CN115396441 A CN 115396441A
- Authority
- CN
- China
- Prior art keywords
- cluster
- management
- kubernetes
- information
- kubernets
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 253
- 238000012360 testing method Methods 0.000 claims abstract description 15
- 238000000034 method Methods 0.000 claims description 29
- 238000004590 computer program Methods 0.000 claims description 17
- 238000004891 communication Methods 0.000 claims description 16
- 238000005538 encapsulation Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 description 10
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/22—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
- H04L67/306—User profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及集群管理技术领域,特别涉及一种Kubernetes多集群管理方法、装置、设备、存储介质。The present invention relates to the technical field of cluster management, in particular to a Kubernetes multi-cluster management method, device, equipment, and storage medium.
背景技术Background technique
无论是私有云还是公有云,都会有大量的K8S(Kubernetes)集群需要管理,这些集群没有一个统一的管理平台,这极大的提高了运维的难度,每个集群都具有差异性,不同的网络插件,不同的K8S版本,甚至还有对K8S组件做二次开发的集群,因为现有解决方案例如KubeFederation在实现多集群管理时都需要对K8S的API(ApplicationProgramInterface,应用程序接口)进行扩展。修改原有的K8S的API,并需要修改多个配置,部署及其复杂,繁琐,对于不熟悉KubeFederation的人学习成本极高,并且存储信息是通过K8S的CRD,存储在各自的etcd中,而这些集群信息,认证信息,用户信息,每个集群都不同,这种存储方式容易出现信息不一致,最终导致多集群管理出现问题。已有专利CN202111462252.2的提到通过自定义的声明式API对多个Kubernetes集群进行统一管理,该方式类会让整个K8S的API过于臃肿,需要编写大量CRD,并且生成大量CRD,当CRD出现问题容易导致整个集群崩溃无法使用。已有专利CN202111018688.2中通过集群管理调度模块,进行多集群管理,需要另外开发注册和管理调度模块。Whether it is a private cloud or a public cloud, there will be a large number of K8S (Kubernetes) clusters that need to be managed. These clusters do not have a unified management platform, which greatly increases the difficulty of operation and maintenance. Each cluster is different. Network plug-ins, different K8S versions, and even clusters for secondary development of K8S components, because existing solutions such as KubeFederation need to extend K8S API (ApplicationProgramInterface, application programming interface) when implementing multi-cluster management. Modify the original K8S API, and need to modify multiple configurations. The deployment is extremely complicated and cumbersome. For those who are not familiar with KubeFederation, the learning cost is extremely high, and the storage information is stored in the respective etcd through the K8S CRD, while These cluster information, authentication information, and user information are different for each cluster. This storage method is prone to information inconsistency, which eventually leads to problems in multi-cluster management. The existing patent CN202111462252.2 mentions unified management of multiple Kubernetes clusters through a custom declarative API. This method will make the API of the entire K8S too bloated, and a large number of CRDs need to be written and generated. When a CRD appears Problems can easily cause the entire cluster to crash and become unusable. In the existing patent CN202111018688.2, the cluster management scheduling module is used to manage multiple clusters, and a registration and management scheduling module needs to be developed separately.
综上,如何提高集群间通信和管理的效率,避免由于集群管理过于复杂、不稳定、不一致的问题,实现简单、高效、一致的多集群管理是本领域有待解决的技术问题。To sum up, how to improve the efficiency of inter-cluster communication and management, avoid the problems of overly complex, unstable, and inconsistent cluster management, and realize simple, efficient, and consistent multi-cluster management are technical problems to be solved in this field.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种Kubernetes多集群管理方法、装置、设备、存储介质,能够提高集群间通信和管理的效率,避免由于集群管理过于复杂、不稳定、不一致的问题,实现简单、高效、一致的多集群管理。其具体方案如下:In view of this, the object of the present invention is to provide a Kubernetes multi-cluster management method, device, equipment, and storage medium, which can improve the efficiency of inter-cluster communication and management, avoid the problems of too complicated, unstable, and inconsistent cluster management, and realize Simple, efficient, and consistent multi-cluster management. The specific plan is as follows:
第一方面,本申请公开了一种Kubernetes多集群管理方法,应用于主管理集群,包括:In the first aspect, the application discloses a Kubernetes multi-cluster management method, which is applied to the main management cluster, including:
为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;Deploying preset agents for other Kubernetes clusters other than the master management cluster to obtain slave management clusters;
发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;Send a management instruction to the slave management cluster, so that the preset agent program calls the corresponding test case to collect the cluster information of the slave management cluster, and generates corresponding return information;
接收所述回传信息,以实现对Kubernetes多集群的管理。The feedback information is received to realize the management of Kubernetes multi-clusters.
可选的,所述为所述主管理集群外的其他Kubernetes集群部署预设代理程序之前,还包括:Optionally, before deploying preset agents for other Kubernetes clusters other than the main management cluster, it also includes:
对Kubernetes集群进行部署预设master程序,以得到主管理集群。Deploy the preset master program to the Kubernetes cluster to obtain the master management cluster.
可选的,所述对Kubernetes集群进行部署预设master程序,以得到主管理集群,包括:Optionally, the preset master program is deployed to the Kubernetes cluster to obtain the master management cluster, including:
对所述Kubernetes集群的配置信息进行修改,并通过yaml文件部署所述预设master程序,以得到所述主管理集群。Modify the configuration information of the Kubernetes cluster, and deploy the preset master program through the yaml file to obtain the master management cluster.
可选的,所述为所述主管理集群外的其他Kubernetes集群部署预设代理程序之前,还包括:Optionally, before deploying preset agents for other Kubernetes clusters other than the main management cluster, it also includes:
对所述预设代理程序进行通信协议封装。Perform communication protocol encapsulation on the preset agent program.
可选的,所述接收所述回传信息,以实现对Kubernetes多集群的管理,包括:Optionally, the receiving the feedback information to realize the management of Kubernetes multi-clusters includes:
预先通过图形化界面添加所述从管理集群的集群信息;Adding the cluster information of the slave management cluster through a graphical interface in advance;
通过预设程序接口输入集群的kubeconfig,以便显示对应的回传信息实现对Kubernetes多集群的管理。Enter the kubeconfig of the cluster through the preset program interface to display the corresponding feedback information to manage Kubernetes multi-clusters.
可选的,所述接收所述回传信息,以实现对Kubernetes多集群的管理之后,还包括:Optionally, after receiving the feedback information to realize the management of Kubernetes multi-clusters, it also includes:
基于用户需求将所述回传信息中的目标信息保存至本地数据库中。The target information in the returned information is saved in a local database based on user requirements.
第二方面,本申请公开了一种Kubernetes多集群管理方法,应用于从管理集群,包括:In the second aspect, the present application discloses a Kubernetes multi-cluster management method, which is applied to the slave management cluster, including:
接收主管理集群发送的管理指令,利用所述主管理集群预先为所述从管理集群部署的预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;Receive the management instruction sent by the master management cluster, use the master management cluster to pre-call the corresponding test case for the preset agent deployed by the slave management cluster, collect the cluster information of the slave management cluster, and generate corresponding return information ;
发送所述回传信息至所述主管理集群,以便所述主管理集群实现对Kubernetes多集群的管理。Sending the feedback information to the main management cluster, so that the main management cluster can manage Kubernetes multi-clusters.
第三方面,本申请公开了一种Kubernetes多集群管理装置,应用于主管理集群,包括:In a third aspect, the present application discloses a Kubernetes multi-cluster management device, which is applied to the main management cluster, including:
程序部署模块,用于为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;A program deployment module, configured to deploy preset agent programs for other Kubernetes clusters outside the main management cluster, so as to obtain slave management clusters;
信息收集模块,用于发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;An information collection module, configured to send a management instruction to the slave management cluster, so that the preset agent program calls a corresponding test case to collect the cluster information of the slave management cluster, and generates corresponding return information;
信息接收模块,用于接收所述回传信息,以实现对Kubernetes多集群的管理。An information receiving module, configured to receive the feedback information, so as to realize the management of Kubernetes multi-clusters.
第四方面,本申请公开了一种电子设备,包括:In a fourth aspect, the present application discloses an electronic device, comprising:
存储器,用于保存计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序,以实现前述公开的Kubernetes多集群管理方法的步骤。The processor is configured to execute the computer program, so as to realize the steps of the aforementioned disclosed Kubernetes multi-cluster management method.
第五方面,本申请公开了一种计算机可读存储介质,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现前述公开的Kubernetes多集群管理方法的步骤。In a fifth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed Kubernetes multi-cluster management method are implemented.
可见,本申请公开了一种Kubernetes多集群管理方法,应用于主管理集群,包括:为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;接收所述回传信息,以实现对Kubernetes多集群的管理。由此可见,本申请通过部署预设代理程序来管理Kubernetes集群。主管理集群直接下发指令给预设代理程序。利用预设代理程序直接访问K8S Apiserver,进而利用API操控各个集群,收集数据或控制集群,以实现对Kubernetes多集群的管理。It can be seen that the present application discloses a Kubernetes multi-cluster management method, which is applied to the main management cluster, including: deploying preset agent programs for other Kubernetes clusters outside the main management cluster to obtain the slave management cluster; sending management instructions to all Describe from the management cluster, so that the preset agent calls the corresponding test case to collect the cluster information from the management cluster, and generate corresponding return information; receive the return information, to realize the management of Kubernetes multi-cluster . It can be seen that the present application manages the Kubernetes cluster by deploying a preset agent program. The main management cluster directly issues instructions to the preset agent program. Use the preset agent program to directly access the K8S Apiserver, and then use the API to control each cluster, collect data or control the cluster, so as to realize the management of Kubernetes multi-cluster.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请公开的一种Kubernetes多集群管理方法流程图;Fig. 1 is a flow chart of a kind of Kubernetes multi-cluster management method disclosed by the application;
图2为本申请公开的一种master集群管理agent集群流程图;Fig. 2 is a flow chart of a master cluster management agent cluster disclosed by the present application;
图3为本申请公开的一种具体的Kubernetes多集群管理方法流程图;Fig. 3 is a kind of specific Kubernetes multi-cluster management method flowchart disclosed by the present application;
图4为本申请公开的一种目标集群KubeConfig填写代码;Fig. 4 fills in code for a kind of target cluster KubeConfig disclosed in this application;
图5为本申请公开的另一种具体的Kubernetes多集群管理方法流程图;Fig. 5 is another kind of specific Kubernetes multi-cluster management method flowchart disclosed in the present application;
图6为本申请公开的一种Kubernetes多集群管理装置结构示意图;Fig. 6 is a schematic structural diagram of a Kubernetes multi-cluster management device disclosed in the present application;
图7为本申请公开的一种电子设备结构图。FIG. 7 is a structural diagram of an electronic device disclosed in the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
无论是私有云还是公有云,都会有大量的K8S集群需要管理,这些集群没有一个统一的管理平台,这极大的提高了运维的难度,每个集群都具有差异性,不同的网络插件,不同的K8S版本,甚至还有对K8S组件做二次开发的集群,因为现有解决方案例如KubeFederation在实现多集群管理时都需要对K8S的API进行扩展。修改原有的K8S的API,并需要修改多个配置,部署及其复杂,繁琐,对于不熟悉KubeFederation的人学习成本极高,并且存储信息是通过K8S的CRD,存储在各自的etcd中,而这些集群信息,认证信息,用户信息,每个集群都不同,这种存储方式容易出现信息不一致,最终导致多集群管理出现问题。已有专利CN202111462252.2的提到通过自定义的声明式API对多个Kubernetes集群进行统一管理,该方式类会让整个K8S的API过于臃肿,需要编写大量CRD,并且生成大量CRD,当CRD出现问题容易导致整个集群崩溃无法使用。已有专利CN202111018688.2中通过集群管理调度模块,进行多集群管理,需要另外开发注册和管理调度模块。Whether it is a private cloud or a public cloud, there will be a large number of K8S clusters that need to be managed. These clusters do not have a unified management platform, which greatly increases the difficulty of operation and maintenance. Each cluster is different, and different network plug-ins, Different K8S versions, and even clusters for secondary development of K8S components, because existing solutions such as KubeFederation need to expand the K8S API when implementing multi-cluster management. Modify the original K8S API, and need to modify multiple configurations. The deployment is extremely complicated and cumbersome. For those who are not familiar with KubeFederation, the learning cost is extremely high, and the storage information is stored in the respective etcd through the K8S CRD, while These cluster information, authentication information, and user information are different for each cluster. This storage method is prone to information inconsistency, which eventually leads to problems in multi-cluster management. The existing patent CN202111462252.2 mentions unified management of multiple Kubernetes clusters through a custom declarative API. This method will make the API of the entire K8S too bloated, and a large number of CRDs need to be written and generated. When a CRD appears Problems can easily cause the entire cluster to crash and become unusable. In the existing patent CN202111018688.2, the cluster management scheduling module is used to manage multiple clusters, and a registration and management scheduling module needs to be developed separately.
为此,本申请公开了一种Kubernetes多集群管理方案,能够提高集群间通信和管理的效率,避免由于集群管理过于复杂、不稳定、不一致的问题,实现简单、高效、一致的多集群管理。Therefore, this application discloses a Kubernetes multi-cluster management solution, which can improve the efficiency of inter-cluster communication and management, avoid the problems of overly complex, unstable and inconsistent cluster management, and realize simple, efficient and consistent multi-cluster management.
参照图1所示,本发明实施例公开了一种Kubernetes多集群管理方法,应用于主管理集群,包括:Referring to Fig. 1, the embodiment of the present invention discloses a Kubernetes multi-cluster management method, which is applied to the main management cluster, including:
步骤S11:为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群。Step S11: Deploy preset agent programs for other Kubernetes clusters other than the master management cluster, so as to obtain slave management clusters.
本实施例中,参照图2所示,利用程序开发语言Golong编写多云管理agent程序,并将编写的多云管理agent程序部署至除主管理集群外的其他Kubernetes集群中,其中,在部署过程中,需要在yaml文件中修改从管理集群中的配置,修改完成通过在从管理集群执行相应的部署命令将agent组件部署到agent集群中,以得到从管理集群。例如:部署一个kubernetes agent集群。修改clusterdeployment.yaml文件下agent集群中的配置:修改Clustername:b-idc-sjzntest-20220215,修改clusterRole:agent和jwtSecret:"OrZpAUpoAxZRdOjiPQ1A4tRgXNnxtotD"。修改完成后通过在agetn集群执行命令kubectlapply–fclusterdeployment.yaml将agent组件部署到agent集群中。其中,从管理集群的代码实现如下:In this embodiment, as shown in FIG. 2 , use the program development language Golong to write the multi-cloud management agent program, and deploy the written multi-cloud management agent program to other Kubernetes clusters except the main management cluster, wherein, during the deployment process, It is necessary to modify the configuration in the slave management cluster in the yaml file. After the modification is completed, execute the corresponding deployment command in the slave management cluster to deploy the agent component to the agent cluster to obtain the slave management cluster. For example: deploy a kubernetes agent cluster. Modify the configuration in the agent cluster under the clusterdeployment.yaml file: modify Clustername: b-idc-sjzntest-20220215, modify clusterRole: agent and jwtSecret: "OrZpAUpoAxZRdOjiPQ1A4tRgXNnxtotD". After the modification is completed, deploy the agent component to the agent cluster by executing the command kubectlapply–fclusterdeployment.yaml in the agetn cluster. Among them, the implementation of the code from the management cluster is as follows:
本实施例中,参照图2所示,所述为所述主管理集群外的其他Kubernetes集群部署预设代理程序之前,还包括:对Kubernetes集群进行部署预设master程序,以得到主管理集群。可以理解的是,利用程序开发语言Golong编写master程序,并将编写的master程序部署至主管理集群中,其中,在部署过程中,需要在yaml文件中修改主管理集群中的配置,修改完成通过在主管理集群执行相应的部署命令将master程序部署至主管理集群中,预先需要编译打包生成镜像,然后通过yaml文件来部署master程序,例如:首先部署一个kubernetes集群,然后修改clusterdeployment.yamlmaster集群中的配置,修改Clustername:host,修改clusterRole:host和jwtSecret:""为空,修改完成后通过在master集群执行命令kubectlapply–f clusterdeployment.yaml将master组件部署到master集群中,部署完成以后通过命令kubectl get secret clusterdeployment|grep-v"apiVersion"|grepjwtSecret获取jwtSecret,主管理集群部署代码如下:In this embodiment, referring to FIG. 2 , before deploying preset agent programs for other Kubernetes clusters other than the master management cluster, it further includes: deploying a preset master program to the Kubernetes cluster to obtain a master management cluster. It is understandable that the program development language Golong is used to write the master program, and the written master program is deployed to the main management cluster. During the deployment process, the configuration in the main management cluster needs to be modified in the yaml file. The modification is completed through Execute the corresponding deployment command in the main management cluster to deploy the master program to the main management cluster. It is necessary to compile and package the image in advance, and then deploy the master program through the yaml file. For example: first deploy a kubernetes cluster, and then modify the clusterdeployment.yamlmaster cluster configuration, modify Clustername:host, modify clusterRole:host and jwtSecret:"" to be empty, and execute the command kubectlapply–f clusterdeployment.yaml in the master cluster to deploy the master component to the master cluster after the modification is completed. After the deployment is complete, use the command kubectl get secret clusterdeployment|grep-v"apiVersion"|grepjwtSecret to get jwtSecret, the main management cluster deployment code is as follows:
本实施例中,所述为所述主管理集群外的其他Kubernetes集群部署预设代理程序之前,还包括:对所述预设代理程序进行通信协议封装。可以理解的是,通过将通信技术封装在agent中,直接利用agent下发指令至kube-apiserver,对从管理集群进行管理省去与CRD通信的繁琐步骤。In this embodiment, before deploying the preset agent program for other Kubernetes clusters other than the main management cluster, it further includes: performing communication protocol encapsulation on the preset agent program. It can be understood that, by encapsulating the communication technology in the agent, the agent can directly use the agent to issue instructions to the kube-apiserver, which saves the cumbersome steps of communicating with the CRD for managing the slave management cluster.
步骤S12:发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息。Step S12: sending a management instruction to the slave management cluster, so that the preset agent program invokes a corresponding test case to collect the cluster information of the slave management cluster, and generates corresponding return information.
本实施例中,master直接下发指令给agent。agent直接访问K8S apiserver。操控agent集群,展示agent集群数据,管理agent集群。可以理解的是,master通过接口来下发指令给多云管理agent,由多云管理agent接口指令,调用K8S的api完成对agent集群的管理和控制,并产生相应的回传信息,需要注意的是,本实施例在实现多集群管理时不需要对K8S的api进行扩展,agent和master均无倾入性,无需增加或修改K8S的API资源,无需修改原有的K8Sapi或修改多个配置,只需要master向agent下发相应的管理指令,以便agent直接调用原有K8S的api进行管理或控制,部署简单,学习成本低,省去大量自定义资源,精简了CRD,避免了由于CRD故障出现的各种问题。In this embodiment, the master directly issues instructions to the agent. The agent directly accesses the K8S apiserver. Manipulate the agent cluster, display the agent cluster data, and manage the agent cluster. It is understandable that the master issues instructions to the multi-cloud management agent through the interface, and the multi-cloud management agent interface command calls the K8S API to complete the management and control of the agent cluster, and generates corresponding feedback information. It should be noted that, This embodiment does not need to expand the API of K8S when implementing multi-cluster management, neither the agent nor the master is pouring in, and there is no need to add or modify API resources of K8S, or modify the original K8Sapi or modify multiple configurations. The master issues corresponding management instructions to the agent so that the agent can directly call the original K8S API for management or control. The deployment is simple, the learning cost is low, a large number of custom resources are saved, the CRD is streamlined, and various problems caused by CRD failures are avoided. kind of problem.
步骤S13:接收所述回传信息,以实现对Kubernetes多集群的管理。Step S13: Receive the feedback information, so as to realize the management of Kubernetes multi-clusters.
本实施例中,多云管理agent回传信息给master集群,用以展示资源信息,或者返回处理结果,能够提高集群间通信和管理的效率,通过agent和master通信来实现多集群管理,通过master集群去管理agent集群。In this embodiment, the multi-cloud management agent returns information to the master cluster to display resource information or return processing results, which can improve the efficiency of inter-cluster communication and management, realize multi-cluster management through agent and master communication, and achieve multi-cluster management through master cluster To manage the agent cluster.
本实施例中,所述接收所述回传信息,以实现对Kubernetes多集群的管理之后,还包括:基于用户需求将所述回传信息中的目标信息保存至本地数据库中。可以理解的是,当所述回传信息中包含相应的用户需要的目标信息时,需要对目标信息进行相应的存储。In this embodiment, after receiving the returned information to realize the management of Kubernetes multi-clusters, it further includes: saving the target information in the returned information to a local database based on user requirements. It can be understood that when the returned information includes the corresponding target information required by the user, the target information needs to be stored accordingly.
可见,本申请公开了一种Kubernetes多集群管理方法,应用于主管理集群,包括:为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;接收所述回传信息,以实现对Kubernetes多集群的管理。由此可见,本申请通过部署预设代理程序来管理Kubernetes集群。主管理集群直接下发指令给预设代理程序。利用预设代理程序直接访问K8S Apiserver,进而利用API操控各个集群,收集数据或控制集群,以实现对Kubernetes多集群的管理。It can be seen that the present application discloses a Kubernetes multi-cluster management method, which is applied to the main management cluster, including: deploying preset agent programs for other Kubernetes clusters outside the main management cluster to obtain the slave management cluster; sending management instructions to all Describe from the management cluster, so that the preset agent calls the corresponding test case to collect the cluster information from the management cluster, and generate corresponding return information; receive the return information, to realize the management of Kubernetes multi-cluster . It can be seen that the present application manages the Kubernetes cluster by deploying a preset agent program. The main management cluster directly issues instructions to the preset agent program. Use the preset agent program to directly access the K8S Apiserver, and then use the API to control each cluster, collect data or control the cluster, so as to realize the management of Kubernetes multi-cluster.
参照图3所示,本发明实施例公开了一种具体的Kubernetes多集群管理方法,应用于主管理集群,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。具体的:Referring to FIG. 3 , the embodiment of the present invention discloses a specific Kubernetes multi-cluster management method, which is applied to the main management cluster. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. specific:
步骤S21:对Kubernetes集群的配置信息进行修改,并通过yaml文件部署预设master程序,以得到所述主管理集群。Step S21: modify the configuration information of the Kubernetes cluster, and deploy a preset master program through a yaml file to obtain the master management cluster.
本实施例中,预先对Kubernetes集群的配置信息进行修改,由于现有的Kubernetes多集群之间是相互不存在直接通信的,而如果通过主管理集群去管理其他从管理集群的方式进行Kubernetes多集群的管理与控制,则需要对Kubernetes集群的配置信息进行相应的修改,将自主开发的后端程序部署至Kubernetes集群中,实现K8S多云管理,因此,需要对预先部署的Kubernetes集群的yaml文件进行修改,然后在Kubernetes集群中部署预设master程序,以得到所述主管理集群。In this embodiment, the configuration information of the Kubernetes cluster is modified in advance. Since there is no direct communication between the existing Kubernetes multi-clusters, if the master management cluster is used to manage other slave management clusters, the Kubernetes multi-cluster For the management and control of K8S, it is necessary to modify the configuration information of the Kubernetes cluster accordingly, and deploy the self-developed back-end program to the Kubernetes cluster to realize K8S multi-cloud management. Therefore, it is necessary to modify the yaml file of the pre-deployed Kubernetes cluster , and then deploy a preset master program in the Kubernetes cluster to obtain the master management cluster.
步骤S22:为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群。Step S22: Deploy preset agent programs for other Kubernetes clusters other than the master management cluster, so as to obtain slave management clusters.
步骤S23:发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息。Step S23: sending a management instruction to the slave management cluster, so that the preset agent program invokes a corresponding test case to collect the cluster information of the slave management cluster, and generates corresponding return information.
其中,步骤S22、S23中更加详细的处理过程请参照前述公开的实施例,在此不再进行赘述。Wherein, for more detailed processing procedures in steps S22 and S23, please refer to the foregoing disclosed embodiments, and details are not repeated here.
步骤S24:预先通过图形化界面添加所述从管理集群的集群信息;通过预设程序接口输入集群的kubeconfig,以便显示对应的回传信息实现对Kubernetes多集群的管理。Step S24: add the cluster information of the slave management cluster through the graphical interface in advance; input the kubeconfig of the cluster through the preset program interface, so as to display the corresponding returned information to realize the management of the Kubernetes multi-cluster.
本实施例中,master和agent会自动识别信息在master集群通过命令kubectl getcluster就可以获取到集群信息,进而实现对从管理集群的控制和管理,开发平台通过react来编写平台前端,用图形化的界面来管理多云管理agent集群。通过图形界面添加相应的集群。参照图4所示,输入agent集群的kubeconfig就可以实现master集群管理多个集群,master集群将agent集群信息直接保存在mysql数据库中。由于直接连接mysql数据库,将集群信息存储在数据库中,无论是修改agent集群还是master集群,都会同步到数据库中,避免之前集群的存储信息是通过K8S的CRD存储在各自的ETCD中,而这些集群信息、认证信息、用户信息等每个集群都不同,这种存储方式容易出现信息不一致,最终导致多集群管理出现问题避免出现数据不一致,导致多集群管理功能出现奔溃的问题,而本实施例中,通过mysql数据库来存储关键信息,避免了ETCD存储出现的数据不一致问题。In this embodiment, the master and the agent will automatically identify the information. In the master cluster, the cluster information can be obtained by commanding kubectl getcluster, and then realize the control and management of the slave management cluster. The development platform uses react to write the front end of the platform, and uses the graphical Interface to manage multi-cloud management agent clusters. Add the corresponding cluster through the graphical interface. Referring to Figure 4, inputting the kubeconfig of the agent cluster enables the master cluster to manage multiple clusters, and the master cluster directly saves the agent cluster information in the mysql database. Due to the direct connection to the mysql database, the cluster information is stored in the database, whether it is modifying the agent cluster or the master cluster, it will be synchronized to the database, avoiding that the storage information of the previous cluster is stored in the respective ETCD through the K8S CRD, and these clusters Information, authentication information, user information, etc. are different for each cluster. This storage method is prone to information inconsistency, which will eventually lead to problems in multi-cluster management. In , the key information is stored through the mysql database, which avoids the data inconsistency problem in ETCD storage.
由此可见,本申请通过master和多云管理agent将关联信息存储在数据库中,避免了ETCD存储出现的数据不一致的问题,并且本申请实施例在管理控制从管理集群的实现过程中模块少,大幅降低K8S多集群管理的学习成本。无需CRD部署,没有臃肿的K8S api的扩展,直接将功能封装在程序中实现多集群管理,无需ETCD,不需要将数据存在ETCD中,只需部署agent和master程序。It can be seen that this application stores the associated information in the database through the master and the multi-cloud management agent, which avoids the problem of data inconsistency in ETCD storage, and the implementation of the embodiment of the application has fewer modules in the process of implementing management control from the management cluster. Reduce the learning cost of K8S multi-cluster management. No need for CRD deployment, no bloated K8S api extension, directly encapsulate the function in the program to achieve multi-cluster management, no need for ETCD, no need to store data in ETCD, just deploy agent and master programs.
参照图5所示,本发明实施例公开了一种具体的Kubernetes多集群管理方法,应用于从管理集群,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。具体的:Referring to FIG. 5 , the embodiment of the present invention discloses a specific Kubernetes multi-cluster management method, which is applied to slave management clusters. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. specific:
步骤S31:接收主管理集群发送的管理指令,利用所述主管理集群预先为所述从管理集群部署的预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息。Step S31: Receive the management instruction sent by the master management cluster, use the master management cluster to pre-call the corresponding test case for the preset agent program deployed by the slave management cluster to collect the cluster information of the slave management cluster, and generate the corresponding Return information.
本实施例中,从管理集群通过接口接收主管理集群发送的管理指令,并基于预先在从管理集群中部署的agent程序调用Kubernetes集群的api去收集从管理集群的集群信息,并产生相应的回传信息。In this embodiment, the slave management cluster receives the management command sent by the master management cluster through the interface, and calls the API of the Kubernetes cluster based on the agent program deployed in the slave management cluster in advance to collect the cluster information of the slave management cluster, and generates a corresponding response pass on information.
步骤S32:发送所述回传信息至所述主管理集群,以便所述主管理集群实现对Kubernetes多集群的管理。Step S32: Send the feedback information to the main management cluster, so that the main management cluster can realize the management of Kubernetes multi-clusters.
本实施例中,将回传信息发送至主管理集群,并且基于用户需求,选择相应的集群信息直接保存至mysql数据库中,而并不保存在Kubernetes集群的各自的ETCD中,避免由于各个集群的数据存储方式不同而导致的信息不一致,进而导致多集群管理出现问题。In this embodiment, the feedback information is sent to the main management cluster, and based on user requirements, the corresponding cluster information is selected and stored directly in the mysql database instead of in the respective ETCD of the Kubernetes cluster, so as to avoid the Inconsistencies in information caused by different data storage methods lead to problems in multi-cluster management.
可见,本申请公开了一种Kubernetes多集群管理方法,应用于主管理集群,包括:为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;接收所述回传信息,以实现对Kubernetes多集群的管理。由此可见,本申请通过部署预设代理程序来管理Kubernetes集群。主管理集群直接下发指令给预设代理程序。利用预设代理程序直接访问K8S Apiserver,进而利用API操控各个集群,收集数据或控制集群,以实现对Kubernetes多集群的管理。It can be seen that the present application discloses a Kubernetes multi-cluster management method, which is applied to the main management cluster, including: deploying preset agent programs for other Kubernetes clusters outside the main management cluster to obtain the slave management cluster; sending management instructions to all Describe from the management cluster, so that the preset agent calls the corresponding test case to collect the cluster information from the management cluster, and generate corresponding return information; receive the return information, to realize the management of Kubernetes multi-cluster . It can be seen that the present application manages the Kubernetes cluster by deploying a preset agent program. The main management cluster directly issues instructions to the preset agent program. Use the preset agent program to directly access the K8S Apiserver, and then use the API to control each cluster, collect data or control the cluster, so as to realize the management of Kubernetes multi-cluster.
参照图6所示,本发明实施例公开了一种具体的Kubernetes多集群管理装置,应用于主管理集群,包括:Referring to Figure 6, the embodiment of the present invention discloses a specific Kubernetes multi-cluster management device, which is applied to the main management cluster, including:
程序部署模块11,用于为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;The program deployment module 11 is used for deploying preset agent programs for other Kubernetes clusters outside the main management cluster, so as to obtain the slave management cluster;
信息收集模块12,用于发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;An information collection module 12, configured to send a management instruction to the slave management cluster, so that the preset agent program invokes a corresponding test case to collect the cluster information of the slave management cluster, and generate corresponding return information;
信息接收模块13,用于接收所述回传信息,以实现对Kubernetes多集群的管理。The information receiving module 13 is configured to receive the feedback information, so as to realize the management of Kubernetes multi-clusters.
可见,本申请公开了一种Kubernetes多集群管理方法,应用于主管理集群,包括:为所述主管理集群外的其他Kubernetes集群部署预设代理程序,以得到从管理集群;发送管理指令至所述从管理集群,以便所述预设代理程序调用相应的测试用例收集所述从管理集群的集群信息,并产生对应的回传信息;接收所述回传信息,以实现对Kubernetes多集群的管理。由此可见,本申请通过部署预设代理程序来管理Kubernetes集群。主管理集群直接下发指令给预设代理程序。利用预设代理程序直接访问K8S Apiserver,进而利用API操控各个集群,收集数据或控制集群,以实现对Kubernetes多集群的管理。It can be seen that the present application discloses a Kubernetes multi-cluster management method, which is applied to the main management cluster, including: deploying preset agent programs for other Kubernetes clusters outside the main management cluster to obtain the slave management cluster; sending management instructions to all Describe from the management cluster, so that the preset agent calls the corresponding test case to collect the cluster information from the management cluster, and generate corresponding return information; receive the return information, to realize the management of Kubernetes multi-cluster . It can be seen that the present application manages the Kubernetes cluster by deploying a preset agent program. The main management cluster directly issues instructions to the preset agent program. Use the preset agent program to directly access the K8S Apiserver, and then use the API to control each cluster, collect data or control the cluster, so as to realize the management of Kubernetes multi-cluster.
在一些具体实施方式中,所述程序部署模块11,具体可以包括:In some specific implementation manners, the program deployment module 11 may specifically include:
集群部署子模块,用于对Kubernetes集群进行部署预设master程序,以得到主管理集群。The cluster deployment sub-module is used to deploy the preset master program to the Kubernetes cluster to obtain the master management cluster.
在一些具体实施方式中,所述集群部署子模块,具体可以包括:In some specific implementation manners, the cluster deployment submodule may specifically include:
信息修改单元,用于对所述Kubernetes集群的配置信息进行修改,并通过yaml文件部署所述预设master程序,以得到所述主管理集群。An information modification unit, configured to modify the configuration information of the Kubernetes cluster, and deploy the preset master program through a yaml file to obtain the master management cluster.
在一些具体实施方式中,所述程序部署模块11,具体可以包括:In some specific implementation manners, the program deployment module 11 may specifically include:
协议封装单元,用于对所述预设代理程序进行通信协议封装。A protocol encapsulation unit, configured to perform communication protocol encapsulation on the preset agent program.
在一些具体实施方式中,所述信息接收模块13,具体可以包括:In some specific implementation manners, the information receiving module 13 may specifically include:
信息接收单元,用于预先通过图形化界面添加所述从管理集群的集群信息;通过预设程序接口输入集群的kubeconfig,以便显示对应的回传信息实现对Kubernetes多集群的管理。The information receiving unit is used to pre-add the cluster information of the slave management cluster through a graphical interface; input the kubeconfig of the cluster through a preset program interface, so as to display corresponding feedback information to realize the management of Kubernetes multi-clusters.
在一些具体实施方式中,所述信息接收模块13,具体可以包括:In some specific implementation manners, the information receiving module 13 may specifically include:
信息保存单元,用于基于用户需求将所述回传信息中的目标信息保存至本地数据库中。The information saving unit is configured to save the target information in the returned information into a local database based on user requirements.
进一步的,本申请实施例还公开了一种电子设备,图7是根据一示例性实施例示出的电子设备20结构图,图中的内容不能认为是对本申请的使用范围的任何限制。Further, the embodiment of the present application also discloses an electronic device. FIG. 7 is a structural diagram of an
图7为本申请实施例提供的一种电子设备20的结构示意图。该电子设备20,具体可以包括:至少一个处理器21、至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26。其中,所述存储器22用于存储计算机程序,所述计算机程序由所述处理器21加载并执行,以实现前述任一实施例公开的Kubernetes多集群管理方法中的相关步骤。另外,本实施例中的电子设备20具体可以为电子计算机。FIG. 7 is a schematic structural diagram of an
本实施例中,电源23用于为电子设备20上的各硬件设备提供工作电压;通信接口24能够为电子设备20创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口25,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the
其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用DSP(DigitalSignalProcessing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(CentralProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括AI(ArtificialIntelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array). Processor 21 may also include a main processor and a coprocessor, the main processor is a processor for processing data in a wake-up state, also called CPU (Central Processing Unit, central processing unit); the coprocessor is used for A low-power processor that processes data during standby. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.
另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源可以包括操作系统221、计算机程序222等,存储方式可以是短暂存储或者永久存储。In addition, the memory 22, as a resource storage carrier, can be a read-only memory, random access memory, magnetic disk or optical disk, etc., and the resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage. .
其中,操作系统221用于管理与控制电子设备20上的各硬件设备以及计算机程序222,以实现处理器21对存储器22中海量数据223的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序222除了包括能够用于完成前述任一实施例公开的由电子设备20执行的Kubernetes多集群管理方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。数据223除了可以包括电子设备接收到的由外部设备传输进来的数据,也可以包括由自身输入输出接口25采集到的数据等。Wherein, the operating system 221 is used to manage and control each hardware device and computer program 222 on the
进一步的,本申请还公开了一种计算机可读存储介质,用于存储计算机程序;其中,所述计算机程序被处理器执行时实现前述公开的Kubernetes多集群管理方法。关于该方法的具体步骤可以参考前述实施例中公开的相应内容,在此不再进行赘述。Further, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed Kubernetes multi-cluster management method is implemented. Regarding the specific steps of the method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application. The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上对本发明所提供的一种Kubernetes多集群管理方法、装置、设备、存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A kind of Kubernetes multi-cluster management method, device, equipment, and storage medium provided by the present invention have been introduced in detail above. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211027099.5A CN115396441B (en) | 2022-08-25 | 2022-08-25 | A Kubernetes multi-cluster management method, device, equipment, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211027099.5A CN115396441B (en) | 2022-08-25 | 2022-08-25 | A Kubernetes multi-cluster management method, device, equipment, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115396441A true CN115396441A (en) | 2022-11-25 |
CN115396441B CN115396441B (en) | 2025-02-28 |
Family
ID=84123415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211027099.5A Active CN115396441B (en) | 2022-08-25 | 2022-08-25 | A Kubernetes multi-cluster management method, device, equipment, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115396441B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116088908A (en) * | 2023-02-28 | 2023-05-09 | 上海中通吉网络技术有限公司 | Method and equipment for automatically updating resource object for K8S multi-cluster |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111796858A (en) * | 2020-07-07 | 2020-10-20 | 金蝶软件(中国)有限公司 | Method, system and related equipment for access detection of application programs in Kubernetes cluster |
CN111897623A (en) * | 2020-06-11 | 2020-11-06 | 新浪网技术(中国)有限公司 | Cluster management method, device, equipment and storage medium |
CN113220432A (en) * | 2021-05-08 | 2021-08-06 | 中国联合网络通信集团有限公司 | Multi-cloud interconnection method, device, equipment, storage medium and product |
US20210318914A1 (en) * | 2020-04-14 | 2021-10-14 | Vmware, Inc. | Communications framework for multi-cluster management systems |
CN113839814A (en) * | 2021-09-22 | 2021-12-24 | 银河麒麟软件(长沙)有限公司 | Decentralized Kubernetes cluster federal implementation method and system |
CN113923116A (en) * | 2021-10-28 | 2022-01-11 | 西安热工研究院有限公司 | A method for managing multiple WAN clusters based on one platform |
US20220019519A1 (en) * | 2020-07-17 | 2022-01-20 | Vmware, Inc. | Conservation of network addresses for testing in a virtualized computing system |
CN114443059A (en) * | 2020-10-30 | 2022-05-06 | 中国联合网络通信集团有限公司 | Deployment method, device and equipment of Kubernetes cluster |
CN114615268A (en) * | 2022-03-28 | 2022-06-10 | 阿里巴巴(中国)有限公司 | Service network, monitoring node, container node and equipment based on Kubernetes cluster |
-
2022
- 2022-08-25 CN CN202211027099.5A patent/CN115396441B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210318914A1 (en) * | 2020-04-14 | 2021-10-14 | Vmware, Inc. | Communications framework for multi-cluster management systems |
CN111897623A (en) * | 2020-06-11 | 2020-11-06 | 新浪网技术(中国)有限公司 | Cluster management method, device, equipment and storage medium |
CN111796858A (en) * | 2020-07-07 | 2020-10-20 | 金蝶软件(中国)有限公司 | Method, system and related equipment for access detection of application programs in Kubernetes cluster |
US20220019519A1 (en) * | 2020-07-17 | 2022-01-20 | Vmware, Inc. | Conservation of network addresses for testing in a virtualized computing system |
CN114443059A (en) * | 2020-10-30 | 2022-05-06 | 中国联合网络通信集团有限公司 | Deployment method, device and equipment of Kubernetes cluster |
CN113220432A (en) * | 2021-05-08 | 2021-08-06 | 中国联合网络通信集团有限公司 | Multi-cloud interconnection method, device, equipment, storage medium and product |
CN113839814A (en) * | 2021-09-22 | 2021-12-24 | 银河麒麟软件(长沙)有限公司 | Decentralized Kubernetes cluster federal implementation method and system |
CN113923116A (en) * | 2021-10-28 | 2022-01-11 | 西安热工研究院有限公司 | A method for managing multiple WAN clusters based on one platform |
CN114615268A (en) * | 2022-03-28 | 2022-06-10 | 阿里巴巴(中国)有限公司 | Service network, monitoring node, container node and equipment based on Kubernetes cluster |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116088908A (en) * | 2023-02-28 | 2023-05-09 | 上海中通吉网络技术有限公司 | Method and equipment for automatically updating resource object for K8S multi-cluster |
Also Published As
Publication number | Publication date |
---|---|
CN115396441B (en) | 2025-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2024077885A1 (en) | Management method, apparatus and device for container cluster, and non-volatile readable storage medium | |
CN107168746B (en) | Method and device for generating microservices | |
CN114205230B (en) | Configuration method, system, medium and electronic equipment of cloud primary network element | |
CN106506244A (en) | A Unified Governance Appliance for Hybrid Clouds | |
CN110362318B (en) | Application deployment method, device, equipment and storage medium | |
CN110502217B (en) | A Design Method of Robot Cloud Platform Based on ROS | |
CN110347383A (en) | The front end development approach and device of cross-platform desktop application | |
JP7674487B2 (en) | Management method and apparatus for a container cluster - Patents.com | |
US20200351155A1 (en) | Base station configuration method and apparatus | |
CN112948110B (en) | Topology and arrangement system and method of cloud application, storage medium and electronic equipment | |
CN106201466B (en) | Heat-based template management method | |
EP4155942A2 (en) | Method and apparatus for load testing, and corresponding storage medium | |
CN109739666A (en) | Striding course call method, device, equipment and the storage medium of singleton method | |
CN112764729A (en) | Application software development method and device, computer equipment and readable storage medium | |
CN115373731A (en) | A public code resource sharing method, device, equipment, and storage medium | |
CN115396441A (en) | A kind of Kubernetes multi-cluster management method, device, equipment, storage medium | |
CN115480910A (en) | Multi-cluster resource management method and device and electronic equipment | |
CN114579250B (en) | Method, device and storage medium for constructing virtual cluster | |
CN110764864A (en) | Terraform-based visual resource arrangement method | |
CN113656001A (en) | Platform component development method, apparatus, computer equipment and storage medium | |
CN117579480B (en) | Cloud distributed resource data model expansion and labeling method and system | |
CN117608762A (en) | Container cloud platform deployment method and device, electronic equipment and storage medium | |
CN117472509A (en) | Non-containerized application management method based on Kubernetes cluster equipment | |
CN117201316A (en) | Distributed control system cluster deployment method, system, equipment and media | |
KR102501542B1 (en) | Method and apparatus for blockchain system startup, device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |