CN110532058B - Management method, device and equipment of container cluster service and readable storage medium - Google Patents

Management method, device and equipment of container cluster service and readable storage medium Download PDF

Info

Publication number
CN110532058B
CN110532058B CN201910683110.5A CN201910683110A CN110532058B CN 110532058 B CN110532058 B CN 110532058B CN 201910683110 A CN201910683110 A CN 201910683110A CN 110532058 B CN110532058 B CN 110532058B
Authority
CN
China
Prior art keywords
cluster
metadata
information
command
created
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.)
Active
Application number
CN201910683110.5A
Other languages
Chinese (zh)
Other versions
CN110532058A (en
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.)
Zhengzhou Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN201910683110.5A priority Critical patent/CN110532058B/en
Publication of CN110532058A publication Critical patent/CN110532058A/en
Application granted granted Critical
Publication of CN110532058B publication Critical patent/CN110532058B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/907Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a management method, a device, equipment and a readable storage medium for container cluster service, which utilize the characteristic that a k8s cluster supports custom annotation, write metadata information required by a cloud management platform into metadata of a k8s object, achieve the effect that each k8s object can be self-described, and then call an interface of a first k8s cluster corresponding to a k8s object creation command to create a k8s object to be created. When the k8s object needs to be called, the cloud management platform only needs to actually acquire the k8s object in the k8s cluster through the k8s cluster interface, and the information of the k8s object is analyzed from the metadata of the k8s object, so that the metadata information needed by the cloud management platform can be obtained, a large amount of metadata does not need to be maintained, the complexity of the cloud management platform is reduced, the operation efficiency is improved, and the problem of inconsistent metadata between the cloud management platform and the k8s cluster is effectively solved.

Description

Management method, device and equipment of container cluster service and readable storage medium
Technical Field
The present invention relates to the field of containerization technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for managing a container cluster service.
Background
k8s (kubernets) is an open-source container application cluster management service, and on the basis of the Docker technology, a series of complete functions such as deployment and operation, resource scheduling, service discovery, dynamic scaling and the like are provided for containerized applications, so that the convenience of large-scale container cluster management is improved. The Cloud Management Platforms (CMP) are an integrated product for managing public Cloud, private Cloud, and hybrid Cloud environments, and the main functional scope thereof includes integration of various infrastructures and resources, cross-platform arrangement, self-service interface displayed in a service directory manner, resource access Management and flow configuration, resource statistics and cost Management, and integration and docking with an external existing enterprise Management system.
In the cloud computing era, a large number of heterogeneous cloud resources, such as a k8s cluster, are uniformly managed by accessing a cloud management platform, so that functions of fusion access, intelligent monitoring, automatic operation and maintenance, uniform operation and the like of various multi-source heterogeneous cloud resources are realized, and some additional information outside the cloud platform, such as department information, grouping information and the like of the resources, is added to perform personalized flow operations such as application approval and the like.
In order to achieve a management target, a unified metadata base is established in a current cloud management platform, metadata information of a plurality of k8s clusters is formatted and recorded in the metadata base, when a k8s object in a k8s cluster is operated, information of a k8s object is firstly inquired in the metadata base, and then the information is used for calling an interface of a specific k8s cluster for nano-management to operate. During operation, the metadata of the k8s object may change, and accordingly the change is synchronized in the metadata base of the cloud management platform by a timing synchronization mechanism.
However, under the above synchronization mechanism, a phenomenon that the cloud management platform is inconsistent with the metadata in the subordinate k8s cluster often occurs. The specific reasons for this may be as follows:
1. a user bypasses a cloud management platform to directly operate a k8s object in a k8s cluster, and the cloud management platform cannot know that the state of the k8s object is changed, so that metadata of the k8s object and the metadata of the k8s object are inconsistent; 2. for network reasons, the execution of the instruction issued by the cloud management platform in the k8s cluster fails, and the result is not transmitted back to the cloud management platform, so that the metadata of the instruction and the metadata of the cloud management platform are inconsistent; 3. due to the fact that the k8s cluster automatically triggers scheduling, the state of a k8s object in the k8s cluster changes, and a cloud management platform cannot know the change in time, so that metadata of the k8s object and the metadata of the cloud management platform are inconsistent; 4. due to the fact that the metadata format is changed due to the fact that the k8s cluster version is upgraded, the database structure of the cloud management platform cannot be updated synchronously in time.
Due to the reasons mentioned above, the metadata of the cloud management platform is inconsistent with the metadata of the k8s cluster because the metadata is synchronized with the cloud management platform and the k8s cluster at a certain time point in time. However, in some cases, such as when a user bypasses the cloud management platform to create a k8s object directly in the k8s cluster without uploading to the cloud platform, the synchronization mechanism cannot bring the cloud management platform into full agreement with the metadata in the k8s cluster at any time.
Therefore, a synchronization mechanism in the prior art is not only complex in logic, but also cannot avoid the problem of inconsistent metadata between the cloud management platform and the k8s cluster, so that the cloud management platform cannot effectively manage the subordinate k8s cluster, and the efficient and stable operation of the system is not facilitated.
How to avoid the problem of metadata inconsistency between the cloud management platform and the k8s cluster and strengthen the management of the cloud management platform on the subordinate k8s cluster is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a management method, a device, equipment and a readable storage medium for container cluster services, which can avoid the problem of inconsistent metadata between a cloud management platform and a k8s cluster and strengthen the management of the cloud management platform on a subordinate k8s cluster.
In order to solve the above technical problem, the present invention provides a management method for a container cluster service, which is based on a cloud management platform and includes:
when a k8s object creating command is received, writing metadata information of a k8s object to be created and the cloud management platform into metadata of the k8s object to be created;
calling an interface of a first k8s cluster corresponding to the k8s object creation command to create the k8s object to be created.
Optionally, the invoking an interface of a first k8s cluster corresponding to the k8s object creating command to create the k8s object to be created includes:
generating a k8s object creation message based on the format of the interface of the first k8s cluster according to the information of the k8s object to be created;
sending the k8s object creation message to the first k8s cluster, so that the first k8s cluster creates the k8s object to be created and attaches the metadata to object information corresponding to the k8s object to be created;
wherein the information of the k8s object to be created comprises the metadata information.
Optionally, the method further includes:
when a k8s object query command is received, generating a k8s object query message according to the k8s object query command and based on the format of the interface of the second k8s cluster corresponding to the k8s object query command;
sending the k8s object query message to the second k8s cluster, and receiving an object information list returned by the second k8s cluster;
determining a k8s object to be queried based on the object information list;
and outputting the k8s object to be queried.
Optionally, the determining the k8s object to be queried based on the object information list specifically includes:
analyzing the object information list to obtain metadata information of a k8s object in the object information list;
extracting metadata information associated with the cloud management platform from the metadata information of the k8s object in the object information list;
and screening the extracted metadata information according to the k8s object query command to obtain the k8s object to be queried.
Optionally, the method further includes:
when a k8s object modification command is received, determining information of a k8s object to be modified according to the k8s object modification command;
generating a k8s object query command for the k8s object to be modified according to the information of the k8s object to be modified, and performing the step of generating a k8s object query message according to the k8s object query command and based on the format of the interface of the second k8s cluster corresponding to the k8s object query command until the k8s object to be modified is determined;
modifying metadata of the k8s object to be modified according to the k8s object modification command;
and calling an interface of the k8s cluster in which the k8s object to be modified is located to modify the k8s object to be modified.
Optionally, the method further includes:
when a k8s object deletion command is received, determining information of a k8s object to be deleted according to the k8s object deletion command;
generating a k8s object query command for the k8s object to be deleted according to the information of the k8s object to be deleted, and performing a step of generating a k8s object query message according to the k8s object query command and based on a format of an interface of a second k8s cluster corresponding to the k8s object query command until the k8s object to be deleted is determined;
and calling the interface of the k8s cluster in which the k8s object to be deleted is located to delete the k8s object to be deleted.
Optionally, the metadata information specifically includes:
the user ID of the object, the project ID of the object, the organization ID of the object, the object state and the object remark.
In order to solve the above technical problem, the present invention further provides a management apparatus for a container cluster service, including:
the metadata generation unit is used for writing metadata information of the k8s object to be created and the cloud management platform into metadata of the k8s object to be created when a k8s object creation command is received;
and the interface adapting unit is used for calling the interface of the first k8s cluster corresponding to the k8s object creating command to create the k8s object to be created.
In order to solve the above technical problem, the present invention further provides a management device for a container cluster service, including:
a memory for storing instructions comprising the steps of any one of the above methods for managing a container cluster service;
a processor to execute the instructions.
To solve the above technical problem, the present invention further provides a readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the management method for a container cluster service as described in any one of the above.
According to the management method of the container cluster service, provided by the invention, by utilizing the characteristic that a k8s cluster supports self-defined annotation and combining the ideas of control reversal and dependence injection in the idea of object orientation, metadata information required by a cloud management platform is written into metadata of a k8s object, so that the effect that each k8s object can be self-described is achieved, and then an interface of a first k8s cluster corresponding to a k8s object creation command is called to create a k8s object to be created. When the k8s object needs to be called, the cloud management platform only needs to actually acquire the k8s object in the k8s cluster through the k8s cluster interface, and the information of the k8s object is analyzed from the metadata of the k8s object, so that the metadata information required by the cloud management platform can be obtained, a large amount of metadata does not need to be maintained, the complexity of the cloud management platform is reduced, the operation efficiency is improved, the problem that the metadata between the cloud management platform and the k8s cluster are inconsistent is effectively solved, the management of the subordinate k8s cluster by the cloud management platform is enhanced, and the efficient and stable operation of the system is facilitated. The invention also provides a management device, equipment and a readable storage medium for the container cluster service, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for managing a container cluster service according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an embodiment of a specific implementation manner of step S102 in fig. 1 according to an embodiment of the present invention;
fig. 3 is a flowchart of another management method for a container cluster service according to an embodiment of the present invention;
fig. 4 is a flowchart of a specific implementation manner of step S303 in fig. 3 according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a management apparatus for a container cluster service according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a management device for a container cluster service according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a management method, a device, equipment and a readable storage medium for container cluster services, which can avoid the problem of inconsistent metadata between a cloud management platform and a k8s cluster and strengthen the management of the cloud management platform on a subordinate k8s cluster.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for managing a container cluster service according to an embodiment of the present invention; fig. 2 is a flowchart of an embodiment of the step S102 in fig. 1 according to the present invention.
As shown in fig. 1, based on a cloud management platform, a management method for a container cluster service provided by the embodiment of the present invention includes:
s101: when a k8s object creating command is received, metadata information of the k8s object to be created and the cloud management platform is written into metadata of the k8s object to be created.
In specific implementation, by using the characteristic that a k8s cluster supports custom annotation and combining the ideas of control reversal and dependence injection in an object-oriented idea, metadata information required by a cloud management platform is written into metadata of a k8s object, so that the effect that each k8s object can be self-described is achieved. When the cloud management platform receives the k8s object creation command, the metadata information (such as the ID of the organization) required by the cloud management platform is written into the metadata of the k8s object, and the following statements are referred to in the format:
Figure BDA0002145457650000061
the metadata information associated with the cloud management platform may specifically include:
the cloud management platform such as the user ID to which the object belongs, the item ID to which the object belongs, the organization ID to which the object belongs, the object state, the object remark and the like is added with attributes required by the self management function.
S102: the interface of the first k8s cluster corresponding to the k8s object create command is invoked to create the k8s object to be created.
In a specific implementation, as shown in fig. 2, step S102 may specifically include:
s201: and generating a k8s object creation message based on the format of the interface of the first k8s cluster according to the information of the k8s object to be created.
Wherein the information of the k8s object to be created comprises metadata information associated with the cloud management platform.
In order to adapt to the interface of the first k8s cluster, a k8s object creation message conforming to the format of the first k8s cluster interface is assembled according to the information of the k8s object to be created.
S202: the k8s object creation message is sent to the first k8s cluster, so that the first k8s cluster creates the k8s object to be created and attaches metadata to the object information corresponding to the k8s object to be created.
The k8s cluster supports custom annotation of the k8s object, while the cloud management platform writes the metadata information of the k8s object metadata to be created as custom annotation of the k8s object to be created, appended by the k8s cluster to the object information structure corresponding to the k8s object to be created.
According to the management method of the container cluster service, provided by the embodiment of the invention, by utilizing the characteristic that a k8s cluster supports self-defined annotation and combining the ideas of control reversal and dependence injection in an object-oriented idea, metadata information required by a cloud management platform is written into metadata of a k8s object, so that the effect that each k8s object can be self-described is achieved, and then an interface of a first k8s cluster corresponding to a k8s object creation command is called to create a k8s object to be created. When the k8s object needs to be called, the cloud management platform only needs to actually acquire the k8s object in the k8s cluster through the k8s cluster interface, and the information of the k8s object is analyzed from the metadata of the k8s object, so that the metadata information required by the cloud management platform can be obtained, a large amount of metadata does not need to be maintained, the complexity of the cloud management platform is reduced, the operation efficiency is improved, the problem that the metadata between the cloud management platform and the k8s cluster are inconsistent is effectively solved, the management of the subordinate k8s cluster by the cloud management platform is enhanced, and the efficient and stable operation of the system is facilitated.
Fig. 3 is a flowchart of another management method for a container cluster service according to an embodiment of the present invention; fig. 4 is a flowchart of a specific implementation manner of step S303 in fig. 3 according to an embodiment of the present invention.
On the basis of the above embodiments, the embodiments of the present invention provide a way to query the k8s object based on a cloud management platform. As shown in fig. 3, the method for managing a container cluster service according to an embodiment of the present invention further includes:
s301: when a k8s object query command is received, a k8s object query message is generated according to the k8s object query command and based on the format of the interface of the second k8s cluster corresponding to the k8s object query command.
The cloud management platform provides a window for filling in query conditions for a user, after the window receives a k8s object query command, the k8s object query command is analyzed to obtain the query conditions, and based on the format of an interface of a second k8s cluster corresponding to the k8s object query command, a k8s object query message is organized according to the part of the query conditions which does not relate to the specific metadata of the cloud management platform and is sent to the corresponding second k8s cluster.
S302: and sending the k8s object query message to a second k8s cluster and receiving an object information list returned by the second k8s cluster.
The second k8s cluster returns a list of information for all objects that meet the query criteria. It should be noted that, since the k8s object is queried across platforms and does not support a more complex query condition, the term "meeting the query condition" herein refers to meeting the query condition that can be identified by the second k8s cluster, for example, the query command in the k8s object query command includes a plurality of query conditions, for example, when k8s objects with preset attribute values in a preset range under a preset organization are searched, the second k8s cluster returns all objects meeting the query condition including k8s objects under the preset organization and k8s objects with preset attribute values in the preset range, and the cloud management platform needs to filter the objects to obtain the k8s object required by the user.
S303: and determining the k8s object to be queried based on the object information list.
S304: and outputting the k8s object to be queried.
And after obtaining the object information list returned by the second k8s cluster, the cloud management platform further analyzes and screens to obtain a k8s object to be queried.
As shown in fig. 4, step S303 specifically includes:
s401: and analyzing the object information list to obtain the metadata information of the k8s object in the object information list.
S402: metadata information associated with the cloud management platform is extracted from the metadata information of the k8s object in the object information list.
S403: and screening the extracted metadata information according to the k8s object query command to obtain a k8s object to be queried.
The cloud management platform analyzes the metadata information in the object information list, extracts the metadata information when the cloud management platform creates the k8s object, designs the condition information of the metadata specific to the cloud management platform according to the query conditions obtained by analyzing the k8s object query command, and screens the information of the k8s object meeting the conditions from the object information list to return to the user.
When a user needs to modify the k8s object, the k8s object to be modified may be queried first based on the query method provided in the above embodiment, and then the metadata of the k8s object to be modified may be modified according to the method of creating the k8s object, which is specifically implemented as follows:
when a k8s object modification command is received, determining information of a k8s object to be modified according to the k8s object modification command;
generating a k8S object query command for the k8S object to be modified according to the information of the k8S object to be modified, and proceeding to step S301 until the k8S object to be modified is determined;
modifying the metadata of the k8s object to be modified according to the k8s object modification command;
and calling the interface of the k8s cluster in which the k8s object to be modified is located to modify the k8s object to be modified.
When a user needs to delete a k8s object, the user may refer to a flow of deleting a k8s object by using an existing cloud management platform, and directly call an interface of a corresponding k8s cluster to delete the k8s object after obtaining information of the k8s object to be deleted, which is implemented in the following specific manner:
when a k8s object deletion command is received, determining information of k8s objects to be deleted according to a k8s object deletion command;
generating a k8S object query command of the k8S object to be deleted according to the information of the k8S object to be deleted, and proceeding to the step S301 until the k8S object to be deleted is determined;
the interface of the k8s cluster calling the object to be deleted k8s deletes the object to be deleted k8 s.
On the basis of the above detailed description of the embodiments corresponding to the management method of the container cluster service, the present invention also discloses a management device of the container cluster service corresponding to the above method.
Fig. 5 is a schematic structural diagram of a management apparatus for a container cluster service according to an embodiment of the present invention.
As shown in fig. 5, a management apparatus for a container cluster service according to an embodiment of the present invention includes:
the metadata generation unit 501 is used for writing metadata information of the k8s object to be created and the cloud management platform into metadata of the k8s object to be created when a k8s object creation command is received;
the interface adaptation unit 502 is configured to invoke an interface of the first k8s cluster corresponding to the k8s object creation command to create a k8s object to be created.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 6 is a schematic structural diagram of a management device for a container cluster service according to an embodiment of the present invention.
As shown in fig. 6, a management apparatus for a container cluster service according to an embodiment of the present invention includes:
a memory 601, configured to store instructions, where the instructions include the steps of the method for managing a container cluster service according to any one of the above embodiments;
a processor 602 configured to execute the instructions.
Since the management device of the container cluster service according to this embodiment can call the computer program stored in the memory by the processor to implement the steps of the management method of the container cluster service according to any one of the embodiments described above, the management device of this container cluster service has the same practical effects as the management method of the container cluster service described above.
In order to better understand the present solution, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the management method for a container cluster service as mentioned in any of the above embodiments are implemented.
The readable storage medium provided in this embodiment may be used to call a computer program stored in the readable storage medium through a processor to implement the steps of the management method for the container cluster service provided in any of the above embodiments, so that the readable storage medium has the same practical effects as the management method for the container cluster service.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, device, and readable storage medium may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or modules, and may be in an electrical, mechanical or other form. Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a function calling device, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, apparatus, device and readable storage medium for managing a container cluster service provided by the present invention are described in detail above. The embodiments are described in a progressive mode in the specification, the emphasis of each embodiment is on the difference from the other embodiments, and the same and similar parts among the embodiments can be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (7)

1. A management method of a container cluster service is characterized by being based on a cloud management platform and comprising the following steps:
when a k8s object creating command is received, writing metadata information of a k8s object to be created and the cloud management platform into metadata of the k8s object to be created so that the k8s object to be created has a self-description function;
calling an interface of a first k8s cluster corresponding to the k8s object creating command to create the k8s object to be created;
when a k8s object query command is received, generating a k8s object query message according to the k8s object query command and based on the format of the interface of the second k8s cluster corresponding to the k8s object query command;
sending the k8s object query message to the second k8s cluster, and receiving an object information list returned by the second k8s cluster;
determining a k8s object to be queried based on the object information list;
outputting the k8s object to be queried;
wherein the metadata information specifically includes:
the method comprises the following steps of (1) identifying a user ID to which an object belongs, an item ID to which the object belongs, an organization ID to which the object belongs, an object state and an object remark;
the determining of the k8s object to be queried based on the object information list specifically includes:
analyzing the object information list to obtain metadata information of a k8s object in the object information list;
extracting metadata information associated with the cloud management platform from the metadata information of the k8s object in the object information list;
and screening the extracted metadata information according to the k8s object query command to obtain the k8s object to be queried.
2. The management method according to claim 1, wherein the invoking an interface of a first k8s cluster corresponding to the k8s object creating command creates the k8s object, and specifically comprises:
generating a k8s object creation message based on the format of the interface of the first k8s cluster according to the information of the k8s object to be created;
sending the k8s object creating message to the first k8s cluster, so that the first k8s cluster creates the k8s object to be created and attaches the metadata to the object information corresponding to the k8s object to be created;
wherein the information of the k8s object to be created comprises the metadata information.
3. The management method according to claim 1, further comprising:
when a k8s object modification command is received, determining information of a k8s object to be modified according to the k8s object modification command;
generating a k8s object query command for the k8s object to be modified according to the information of the k8s object to be modified, and performing a step of generating a k8s object query message according to the k8s object query command and based on a format of an interface of a second k8s cluster corresponding to the k8s object query command until the k8s object to be modified is determined;
modifying metadata of the k8s object to be modified according to the k8s object modification command;
and calling the interface of the k8s cluster in which the k8s object to be modified is located to modify the k8s object to be modified.
4. The management method according to claim 1, further comprising:
when a k8s object deletion command is received, determining information of a k8s object to be deleted according to the k8s object deletion command;
generating a k8s object query command for the k8s object to be deleted according to the information of the k8s object to be deleted, and performing a step of generating a k8s object query message according to the k8s object query command and based on a format of an interface of a second k8s cluster corresponding to the k8s object query command until the k8s object to be deleted is determined;
and calling the interface of the k8s cluster in which the k8s object to be deleted is located to delete the k8s object to be deleted.
5. A management device of a container cluster service is characterized by being based on a cloud management platform and comprising:
the metadata generation unit is used for writing metadata information of the k8s object to be created and the cloud management platform into metadata of the k8s object to be created when a k8s object creation command is received, so that the k8s object to be created has a self-description function;
the interface adapting unit is used for calling the interface of the first k8s cluster corresponding to the k8s object creating command to create the k8s object to be created;
when a k8s object query command is received, generating a k8s object query message according to the k8s object query command and based on the format of the interface of the second k8s cluster corresponding to the k8s object query command;
sending the k8s object query message to the second k8s cluster, and receiving an object information list returned by the second k8s cluster;
determining a k8s object to be queried based on the object information list;
outputting the k8s object to be queried;
wherein the metadata information specifically includes:
the ID of the user to which the object belongs, the ID of the item to which the object belongs, the ID of the organization to which the object belongs, the state of the object and the remark of the object;
the determining of the k8s object to be queried based on the object information list specifically includes:
analyzing the object information list to obtain metadata information of a k8s object in the object information list;
extracting metadata information associated with the cloud management platform from the metadata information of the k8s object in the object information list;
and screening the extracted metadata information according to the k8s object query command to obtain the k8s object to be queried.
6. A management apparatus of a container cluster service, comprising:
a memory for storing instructions comprising the steps of the method of managing a container cluster service according to any one of claims 1 to 4;
a processor to execute the instructions.
7. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a method for managing a container cluster service according to any one of claims 1 to 4.
CN201910683110.5A 2019-07-26 2019-07-26 Management method, device and equipment of container cluster service and readable storage medium Active CN110532058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910683110.5A CN110532058B (en) 2019-07-26 2019-07-26 Management method, device and equipment of container cluster service and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910683110.5A CN110532058B (en) 2019-07-26 2019-07-26 Management method, device and equipment of container cluster service and readable storage medium

Publications (2)

Publication Number Publication Date
CN110532058A CN110532058A (en) 2019-12-03
CN110532058B true CN110532058B (en) 2022-07-15

Family

ID=68661137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910683110.5A Active CN110532058B (en) 2019-07-26 2019-07-26 Management method, device and equipment of container cluster service and readable storage medium

Country Status (1)

Country Link
CN (1) CN110532058B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324571B (en) * 2020-01-22 2022-06-17 中国银联股份有限公司 Container cluster management method, device and system
CN111736949B (en) * 2020-05-28 2023-01-10 苏州浪潮智能科技有限公司 Kubernetes container cloud platform application importing method and system
CN112104723B (en) * 2020-09-07 2024-03-15 腾讯科技(深圳)有限公司 Multi-cluster data processing system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150394A (en) * 2013-03-25 2013-06-12 中国人民解放军国防科学技术大学 Distributed file system metadata management method facing to high-performance calculation
CN106202367A (en) * 2016-07-07 2016-12-07 腾讯科技(深圳)有限公司 A kind of processing method and processing device of object information

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060229853A1 (en) * 2005-04-07 2006-10-12 Business Objects, S.A. Apparatus and method for data modeling business logic
US20120016901A1 (en) * 2010-05-18 2012-01-19 Google Inc. Data Storage and Processing Service
US11483405B2 (en) * 2015-06-10 2022-10-25 Platform9, Inc. Private cloud as a service
CN107864131A (en) * 2017-11-03 2018-03-30 郑州云海信息技术有限公司 A kind of method and system for realizing Kubernetes cluster multi-tenant Network Isolations
CN109951525A (en) * 2019-02-18 2019-06-28 山东浪潮云信息技术有限公司 A kind of cloud disk carry system and method based on container

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150394A (en) * 2013-03-25 2013-06-12 中国人民解放军国防科学技术大学 Distributed file system metadata management method facing to high-performance calculation
CN106202367A (en) * 2016-07-07 2016-12-07 腾讯科技(深圳)有限公司 A kind of processing method and processing device of object information

Also Published As

Publication number Publication date
CN110532058A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
WO2021017301A1 (en) Management method and apparatus based on kubernetes cluster, and computer-readable storage medium
CN110532058B (en) Management method, device and equipment of container cluster service and readable storage medium
US9336288B2 (en) Workflow controller compatibility
CN104484189A (en) Construction and design method of application interface
CN111061817A (en) Adaptive service construction system, method and computer readable medium
CN102254021A (en) Method for constructing database based on virtual machine management system
CN112417051A (en) Container arrangement engine resource management method and device, readable medium and electronic equipment
CN108848132A (en) A kind of distribution scheduling station system based on cloud
CN101640587A (en) Data synchronization method and data synchronization device
CN110347383A (en) The front end development approach and device of cross-platform desktop application
CN103036855A (en) Achievement device and method of authority management
CN114706690B (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN112685499A (en) Method, device and equipment for synchronizing process data of work service flow
WO2024113819A1 (en) Configuration method and apparatus for pod, device, and nonvolatile readable storage medium
CN112000971B (en) File permission recording method, system and related device
CN103051478A (en) Large-capacity telecommunication network management system as well as setting and application methods thereof
CN113177088A (en) Multi-scale simulation big data management system for material irradiation damage
CN109542727A (en) A kind of information cuing method and device
Yu et al. Design and implementation of business access control in new generation power grid dispatching and control system
US11561995B2 (en) Multitenant database instance view aggregation
CN115469807A (en) Disk function configuration method, device, equipment and storage medium
US9059992B2 (en) Distributed mobile enterprise application platform
CN115037757A (en) Multi-cluster service management system
CN104199741A (en) Virtual data management method for cloud computing environment
CN112988860B (en) Data acceleration processing method and device and electronic equipment

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231206

Address after: Room 1801, 18th Floor, Jiyun Investment Building, No. 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province, 450018

Patentee after: Zhengzhou Inspur Data Technology Co.,Ltd.

Address before: Room s311, S05 / F, Langchao Science Park, 1036 Langchao Road, high tech Zone, Jinan City, Shandong Province, 250101

Patentee before: Ji'nan tide data Technology Co.,Ltd.