Deployment method and device of edge cluster system and storage medium

By using edge cluster components and data storage service containers in the container cluster management system, combined with load balancing equipment, the complexity and cost issues of edge cluster system deployment and management are solved, and efficient operation and maintenance and management are achieved.

CN119211237APending Publication Date: 2024-12-27JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411426271.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

Deploying and managing edge cluster systems is complex and costly, requiring multiple virtual machines, resulting in difficulty in operation and maintenance and management.

Method used

In the container cluster management system, use the application image of edge cluster components to create and start application containers, combining data storage service containers and load balancing devices to realize the deployment and management of edge cluster systems.

Benefits of technology

Reduces the operation and maintenance costs of edge cluster systems, simplifies the deployment, expansion and reduction processes, improves management efficiency, and avoids the need to use new virtual machine devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211237A_ABST
    Figure CN119211237A_ABST
Patent Text Reader

Abstract

The invention provides a deployment method and device of an edge cluster system, a storage medium and a computer program product, and the method comprises the steps: creating and starting an edge cluster application container in a container cluster management system by using a first application mirror image of an edge cluster component; creating and starting an edge component application container in the container cluster management system by using the second application mirror image of the edge component; and starting a data storage service container in the container cluster management system, and forwarding a message between the edge node and the edge cluster application container by using load balancing equipment of the container cluster management system. According to the invention, the edge cluster can be operated in the container cluster management system in an application mode, so that the operation and maintenance cost of the edge cluster system is reduced; the flow of deployment, capacity expansion, capacity shrinkage and the like of the edge cluster system can be simplified, the complexity of operation, maintenance and management of the edge cluster system is reduced, and the efficiency of operation, maintenance and management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing technology, and in particular to a deployment method, device, storage medium, and computer program product of an edge cluster system. Background Art

[0002] Edge computing technology provides a distributed computing architecture that can move data processing, storage, and service functions closer to the edge where data is generated, close to the location of data sources and users. The edge cloud system can be composed of edge nodes distributed in the same area to process service requests from users in the area. When a container cluster management system is deployed, in order to manage edge nodes and solve the autonomy problem of edge nodes, it is usually necessary to deploy an independent edge cluster system. Deploying an edge cluster system requires applying for multiple virtual machines, and deploying and running edge cluster components and edge components in multiple virtual machines. Since new virtual machine devices are required to deploy and run the edge cluster system, the deployment cost of the edge cluster system is high, and the deployment, expansion, and reduction processes of the edge cluster system are complex, and operation, maintenance, and management are difficult. Summary of the invention

[0003] The present disclosure provides a deployment method, device, storage medium, and computer program product of an edge cluster system.

[0004] According to a first aspect of the present disclosure, a deployment method for an edge cluster system is provided, comprising: using a first application image of an edge cluster component to create and start an edge cluster application container in a container cluster management system; using a second application image of an edge component to create and start an edge component application container in the container cluster management system; starting a data storage service container in the container cluster management system, wherein the data storage service container is used to provide data storage services for the edge cluster application container and the edge component application container; and using a load balancing device of the container cluster management system to forward messages between edge nodes and the edge cluster application container.

[0005] Optionally, the edge cluster component includes an application program interface API service component, the first application image includes an API service application image of the API service component, the edge cluster application container includes an API service application container, and using the first application image of the edge cluster component to create and start the edge cluster application container in the container cluster management system includes: using the API service application image to create and start the API service application container in the container cluster management system.

[0006] Optionally, using the API service application image to create and start the API service application container in the container cluster management system includes: adding the domain name information of the API service component and the issuance information of the LB device to the certificate file of the API service component; adding the address information and the trust certificate of the data storage service container to the configuration file of the API service component; using the API service application image and based on the configuration file and the certificate file, creating and starting the API service application container, and enabling the API service application container to open the API access service; adding the access information of the API access service to the encryption object of the API service application container.

[0007] Optionally, the API service application container uses the data storage service based on the address information and the trust certificate to store data in the data storage service container.

[0008] Optionally, the edge cluster component includes a controller management component, the first application image includes a controller management application image, the edge cluster application container includes a controller management application container, and using the first application image of the edge cluster component to create and start the edge cluster application container in the container cluster management system includes: using the controller management application image to create and start the controller management application container, and based on the encrypted object, configuring the controller management application container with first access information corresponding to the API access service.

[0009] Optionally, the controller management application container uses the API access service to store data of the controller management application container based on the first access information, wherein the API access service stores the data of the controller management application container in the data storage service container by using the data storage service.

[0010] Optionally, the edge cluster component includes a scheduling component, the first application image includes a scheduling application image, the edge cluster application container includes a scheduling application container, and using the first application image of the edge cluster component to create and start the edge cluster application container in the container cluster management system includes: using the scheduling application image to create and start the scheduling application container, and based on the encrypted object, configuring the scheduling application container with second access information corresponding to the API access service.

[0011] Optionally, the scheduling application container uses the API access service to store the data of the scheduling application container based on the second access information, wherein the API access service stores the data of the scheduling application container in the data storage service container by using the data storage service.

[0012] Optionally, using the second application image of the edge component to create and start the edge component application container in the container cluster management system includes: using the second application image to create and start the edge component application container, and based on the encrypted object, configuring third access information corresponding to the API access service for the edge component application container.

[0013] Optionally, the edge component application container uses the API access service to store the data of the edge component application container based on the third access information, wherein the API access service stores the data of the edge component application container in the data storage service container by using the data storage service.

[0014] Optionally, using the load balancing device of the container cluster management system to forward messages between the edge node and the edge cluster application container includes: configuring the address information of the API service application container in the load balancing device of the container cluster management system, so that the load balancing device forwards the first message sent by the edge node to the API service application container based on the API service application container address information, and returns the second message sent by the API service application container to the edge node.

[0015] Optionally, the first application image is generated based on a binary file of the edge cluster component; and the second application image is generated based on a binary file of the edge component.

[0016] Optionally, starting the data storage service container in the container cluster management system includes: starting the data storage service container in a stateful set manner in the container cluster management system, and configuring the data storage service container to open the data storage service in a headless service manner.

[0017] Optionally, the data storage service container includes a distributed key-value storage service container.

[0018] According to a second aspect of the present disclosure, a deployment device for an edge cluster system is provided, comprising: a cluster component startup module, used to use a first application image of an edge cluster component to create and start the edge cluster application container in the container cluster management system; an edge component startup module, used to use a second application image of an edge component to create and start the edge component application container in the container cluster management system; a storage service startup module, used to deploy and start a data storage service container in the container cluster management system, wherein the data storage service container is used to provide data storage services for the edge cluster application container and the edge component application container; a data forwarding setting module, used to forward messages between edge nodes and the edge cluster application container using a load balancing device of the container cluster management system.

[0019] According to a third aspect of the present disclosure, a deployment device of an edge cluster system is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the deployment method as described above based on instructions stored in the memory.

[0020] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the deployment method as described above is implemented.

[0021] According to a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product stores computer instructions, and when the computer instructions are executed by a processor, the deployment method as described above is implemented.

[0022] The edge cluster system deployment method, device, storage medium and computer program product disclosed in the present invention can enable the edge cluster to run in the container cluster management system in the form of an application, without the need to use new virtual machine devices to run the edge cluster system, thereby reducing the operation and maintenance costs of the edge cluster system; it can simplify the deployment, expansion, and reduction processes of the edge cluster system, reduce the complexity of the operation and maintenance and management of the edge cluster system, and improve the efficiency of the operation and maintenance and management of the edge cluster system. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] By describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present disclosure will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other purposes and advantages of the present disclosure will be further described below in conjunction with specific embodiments and with reference to the accompanying drawings. In the accompanying drawings, the same or corresponding technical features or components will be represented by the same or corresponding figure marks.

[0024] Figure 1 A flowchart of some embodiments of a method for deploying an edge cluster system according to the present disclosure;

[0025] Figure 2 A schematic diagram of a process of starting an API service application container in some embodiments of the edge cluster system deployment method according to the present disclosure;

[0026] Figure 3 A schematic diagram of a process of managing an application container by a startup controller in some embodiments of the edge cluster system deployment method according to the present disclosure;

[0027] Figure 4 A schematic diagram of a process of starting and scheduling an application container in some embodiments of the edge cluster system deployment method according to the present disclosure;

[0028] Figure 5 A schematic diagram of a process of starting an edge component application container in some embodiments of the edge cluster system deployment method according to the present disclosure;

[0029] Figure 6 This is a deployment diagram of the edge cluster system;

[0030] Figure 7 It is a module schematic diagram of some embodiments of the deployment device of the edge cluster system according to the present disclosure;

[0031] Figure 8 A schematic diagram of a module of a cluster component startup module in some embodiments of a deployment device of an edge cluster system according to the present disclosure;

[0032] Fig. 9 Schematic diagram of modules of other embodiments of a deployment device of an edge cluster system according to the present disclosure. DETAILED DESCRIPTION

[0033] Exemplary embodiments of the present disclosure will be described below in conjunction with the accompanying drawings. For the sake of clarity and conciseness, not all features of the embodiments are described in the specification. However, it should be understood that many implementation-specific settings must be made in the process of implementing the embodiments in order to achieve the specific goals of the developer, for example, to meet those restrictions related to the device and the service, and these restrictions may vary depending on the implementation. In addition, it should be understood that although the development work may be very complex and time-consuming, it is only a routine task for those skilled in the art who benefit from the content of this disclosure.

[0034] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0035] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.

[0036] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.

[0037] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.

[0038] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.

[0039] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.

[0040] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0041] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0042] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0043] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0044] In addition, in order to avoid obscuring the present disclosure due to unnecessary details, only the processing steps and / or device structures closely related to at least the scheme according to the present disclosure are shown in the drawings, and other details that are not closely related to the present disclosure are omitted. It should also be noted that similar reference numerals and letters in the drawings indicate similar items, and therefore once an item is defined in one drawing, it does not need to be discussed again for subsequent drawings.

[0045] Figure 1 FIG. 1 is a flow chart of some embodiments of the edge cluster system deployment method according to the present disclosure. Figure 1 As shown, the deployment method of the edge cluster system includes steps S101-S104.

[0046] Step S101 : using a first application image of an edge cluster component, create and start an edge cluster application container in a container cluster management system.

[0047] The container cluster management system provides centralized management, scheduling, and monitoring functions for software tools or platforms that manage and run container clusters. The container cluster management system can be a variety of systems, such as a K8s system. The edge cluster system can be a variety of systems, such as a K8s edge cluster system. The edge cluster components can be a variety of systems, such as an edge cluster component of a K8s system.

[0048] The first application image of the edge cluster component can be a variety of images. An image is a special file system that contains the programs, libraries, resources, configurations, and other files required for the container to run. The image also contains the configuration parameters required for runtime (such as environment variables, etc.). The image does not contain dynamic data, and the image content will not be changed after it is built.

[0049] Pod is the smallest basic unit for deployment and management in the container cluster management system. In the container cluster management system, an edge cluster application container is created and started. The edge cluster application container is an instance of an independently running application or service. The edge cluster application container can run in a Pod.

[0050] Step S102: Use the second application image of the edge component to create and start an edge component application container in the container cluster management system.

[0051] There may be multiple edge components, such as edge components of a K8s system. The second application image of the edge component may be multiple images. An edge component application container is created and started in a container cluster management system. The edge component application container is an instance of an independently running application or service. The edge component application container may run in a Pod.

[0052] Step S103: Start the data storage service container in the container cluster management system.

[0053] The data storage service container is used to provide data storage services for edge cluster application containers and edge component application containers. The edge cluster application containers and edge component application containers use the data storage service container to store data and achieve data persistence; the edge cluster application containers and edge component application containers can also obtain their own stored data through the data storage service container after restarting.

[0054] The data storage service container can be of various types, such as the distributed key-value storage service ETCD container. ETCD is a distributed key-value storage system that can provide reliable storage and access data services. The distributed characteristics of ETCD can ensure that the entire ETCD system can still operate normally when some nodes are down.

[0055] By starting the ETCD container in the container cluster management system, the edge cluster application container and the edge component application container can access the ETCD container to store data, and can access the stored data by accessing the ETCD container; the ETCD container can store data in the ETCD database.

[0056] Step S104: forwarding messages between edge nodes and edge cluster application containers using a load balancing LB (Load Balance) device of the container cluster management system.

[0057] The edge node can be a node in a system such as an edge cloud system, and the LB device provides a network service portal to the edge node. The access information of the edge cluster application container can be configured in the LB device, and the messages between the edge node and the edge cluster application container can be forwarded through the LB device.

[0058] The edge cluster system deployment method disclosed in the present invention creates and starts an edge cluster application container and an edge component application container in a container cluster management system by using an application image, starts a data storage service container in the container cluster management system, and uses a load balancing device to forward messages between edge nodes and edge cluster application containers. This allows the edge cluster to run in the container cluster management system as an application, without the need to use a new virtual machine device to run the edge cluster system, thereby reducing the operation and maintenance cost of the edge cluster system; the edge cluster system can be expanded, reduced, and managed by expanding, reducing, and managing the application, thereby simplifying the deployment, expansion, and reduction processes of the edge cluster system, reducing the complexity of the operation and maintenance and management of the edge cluster system, and improving the efficiency of the operation and maintenance and management of the edge cluster system.

[0059] A first application image may be generated based on a binary file of an edge cluster component. For example, a binary file of an edge cluster component may be obtained, and a first application image may be generated based on the binary file and using an image generation script. The first application image may be a docker image, etc. A second application image may be generated based on a binary file of an edge component. For example, a binary file of an edge cluster component may be obtained, and a second application image may be generated based on the binary file and using an image generation script. The second application image may be a docker image, etc.

[0060] The edge cluster components include API (Application Programming Interface) service components, which can be kube-apiserver components, etc. The API service components are used to provide API interfaces for edge cluster management, data interaction and communication services, etc.

[0061] The first application image includes an API service application image of an API service component. The API service application image may be an application image of a kube-apiserver component, etc. The edge cluster application container includes an API service application container. The API service application container may be a kube-apiserver application container, etc.

[0062] You can use the API service application image to create and start the API service application container in the container cluster management system. Figure 2 The following is a flow chart of starting an API service application container in some embodiments of the edge cluster system deployment method according to the present disclosure. Figure 2 As shown, the method for starting the API service application container includes steps S201-S204.

[0063] Step S201, add the domain name information of the API service component and the issuance information of the LB device to the certificate file of the API service component.

[0064] You can use a variety of commands to generate the certificate file of the API service component. The certificate file is a digital file used to verify the identity of the API service. Apply for the domain name information of the API service component and obtain the issuance information of the LB device. Add the domain name information of the API service component and the issuance information of the LB device to the certificate file of the API service component. The domain name information of the API service component includes the service name, namespace, and the domain name suffix in the container cluster management system where the service is located. The issuance information of the LB device includes the serial number of the LB device, manufacturer information, issuance date, validity period, and possible security certification identification.

[0065] Step S202: Add the address information and the trust certificate of the data storage service container to the configuration file of the API service component.

[0066] The address information and CA certificate of data storage service containers such as ETCD container can be added to the configuration file of the API service component. Based on the address information and the trust certificate, the API service application container can use the data storage service to store data in the data storage service container. For example, the address information of the ETCD container is the access address information. Based on the address information and CA certificate of the ETCD container, the API service application container can access the ETCD container to store and access data.

[0067] Step S203: Use the API service application image and based on the configuration file and the certificate file to create and start the API service application container, and enable the API service application container to open the API access service.

[0068] In some embodiments, the Deployment in K8s is a declarative resource object that can use the API service application image and based on the configuration file and certificate file, use the existing Deployment method to create and start the API service application container, which is a stateless application.

[0069] The type of API access service opened by the API service application container is NodePort. A static port can be assigned to the API service application container and exposed on all nodes. Other containers can access the API service application container through the address + port of the API service application container.

[0070] Step S204: adding the access information of the API access service to the encrypted object of the API service application container.

[0071] The encrypted object can be a Secret object in K8s, etc. The Secret object in K8s is used to securely store and manage sensitive information, ensuring that the information is securely managed and distributed to the required containers within the cluster. You can use a variety of methods to generate the encrypted object (K8s Secret object) of the API service application container. The access information of the API access service can be configured in the kubeconfig file. The access information of the API access service or the kubeconfig file can be added to the encrypted object of the API service application container.

[0072] In some embodiments, the edge cluster component includes a controller management component, which may be a Kube-Controller-Manager component, etc. The controller management component is responsible for maintaining the consistency between the desired state and the actual state of the edge cluster system. The first application image includes a controller management application image, such as a Kube-Controller-Manager application image; the edge cluster application container includes a controller management application container, such as a Kube-Controller-Manager application container.

[0073] Figure 3 The following is a flow chart of the startup controller managing the application container in some embodiments of the edge cluster system deployment method according to the present disclosure. Figure 3 As shown, the method for starting a controller to manage an application container includes steps S301-S302.

[0074] Step S301: Use the controller to manage the application image, create and start the controller to manage the application container.

[0075] You can use the controller to manage application images and use the Deployment method to create and start the controller-managed application container, which is a stateless application.

[0076] Step S302: Based on the encrypted object, configure first access information corresponding to the API access service for the controller management application container.

[0077] When the controller management application container is created and started in the Deployment mode, the access information of the API access service can be obtained by loading the encrypted object of the API service application container. Based on the access information of the API access service, the first access information corresponding to the API access service can be configured for the controller management application container, and the first access information can be information such as the address + port of the API service application container.

[0078] After the controller management application container is started, the controller management application container uses the API access service to store the data of the controller management application container based on the first access information, wherein the API access service stores the data of the controller management application container in the data storage service container by using the data storage service.

[0079] For example, after the controller management application container is started, the controller management application container uses the API access service opened by the API service application container based on the address + port and other information of the API service application container to store the data of the controller management application container and obtain the previously stored data of the controller management application container.

[0080] In some embodiments, the edge cluster component includes a scheduling component, which may be a kube-scheduler component, etc. The kube-scheduler component is used to allocate containers to be scheduled to run on appropriate nodes; the kube-scheduler component works in conjunction with the kube-apiserver component and the kube-controller-manager component to ensure the normal operation of the edge cluster. The first application image includes a scheduling application image, such as an application image of the kube-scheduler component, etc.; the edge cluster application container includes a scheduling application container, such as a kube-scheduler application container, etc.

[0081] Figure 4 FIG. 1 is a flow chart of starting and scheduling application containers in some embodiments of the edge cluster system deployment method according to the present disclosure. Figure 4 As shown, the method for starting the scheduling application container includes steps S401-S302.

[0082] Step S401: Use the scheduling application image to create and start a scheduling application container.

[0083] You can use the scheduling application image and use the Deployment method to create and start the scheduling application container. The scheduling application container is a stateless application.

[0084] Step S402: Based on the encrypted object, second access information corresponding to the API access service is configured for the scheduling application container.

[0085] When the Deployment method is used to create and start the scheduling application container, the access information of the API access service is obtained by loading the encrypted object of the API service application container; based on the access information of the API access service, the second access information corresponding to the API access service is configured for the scheduling application container. The second access information can be the address + port and other information of the API service application container.

[0086] After the scheduling application container is started, the scheduling application container uses the API access service to store data of the scheduling application container based on the second access information, wherein the API access service stores the data of the scheduling application container in the data storage service container by using the data storage service.

[0087] For example, after the scheduling application container is started, the scheduling application container uses the API access service opened by the API service application container based on the address + port and other information of the API service application container to store the data of the scheduling application container and obtain the previously stored data of the scheduling application container.

[0088] In some embodiments, edge components refer to components located at the edge of the network in the edge planning architecture, which are used to process data of edge nodes, etc. Edge components may include service components for managing edge node autonomy, service components for managing edge application expansion and contraction, service components for collecting edge application logs, components for providing coreDNS services, and other components to provide multiple services for edge nodes.

[0089] Figure 5 FIG. 1 is a flow chart of starting an edge component application container in some embodiments of the edge cluster system deployment method according to the present disclosure. Figure 5 As shown, the method for deploying and starting the edge component application container includes steps S501-S502.

[0090] Step S501: Use the second application image to create and start an edge component application container.

[0091] The second application image can be used, and the edge component application container can be created and started in a deployment manner. The edge component application container is a stateless application.

[0092] Step S502: Based on the encrypted object, configure third access information corresponding to the API access service for the edge component application container.

[0093] When the edge component application container is created and started using the Deployment method, the access information of the API access service can be obtained by loading the encrypted object of the API service application container; based on the access information of the API access service, the third access information corresponding to the API access service is configured for the edge component application container. The third access information can be the address + port and other information of the API service application container.

[0094] After the edge component application container is started, the edge component application container uses the API access service to store data of the edge component application container based on the third access information, wherein the API access service stores the data of the edge component application container in the data storage service container by using the data storage service.

[0095] For example, after the edge component application container is started, based on the address + port and other information of the API service application container, the API service application container uses the API access service open to store the data of the edge component application container, and can obtain the previously stored data of the edge component application container.

[0096] In some embodiments, in a container cluster management system, a data storage service container is started in a stateful set manner, and the data storage service container is configured to open the data storage service in a headless service manner.

[0097] The data storage service container is a stateful service application; the stateful set mode can be Statefulset mode, which is a K8s resource object used to manage stateful applications, containers, etc. The headless service mode is the Headless Service mode. The Headless Service mode is a service mode in K8s. The Headless Services mode does not maintain a virtual IP (VIP) to proxy and load balance to the backend Pod. Compared with the non-Headless Services mode, the Headless Services mode does not provide load balancing and a single access entry point, and directly forwards service requests to the backend Pod.

[0098] In the load balancing LB device of the container cluster management system, the address information of the API service application container is configured so that the LB device forwards the first message sent by the edge node to the API service application container based on the API service application container address information, and returns the second message sent by the API service application container to the edge node.

[0099] For example, in the K8s system, you can apply for a LB device, configure the address information of the API service application container in the LB device, and open the address information of the LB device. The address information of the API service application container can be address + port and other information. The edge node accesses the edge cluster system through the LB. The edge node can send a first message to the LB device based on the address information of the LB device. The first message can be a variety of messages; the LB device forwards the first message sent by the edge node to the API service application container based on the address information of the API service application container.

[0100] The API service application container can process the first message, or send the first message to other containers for processing. The API service application container sends the second message to the LB device. The second message can be a variety of messages. The second message can be a message generated by the API service application container or a message generated by other containers. The LB device returns the second message to the edge node.

[0101] When there are multiple API service application containers, the LB device can perform load balancing; the LB device can select an API service application container from multiple API service application containers through an existing load balancing algorithm to provide services to the edge node.

[0102] like Figure 6As shown, an edge cluster system 61 is deployed in the container cluster management system 60, and the edge cluster system 61 includes an edge cluster application container 62 and an edge component application container 63; the edge cluster application container 62 includes an API service application container 621, a controller management application container 622 and a scheduling application container 623, etc.

[0103] A data storage service container 64 is started in the container cluster management system 60. The data storage service container 64 is used to provide data storage services for the edge cluster application container 62 and the edge component application container 63. The edge cluster system 61 is in namespace 1, and the data storage service container 64 is in namespace 2.

[0104] The load balancing LB device 65 of the container cluster management system 60 can be used to forward messages between the edge node and the edge cluster application container 61. There can be multiple edge nodes, including edge node 66, edge node 67, edge node 68, etc.

[0105] The deployment method of the edge cluster system in the above embodiment can enable the edge cluster to run in the container cluster management system in the form of an application, reduce the operation and maintenance cost of the edge cluster system, reduce the operation and maintenance and expansion and reduction complexity of the edge cluster system, improve the efficiency of operation and maintenance and management of the edge cluster system, and improve the security and reliability of the edge cluster system.

[0106] In some embodiments, Figure 7 As shown, the present disclosure provides a deployment device 70 of an edge cluster system, including a cluster component startup module 71, an edge component startup module 72, a storage service startup module 73 and a data forwarding setting module 74.

[0107] The cluster component startup module 71 uses the first application image of the edge cluster component to create and start the edge cluster application container in the container cluster management system. The edge component startup module 72 uses the second application image of the edge component to create and start the edge component application container in the container cluster management system.

[0108] The storage service startup module 73 deploys and starts the data storage service container in the container cluster management system, wherein the data storage service container is used to provide data storage services for the edge cluster application container and the edge component application container. The data forwarding setting module 74 uses the load balancing LB device of the container cluster management system to forward the message between the edge node and the edge cluster application container.

[0109] In some embodiments, the cluster component startup module 71 generates a first application image based on the binary file of the edge cluster component. The edge component startup module 72 generates a second application image based on the binary file of the edge component.

[0110] The storage service startup module 73 starts the data storage service container in a stateful set manner in the container cluster management system, and configures the data storage service container to open the data storage service in a headless service manner.

[0111] The data forwarding setting module 74 configures the address information of the API service application container in the load balancing LB device of the container cluster management system, so that the LB device forwards the first message sent by the edge node to the API service application container based on the API service application container address information, and returns the second message sent by the API service application container to the edge node.

[0112] like Figure 8 As shown, the cluster startup module 71 includes a first container startup unit 711, a second container startup unit 712, and a third container startup unit 713. The first container startup unit 711 uses the API service application image to create and start the API service application container in the container cluster management system.

[0113] For example, the first container startup unit 711 adds the domain name information of the API service component and the issuance information of the LB device to the certificate file of the API service component; the first container startup unit 711 adds the address information and the trust certificate of the data storage service container to the configuration file of the API service component; the first container startup unit 711 uses the API service application image and based on the configuration file and the certificate file, creates and starts the API service application container, and enables the API service application container to open the API access service; the first container startup unit 711 adds the access information of the API access service to the encryption object of the API service application container.

[0114] The second container startup unit 712 uses the controller management application image to create and start the controller management application container, and configures first access information corresponding to the API access service for the controller management application container based on the encrypted object.

[0115] The third container startup unit 713 uses the scheduling application image to create and start the scheduling application container, and configures second access information corresponding to the API access service for the scheduling application container based on the encrypted object.

[0116] The edge component startup module 72 uses the second application image to create and start the edge component application container, and configures third access information corresponding to the API access service for the edge component application container based on the encrypted object.

[0117] In some embodiments, Fig. 9As shown, the deployment device of the edge cluster system may include a memory 91, a processor 92, a communication interface 93 and a bus 94. The memory 91 is used to store instructions, the processor 92 is coupled to the memory 91, and the processor 92 is configured to execute the above-mentioned edge cluster system deployment method based on the instructions stored in the memory 91.

[0118] The memory 91 may be a high-speed RAM memory, a non-volatile memory, etc., or a memory array. The memory 91 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules. The processor 92 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the deployment method of the edge cluster system disclosed in the present invention.

[0119] In some embodiments, the present disclosure provides a computer-readable storage medium storing computer instructions, which implement the methods in any of the above embodiments when executed by a processor.

[0120] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive enumeration) of readable storage media can include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0121] The embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes the steps of the method according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0122] The edge cluster system deployment method, device, storage medium and computer program product in the above-mentioned embodiments, by using application images, create and start edge cluster application containers and edge component application containers in the container cluster management system, and start the data storage service container in the container cluster management system, and use the load balancing device to forward the messages between the edge node and the edge cluster application container, so that the edge cluster can be run in the container cluster management system as an application, without the need to use new virtual machine devices to run the edge cluster system, thereby reducing the operation and maintenance costs of the edge cluster system; the edge cluster system can be expanded, reduced and managed by using methods such as expansion, reduction and management of applications, which can simplify the deployment, expansion, reduction and other processes of the edge cluster system, reduce the complexity of operation and maintenance and expansion and reduction of the edge cluster system, improve the efficiency of operation and maintenance and management of the edge cluster system, improve the security and reliability of the edge cluster system, and improve the user experience.

[0123] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, and are not limitations. The above details do not limit the present disclosure to the necessity of adopting the above specific details to be implemented.

[0124] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0125] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.

[0126] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.

[0127] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0128] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, it will be appreciated by those skilled in the art that the above embodiments are merely illustrative and do not limit the scope of the present disclosure. It will be appreciated by those skilled in the art that the above embodiments may be combined, modified or replaced without departing from the scope and essence of the present disclosure.

Claims

1. A deployment method of an edge cluster system, comprising: Using the first application image of the edge cluster component, create and start an edge cluster application container in the container cluster management system; Using the second application image of the edge component, creating and starting an edge component application container in the container cluster management system; Starting a data storage service container in the container cluster management system, wherein the data storage service container is used to provide data storage services for the edge cluster application container and the edge component application container; The load balancing device of the container cluster management system is used to forward messages between the edge node and the edge cluster application container.

2. The deployment method according to claim 1, wherein: The edge cluster component includes an application program interface API service component, the first application image includes an API service application image of the API service component, the edge cluster application container includes an API service application container, and using the first application image of the edge cluster component to create and start the edge cluster application container in a container cluster management system includes: Using the API service application image, the API service application container is created and started in the container cluster management system.

3. The deployment method according to claim 2, wherein: The using the API service application image to create and start the API service application container in the container cluster management system includes: Add the domain name information of the API service component and the issuance information of the LB device to the certificate file of the API service component; Add the address information and the trust certificate of the data storage service container to the configuration file of the API service component; Using the API service application image and based on the configuration file and the certificate file, create and start the API service application container, and enable the API service application container to open API access services; The access information of the API access service is added to the encryption object of the API service application container.

4. The deployment method according to claim 3, wherein: The API service application container uses the data storage service based on the address information and the trust certificate to store data in the data storage service container.

5. The deployment method according to claim 4, wherein: The edge cluster component includes a controller management component, the first application image includes a controller management application image, the edge cluster application container includes a controller management application container, and using the first application image of the edge cluster component to create and start the edge cluster application container in the container cluster management system includes: The controller management application image is used to create and start the controller management application container, and based on the encrypted object, first access information corresponding to the API access service is configured for the controller management application container.

6. The deployment method according to claim 5, wherein: The controller management application container uses the API access service to store data of the controller management application container based on the first access information, The API access service stores the data of the controller management application container in the data storage service container by using the data storage service.

7. The deployment method according to claim 4, wherein: The edge cluster component includes a scheduling component, the first application image includes a scheduling application image, the edge cluster application container includes a scheduling application container, and using the first application image of the edge cluster component to create and start the edge cluster application container in the container cluster management system includes: The scheduling application container is created and started using the scheduling application image, and second access information corresponding to the API access service is configured for the scheduling application container based on the encrypted object.

8. The deployment method according to claim 7, wherein: The scheduling application container uses the API access service to store data of the scheduling application container based on the second access information, The API access service stores the data of the scheduling application container in the data storage service container by using the data storage service.

9. The deployment method according to claim 4, wherein: The second application image of the edge component is used to create and start the edge component application container in the container cluster management system, including: Using the second application image, an edge component application container is created and started, and based on the encrypted object, third access information corresponding to the API access service is configured for the edge component application container.

10. The deployment method according to claim 9, wherein: The edge component application container uses the API access service to store data of the edge component application container based on the third access information, The API access service stores the data of the edge component application container in the data storage service container by using the data storage service.

11. The deployment method according to claim 4, wherein: The forwarding of the message between the edge node and the edge cluster application container by using the load balancing device of the container cluster management system includes: In the load balancing device of the container cluster management system, the address information of the API service application container is configured so that the load balancing device forwards the first message sent by the edge node to the API service application container based on the API service application container address information, and returns the second message sent by the API service application container to the edge node.

12. The deployment method according to claim 1, comprising: Generate the first application image based on the binary file of the edge cluster component; Based on the binary file of the edge component, the second application image is generated.

13. The deployment method according to claim 1, wherein: Starting the data storage service container in the container cluster management system includes: In the container cluster management system, the data storage service container is started in a stateful set manner, and the data storage service container is configured to open the data storage service in a headless service manner.

14. The deployment method according to any one of claims 1 to 13, wherein: The data storage service container includes a distributed key-value storage service container.

15. A deployment device for an edge cluster system, comprising: A cluster component startup module, used to create and start the edge cluster application container in the container cluster management system using the first application image of the edge cluster component; An edge component startup module, used to create and start the edge component application container in the container cluster management system using the second application image of the edge component; A storage service startup module, used to deploy and start a data storage service container in a container cluster management system, wherein the data storage service container is used to provide data storage services for the edge cluster application container and the edge component application container; The data forwarding setting module is used to forward messages between the edge node and the edge cluster application container by using the load balancing device of the container cluster management system.

16. A deployment device for an edge cluster system, comprising: Memory; and a processor coupled to the memory, the processor being configured to execute the deployment method according to any one of claims 1 to 14 based on instructions stored in the memory.

17. A computer-readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the deployment method according to any one of claims 1 to 14.

18. A computer program product, wherein the computer program product stores computer instructions, and when the computer instructions are executed by a processor, the deployment method according to any one of claims 1 to 14 is implemented.

Citation Information

Patent Citations

  • Container-based privatized Paas platform and method for publishing application thereof

    CN109445802A

  • Edge computing gateway management system and method based on LXC container technology

    CN111061491A

  • Management method of edge equipment and related device

    CN112506659A

  • Creation method and device of network edge computing system, and medium

    CN112532758A

  • Cloud side cooperation system and cloud side cooperation method based on native container technology

    CN112559133A

Cited By

  • Deployment method and apparatus for edge cluster system, and storage medium

    WO2026077056A1