CN115904632A - Method, system, equipment and storage medium for realizing unified management of kubernets clusters - Google Patents

Method, system, equipment and storage medium for realizing unified management of kubernets clusters Download PDF

Info

Publication number
CN115904632A
CN115904632A CN202211695131.7A CN202211695131A CN115904632A CN 115904632 A CN115904632 A CN 115904632A CN 202211695131 A CN202211695131 A CN 202211695131A CN 115904632 A CN115904632 A CN 115904632A
Authority
CN
China
Prior art keywords
service
cluster
clusters
management
area
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.)
Pending
Application number
CN202211695131.7A
Other languages
Chinese (zh)
Inventor
张志伟
罗慰
邹国栋
吕桂铭
陈国锋
林财龙
喻凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Eshore Technology Co Ltd
Original Assignee
Guangdong Eshore Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Eshore Technology Co Ltd filed Critical Guangdong Eshore Technology Co Ltd
Priority to CN202211695131.7A priority Critical patent/CN115904632A/en
Publication of CN115904632A publication Critical patent/CN115904632A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for realizing unified management of kubernets clusters, belongs to the technical field of cloud protogenesis, and solves the technical problem that the existing cluster management mode can only manage a single-architecture cluster of a small-scale cluster, wherein the method comprises the following steps: multifunctional clusters are automatically built and managed through kubspray, and user clusters are discovered and managed through deploying coredns service, harbor-operator service, kplat-manager service and cert-manager service. The invention also discloses a system, equipment and a storage medium for realizing unified management of the kubernets cluster. The invention automatically constructs and manages multifunctional clusters through kubspray, discovers and manages user clusters by deploying coredns service, harbor-operator service, kplat-manager service and cert-manager service, can ensure the reliability, timeliness and high availability of the clusters after the clusters are created, is suitable for simultaneously managing single or multiple clusters of the same architecture, and can realize single or multiple clusters of different domestic systems.

Description

Method, system, equipment and storage medium for realizing unified management of kubernets clusters
Technical Field
The invention relates to the technical field of cloud protogenesis, in particular to a method, a system, equipment and a storage medium for realizing unified management of kubernets.
Background
At present, the management cluster modes in the market are divided into two modes, one mode is to deploy the management cluster service directly by using docker (or binary), the other mode is to deploy the management cluster service by manually (or using an automation tool) deploying a kubernets cluster, and the management cluster is directly performed by accessing a kubernets native api. For some methods in the market, only a single architecture cluster of a small-scale cluster can be managed, and when too many clusters are managed or a cluster of multiple architecture systems needs to be managed, the method is useless.
Disclosure of Invention
The technical problem to be solved by the present invention is to solve the above-mentioned deficiencies in the prior art, and an object of the present invention is to provide a method for implementing unified management of kubernets.
The invention also aims to provide a system for realizing unified management of the kubernets cluster.
The invention also provides a computer device.
The fourth object of the present invention is to provide a computer-readable storage medium.
In order to achieve the first purpose, the invention provides a method for achieving unified management of kubernets, which automatically constructs and manages a multifunctional cluster through kuberspray, and discovers and manages a user cluster by deploying a coredns service, a harbor-operator service, a kplat-manager service and a cert-manager service.
As a further improvement, the method specifically comprises the following steps:
s1, deploying customized kubspray mirror image service through docker-compound;
s2, deploying a customized preset area cluster through kubspray, wherein the preset area cluster comprises coredns service, harbor-operator service, kplat-manager service, nginx service and cert-manager service;
s3, storing the related information of the cluster into a custom splio database and writing the domain name of the cluster into a coredns service through the kplat-manager;
s4, deploying the user area by using the spulo related cluster information through kubspray, and writing the cluster information back to a spulo database;
step S5.Kplat-manager manages a plurality of different user clusters by coredns.
Further, the virtual machine mirror image manufacturing method comprises virtual machine mirror image manufacturing of the preset area, wherein the virtual machine mirror image manufacturing of the preset area comprises all required software packages, container mirror images and environment configurations of the preset area, the management area and the user area, and the preset area, the management area and the user area can be deployed quickly and offline.
Further, still include:
the system comprises a preset area script, a preset area script and a preset area script, wherein the preset area script is used for adapting various components required by management user clusters with different architectures, and the components comprise cluster management self-service and nginx-ingress service;
and the user area script is used for adapting to components required by the use and maintenance of user clusters with different architectures, and comprises a prometheus service, a csi service, an efk service and an alert manager service.
Further, the management cluster is deployed by using the well-adapted kubspray and the docker-compound, and the management cluster performs one-key deployment and management operation on the user area cluster.
Further, the cluster management self-service deployed in the preset area is used for deploying and managing the user area cluster.
Further, based on different localization architectures, kubes may be compiled into container images of corresponding architectures;
the kubes pray container mirror image can pre-download tools required by python, ansable and docker running scripts to form an open-box mirror image, and mount scripts and installation packages adapting to a domestic architecture and an operating system, so that operation and maintenance personnel can rapidly deploy kubberenets clusters on site and off line at a user.
In order to achieve the second objective, the present invention provides a system for implementing unified management of kubernets, including:
the deployment module is used for deploying the customized kubspray mirror service through the docker-composition and deploying the customized preset area cluster through the kubspray, wherein the preset area cluster comprises a coredns service, a harbor-operator service, a kplat-manager service, a nginx service and a cert-manager service;
the recording module is used for storing the related information of the cluster into a custom splio database through the kplat-manager and writing the domain name of the cluster into a coredns service; the system is used for the kubspray deploying the user area through the spilo related cluster information and writing the cluster information back to the spilo database;
and the management module is used for managing a plurality of different user clusters through coredns by the kplat-manager.
In order to achieve the third objective, the present invention provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the method for implementing unified management of kubernets cluster.
In order to achieve the fourth object, the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for implementing unified management of kubernets.
Advantageous effects
Compared with the prior art, the invention has the advantages that:
the invention automatically constructs and manages multifunctional clusters through kubspray, discovers and manages user clusters by deploying coredns service, harbor-operator service, kplat-manager service and cert-manager service, can ensure the reliability, timeliness and high availability of the clusters after being created, is suitable for simultaneously managing single or multiple clusters with the same architecture, and can realize single or multiple clusters of different domestic systems.
Drawings
Fig. 1 is an architecture diagram of the present invention.
Detailed Description
The invention will be further described with reference to specific embodiments shown in the drawings.
Referring to fig. 1, a method for implementing unified management of kubernets cluster, which automatically constructs and manages a multifunctional cluster through kuberspray, and discovers and manages a user cluster by deploying a coredns service, a halogen-operator service, a kplat-manager service, and a cert-manager service. The method specifically comprises the following steps:
s1, deploying customized kubspray mirror image service through docker-composition;
s2, deploying a customized preset area cluster through kubspray, wherein the preset area cluster comprises coredns service, harbor-operator service, kplat-manager service, nginx service and cert-manager service;
s3, the user stores the related information of the cluster into a custom splio database through the kplat-manager and writes the domain name of the cluster into a coredns service;
s4, deploying the user area by using the spulo related cluster information through kubspray, and writing the cluster information back to a spulo database;
step S5.Kplat-manager manages a plurality of different user clusters by coredns.
Thus, the purpose of all the user kubernets cluster is managed through a set of customized kubernets cluster, and all the services: kubspray, coredns, harbor-operator, kplat-manager are highly available.
The method comprises the step of making a virtual machine mirror image of the preset area, wherein the virtual machine mirror image of the preset area comprises all required software packages, container mirror images and environment configurations of the preset area, a management area and a user area, and the preset area, the management area and the user area can be quickly deployed in an off-line mode.
The method also comprises the following steps:
the preset area script is used for adapting various components required by management user clusters with different architectures, including but not limited to cluster management self-service and nginx-ingress service;
and the user area script is used for adapting to the use and maintenance of user clusters with different architectures, and comprises but not limited to a prometheus service, a csi service, an efk service and an alert manager service.
And deploying the management cluster by using the well-adapted kubspray and docker-compound, and performing one-key deployment and management operation on the user area cluster by using the management cluster.
And deploying and managing the user area cluster by using the cluster management self-service deployed in the preset area.
Based on different localization architectures, kubspray can be compiled into container images of corresponding architectures; the kubes container mirror image can download tools required by running scripts of python, ansible and docker in advance to form an open-box and ready-to-use mirror image, and mount scripts and installation packages adapted to a domestic architecture and an operating system, so that operation and maintenance personnel can rapidly deploy kubernets clusters on site and off line at a user. The method has the advantages that the method can shield the difference of different architectures and operating system versions, and avoid operation failure caused by environment difference. Through testing of the fixed and adaptive tool versions, the kubernets cluster can be effectively and stably deployed, uncertainty caused by manual configuration is reduced, and deployment efficiency is improved.
A system for implementing a unified management of kubernets cluster, comprising:
the deployment module is used for deploying the customized kubspray mirror service through the docker-composition and deploying the customized preset area cluster through the kubspray, wherein the preset area cluster comprises a coredns service, a harbor-operator service, a kplat-manager service, a nginx service and a cert-manager service;
the recording module is used for storing the related information of the cluster into a custom splio database through the kplat-manager and writing the domain name of the cluster into a coredns service; the system is used for the kubspray deploying the user area through the spilo related cluster information and writing the cluster information back to the spilo database;
and the management module is used for managing a plurality of different user clusters through coredns by the kplat-manager.
A computer device comprises a storage and a processor, wherein the storage stores a computer program, and the processor executes the computer program to realize the method for uniformly managing the kubernets cluster.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method of implementing a unified management of kubernets cluster as described above.
The above is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that several variations and modifications can be made without departing from the structure of the present invention, which will not affect the effect of the implementation of the present invention and the utility of the patent.

Claims (10)

1. A method for realizing unified management of kubernets clusters is characterized in that multifunctional clusters are automatically constructed and managed through kuberspray, and user clusters are discovered and managed through deploying coredns service, harbor-operator service, kplat-manager service and cert-manager service.
2. The method of claim 1, wherein the method for implementing unified management of kubernets cluster specifically comprises the following steps:
s1, deploying customized kubspray mirror image service through docker-composition;
s2, deploying a customized preset area cluster through kubspray, wherein the preset area cluster comprises coredns service, harbor-operator service, kplat-manager service, nginx service and cert-manager service;
s3, storing the related information of the cluster into a custom splio database and writing the domain name of the cluster into a coredns service through the kplat-manager;
s4, deploying the user area by using the spulo related cluster information through kubspray, and writing the cluster information back to a spulo database;
step S5.Kplat-manager manages a plurality of different user clusters by coredns.
3. The method of claim 2, wherein the method comprises creating a virtual machine image of the provisioning area, wherein the virtual machine image of the provisioning area includes all software packages, container images and environment configurations required by the provisioning area, the management area and the user area, and the provisioning area, the management area and the user area can be quickly deployed offline.
4. The method of claim 2, further comprising:
the system comprises a preset area script, a cluster management self-service module and a nginx-ingress service module, wherein the preset area script is used for adapting various components required by management user clusters with different architectures, including cluster management self-service and nginx-ingress service;
and the user area script is used for adapting to components required by the use and maintenance of user clusters with different architectures, and comprises a prometheus service, a csi service, an efk service and an alert manager service.
5. The method of claim 2, wherein the management cluster is deployed using the kubspray and the docker-composition, and the management cluster performs a one-touch deployment and management operation on the user area cluster.
6. The method of claim 4, wherein the cluster management self-service deployed in the pre-configured area is used to deploy and manage the user area cluster.
7. The method of claim 2, wherein kubbespray is compiled into container images of corresponding architectures based on different localization architectures;
the kubes container mirror image can download tools required by running scripts of python, ansible and docker in advance to form an open-box and ready-to-use mirror image, and mount scripts and installation packages adapted to a domestic architecture and an operating system, so that operation and maintenance personnel can rapidly deploy kubernets clusters on site and off line at a user.
8. A system for implementing a unified management of kubernets cluster, comprising:
the deployment module is used for deploying the customized kubspray mirror service through the docker-composition and deploying the customized preset area cluster through the kubspray, wherein the preset area cluster comprises a coredns service, a harbor-operator service, a kplat-manager service, a nginx service and a cert-manager service;
the recording module is used for storing the related information of the cluster into a custom splio database through the kplat-manager and writing the domain name of the cluster into a coredns service; the user area is deployed by kubes through the related cluster information of the spilo, and the cluster information is written back to the spilo database;
and the management module is used for managing a plurality of different user clusters through coredns by the kplat-manager.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements a method of implementing a unified management of kubernets cluster as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of carrying out a unified management of kubernets clusters according to any one of claims 1 to 7.
CN202211695131.7A 2022-12-28 2022-12-28 Method, system, equipment and storage medium for realizing unified management of kubernets clusters Pending CN115904632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211695131.7A CN115904632A (en) 2022-12-28 2022-12-28 Method, system, equipment and storage medium for realizing unified management of kubernets clusters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211695131.7A CN115904632A (en) 2022-12-28 2022-12-28 Method, system, equipment and storage medium for realizing unified management of kubernets clusters

Publications (1)

Publication Number Publication Date
CN115904632A true CN115904632A (en) 2023-04-04

Family

ID=86482265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211695131.7A Pending CN115904632A (en) 2022-12-28 2022-12-28 Method, system, equipment and storage medium for realizing unified management of kubernets clusters

Country Status (1)

Country Link
CN (1) CN115904632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088921A (en) * 2023-04-07 2023-05-09 深圳市联合信息技术有限公司 Automatic operation and maintenance management system and method oriented to domestic operation system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116088921A (en) * 2023-04-07 2023-05-09 深圳市联合信息技术有限公司 Automatic operation and maintenance management system and method oriented to domestic operation system
CN116088921B (en) * 2023-04-07 2023-06-27 深圳市联合信息技术有限公司 Automatic operation and maintenance management system and method oriented to domestic operation system

Similar Documents

Publication Publication Date Title
CN108763090A (en) Test environment dispositions method, device, computer equipment and storage medium
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
US8751868B2 (en) Control server and method for switching running of test programs stored in multiple storage mediums of test server
CN104077199A (en) Shared disk based high availability cluster isolation method and system
CN102983996A (en) Dynamic allocation method and system for high-availability cluster resource management
CN104933174A (en) Method for solving model adaption problem of mobile phone APP (Application) on the basis of automatic traversal of control
CN108880898A (en) Active and standby containment system switching method and device
CN111367618A (en) Code management method, system, terminal and medium based on docker
CN115904632A (en) Method, system, equipment and storage medium for realizing unified management of kubernets clusters
CN112099919A (en) Application service visualization rapid deployment method based on cloud computing API
CN111459631A (en) Automatic batch processing method and system for server
CN111193610B (en) Intelligent monitoring data system and method based on Internet of things
CN111831362A (en) Method for automatic discovery, classification, deployment and management of K8s environment monitoring
CN112559138B (en) Resource scheduling system and method
CN111522630B (en) Method and system for executing planned tasks based on batch dispatching center
CN113658351A (en) Product production method and device, electronic equipment and storage medium
CN113419813A (en) Method and device for deploying bare engine management service based on container platform
CN116010111B (en) Cross-cluster resource scheduling method, system and terminal equipment
CN111045697A (en) Automatic rapid deployment method and system
CN113746676B (en) Network card management method, device, equipment, medium and product based on container cluster
CN109582609A (en) A kind of apparatus control method, system and associated component
CN112328403B (en) SparkContext configuration method, sparkContext configuration device and server
CN110830275B (en) Transponder configuration method, device, equipment and readable storage medium
CN110099208B (en) Method and device for cross-level and cross-domain upgrading of camera in video monitoring system
CN109710605B (en) Automatic equipment information acquisition device and method

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