Container cloud platform system
Through the design of the container cloud platform system, the problems of complex deployment methods and high resource consumption of existing systems are solved, efficient and flexible container automation deployment and resource management are achieved, and the reliability and deployment efficiency of applications are improved.
Patent Information
- Application Number
- CN202411068195.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-12
AI Technical Summary
Existing methods for rapid system deployment such as automated script deployment and mirror deployment have problems such as complex logic, difficulty in maintenance, cumbersome dependency management and high resource consumption, making it difficult to achieve efficient and flexible system deployment and management.
A container cloud platform system was designed, including container cloud management module, data unit management module, monitoring and alarm management module, and automated construction and deployment module. It is used to use subsystems such as mirroring services, container orchestration, authentication, monitoring and alarm subsystems. The collaborative work of the container can be automated, elastic scaling and failure recovery, and communicate through the REST API.
It improves the reliability and availability of applications, simplifies data management and maintenance, improves deployment efficiency and response speed, meets the diversified needs of enterprises, and achieves flexible and efficient management of resources.
Smart Images

Figure CN118939379A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of system architecture, and in particular relates to a container cloud platform system. Background Art
[0002] The current methods for rapid system deployment mainly include: (1) Automated script deployment (such as Ansible, Chef, Puppet, etc.) to write system configuration and installation scripts, and then run these scripts on the target host to deploy the system; this method can automate the system configuration and installation process, and can quickly deploy the system on multiple hosts; (2) Image deployment: package the system configuration and application into an image file, and then use image management tools (such as Docker, LXD, etc.) to deploy it to the target host. This method can quickly deploy and port the system, and can easily use the same image file to deploy the system in different environments.
[0003] Although these methods can achieve rapid system opening, they also have some problems: (1) Automated script deployment: Automated scripts may require writing more complex logic and conditional judgments to ensure that the system is correctly configured and installed. In addition, it takes extra time and effort to write and maintain these scripts, and they need to be adapted between different operating systems and software versions. (2) Image deployment: Similar to container deployment, image deployment also requires managing image dependencies and versions to ensure the correctness and availability of the system. In addition, since the image file is large, it takes extra time and resources to transfer and store the image. Summary of the invention
[0004] Based on the above-mentioned defects, the present invention provides a container cloud platform system.
[0005] In order to achieve the above object, the present invention provides a container cloud platform system, which includes: A container cloud management module, which is used to perform automated deployment, elastic scaling, and fault recovery of containers; A data unit management module, wherein the data unit management module is used to separate the application program from the data; A monitoring and alarm management module, wherein the monitoring and alarm management module is used to monitor the running status of the application in real time; An automated build and deployment module, which is used to quickly build and release container images.
[0006] Optimally, the container cloud management module includes an image service subsystem, a container orchestration subsystem and an authentication subsystem, the data unitization management module includes a data unit subsystem, the monitoring and alarm management module includes a monitoring subsystem and an alarm subsystem; the automated build and deployment module includes an automatic deployment subsystem; the image service subsystem, container orchestration subsystem, authentication subsystem, data unit subsystem, monitoring subsystem, alarm subsystem and automatic deployment subsystem communicate independently with each other through a REST API.
[0007] Furthermore, the image service subsystem is used to provide image repository management services and manage images within the platform; the data unit subsystem is used to package, push, inject, and re-inject data required by the business system; the authentication subsystem is used to provide user authentication, interface authentication, and data authentication services; the container orchestration subsystem is used to manage infrastructure, cluster resources, applications, services, container resource objects, and templates and configuration information; the monitoring subsystem is used to provide monitoring services for applications within the platform; the alarm subsystem is used to provide alarm notification services; the automatic deployment subsystem is used to provide continuous integration and automatic deployment services for applications.
[0008] Furthermore, the automatic deployment subsystem calls the services of the image service subsystem, container orchestration subsystem, authentication subsystem, data unit subsystem, monitoring subsystem and alarm subsystem through a REST API to complete the automatic deployment.
[0009] Optimally, the container cloud platform system also includes multiple virtual machines or physical machines, which are deployed in a multi-cluster manner.
[0010] Furthermore, the container cloud platform system is used to manage resources, which include an upper-level cluster and multiple lower-level clusters that cooperate with each other. The upper-level cluster is where the automated deployment system and core components of the entire platform run, and the lower-level cluster is where user applications and services run.
[0011] Furthermore, the upper cluster has a master node resource pool and a slave node resource pool, and the lower cluster has a working node resource pool.
[0012] The container cloud platform system of the present invention can improve the reliability and availability of applications, facilitate data management and maintenance, and improve deployment efficiency and application response speed through the coordination of structures such as the container cloud management module, the data unitization management module, the monitoring and alarm management module, and the automated construction and deployment module. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1It is a structural schematic diagram of the container cloud platform system of the present invention; Figure 2 A schematic diagram of a multi-cluster deployment solution for the container cloud platform of the present invention; Figure 3 This is a logical architecture diagram of the container cloud platform system of the present invention. DETAILED DESCRIPTION
[0014] In order to enable those skilled in the art to better understand the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained under the premise of equivalent changes and modifications made by ordinary technicians in the field should belong to the scope of protection of the present invention.
[0015] like Figure 1 The container cloud platform system shown mainly includes a coordinated container cloud management module, a data unit management module, a monitoring and alarm management module, and an automated construction and deployment module.
[0016] Among them, the container cloud management module is used to realize the automatic deployment, elastic scaling and fault recovery of the container, which improves the reliability and availability of the application. The data unit management module is used to separate the application and the data. Through the data unit management, the security and reliability of the data can be improved, and the management and maintenance of the data are convenient. The monitoring and alarm management module (i.e., the monitoring and alarm management tool) can monitor the running status of the application in real time, discover and solve problems in time, and improve the reliability and stability of the application. The automated construction and deployment module (i.e., the automated construction and deployment tool) can realize the rapid construction and release of the container image, improve the deployment efficiency and the response speed of the application. The present invention realizes the automatic arrangement and deployment of the container based on the image and data unit. Compared with the traditional cloud computing platform, the present invention emphasizes containerization more, and resource management takes the container as the core unit. Therefore, it is more flexible and efficient in resource management and control, and can better meet the diversified needs of enterprises. The container cloud platform not only realizes "platform as a service", but also has good management of the infrastructure. The services provided by the present invention include resource scheduling and monitoring, service orchestration and governance, rapid application deployment, storage service and image service, monitoring and alarm, etc.
[0017] The above container cloud platform system mainly consists of seven subsystems, as follows: The container cloud management module includes the image service subsystem, the container orchestration subsystem and the authentication subsystem. The data unit management includes the data unit subsystem, the monitoring and alarm management module includes the monitoring subsystem and the alarm subsystem, and the automated build and deployment tool includes the automatic deployment subsystem; the image service subsystem, the container orchestration subsystem, the authentication subsystem, the data unit subsystem, the monitoring subsystem, the alarm subsystem and the automatic deployment subsystem communicate independently through the REST API. The image service subsystem and the data unit subsystem are the basis of the entire rapid opening platform (i.e., the container cloud platform system), and other subsystems work based on these two. The image service subsystem mainly provides image warehouse management services and manages the images within the platform; the data unit subsystem mainly performs data packaging, pushing, injection, and re-injection operations on the data required by the business system; the authentication subsystem provides user authentication, interface authentication, and data authentication services; the container orchestration subsystem provides management of resource objects such as infrastructure, cluster resources, applications, services, and containers, and also includes the management of some templates and configuration information; the monitoring subsystem provides monitoring services for applications within the platform; the alarm subsystem provides alarm notification services; and the automatic deployment subsystem provides continuous integration and automatic deployment services for applications. Different subsystems have their own interface specifications, but in general, subsystems can communicate with each other through REST APIs.
[0018] The complete functional implementation of the automatic deployment subsystem in the present invention requires the support of multiple other subsystems. The automatic deployment subsystem calls the services of other subsystems through the REST API to complete the entire automatic deployment function. Mainly involved are the image service subsystem, the data unit subsystem and the container orchestration subsystem. The deployment of the application first provides an image of the environment built by the source code. The subsequent deployment requires the image of the application running environment, and the application deployment image is generated based on the image. The steps in many processes require the image management service in the image service subsystem to support. After the application image is built, it needs to be uploaded to the image warehouse, and the management of the application image warehouse is also provided by the image service subsystem. The final deployment of the business system is completed by the core subsystem container orchestration system in the platform.
[0019] The rapid opening platform (i.e., container cloud platform) in the present invention involves many basic resources, including multiple virtual machines or physical machines. The container cloud platform adopts a multi-cluster deployment solution, such as Figure 2As shown in the figure, this figure reveals the component distribution of the application automation deployment system. All resources managed by the container cloud platform are divided into upper-level clusters and lower-level clusters. The upper-level cluster is unique, and there can be multiple lower-level clusters. The upper-level cluster is where the core components of the automation deployment system and even the entire platform run, and the lower-level cluster is where the user's applications and services run. Isolating users from system resources ensures the efficient operation of system components on the one hand, and better ensures the security of the system on the other hand, preventing users' malicious operations from threatening the security of system components. At the same time, this also makes it easier to manage multiple clusters. The upper-level cluster has a master node resource pool and a slave node resource pool, and the lower-level cluster has a working node resource pool. The logical architecture design diagram of the system of the present invention is as follows: Figure 3 As shown. After the user edits an automated deployment task on the container cloud platform interface, the execution of the task will call the system interface, first perform a series of data verifications, then persist the data in the database, and then initiate a request to the master node in the system. The master node runs in the Pod, the smallest scheduling unit in the cluster, and exposes services to the cluster. The Master component interface provides the functions of creating, configuring, executing, and deleting automated deployment tasks. The Master data uses the PVC (Persistent Volume Claim) provided by the Kubernetes cluster to mount the storage volume, and the storage service type used is the platform default NFS (Network File System).
[0020] When executing automated deployment tasks, the Master starts a slave Pod under a specific partition in the upper cluster through a template pre-defined by the system. The container started by the slave Pod is based on the image of the compilation environment as a template, so the corresponding compilation commands can be executed in the container. If custom dependencies are set, the Pod uses PVC to mount the corresponding storage volume. These reused dependencies are stored in the NFS system for automatic mounting. The Master transfers the steps that need to be run in the deployment task to the slave Pod for execution, including code checkout / compilation, code static scanning, unit testing, image building, deployment and upgrade, etc. Code can be pulled and built in the slave Pod, and unit testing can also be performed together. The specific operations need to be compared with the corresponding generated rules. When the slave Pod starts, it first needs to go to the Harbor warehouse to pull the image of the compilation environment. When the slave Pod is running, the command to pull the code is executed in the container, and the relevant code compilation commands are executed. The image building step uses the docker daemon of the host machine where the slave Pod runs to build the image, and then upload it to the Harbor warehouse. The application deployment step deploys the application to the lower-level cluster, mainly by calling the Kubernetes API. Before calling the interface, you need to set the container template and some rules related to application release and container orchestration. The running results of the above steps will be sent back to the Master, and the platform will call the interface at intervals to obtain the current execution status, so that the platform can display the execution status of the current task in real time. The slave Pod will terminate and release resources after all steps are executed.
[0021] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. At the same time, the above description should be understandable and implementable for those with ordinary knowledge in the relevant technical field. Therefore, other equivalent changes or modifications that do not deviate from the concepts disclosed in the present invention should be included in the scope of protection of the present invention.
Claims
1. A container cloud platform system, characterized in that: It includes: A container cloud management module, which is used to perform automated deployment, elastic scaling, and fault recovery of containers; A data unit management module, wherein the data unit management module is used to separate the application program from the data; A monitoring and alarm management module, wherein the monitoring and alarm management module is used to monitor the running status of the application in real time; An automated build and deployment module, which is used to quickly build and release container images.
2. The container cloud platform system according to claim 1, characterized in that: The container cloud management module includes an image service subsystem, a container orchestration subsystem and an authentication subsystem, the data unit management module includes a data unit subsystem, the monitoring and alarm management module includes a monitoring subsystem and an alarm subsystem; the automated build and deployment module includes an automatic deployment subsystem; the image service subsystem, container orchestration subsystem, authentication subsystem, data unit subsystem, monitoring subsystem, alarm subsystem and automatic deployment subsystem communicate independently with each other through a REST API.
3. The container cloud platform system according to claim 2, characterized in that: The image service subsystem is used to provide image warehouse management services and manage the images in the platform; the data unit subsystem is used to package, push, inject and refill the data required by the business system; The authentication subsystem is used to provide user authentication, interface authentication and data authentication services; the container orchestration subsystem is used to manage infrastructure, cluster resources, applications, services, container resource objects, and templates and configuration information; the monitoring subsystem is used to provide monitoring services for applications within the platform; the alarm subsystem is used to provide alarm notification services; The automatic deployment subsystem is used to provide continuous integration and automatic deployment services for applications.
4. The container cloud platform system according to claim 2 or 3, characterized in that: The automatic deployment subsystem calls the services of the image service subsystem, container orchestration subsystem, authentication subsystem, data unit subsystem, monitoring subsystem and alarm subsystem through a REST API to complete the automatic deployment.
5. The container cloud platform system according to claim 1, characterized in that: The container cloud platform system also includes multiple virtual machines or physical machines, which are deployed in a multi-cluster manner.
6. The container cloud platform system according to claim 5, characterized in that: The container cloud platform system is used to manage resources, which include an upper-layer cluster and multiple lower-layer clusters that cooperate with each other. The upper-layer cluster is where the automated deployment system and the core components of the entire platform run, and the lower-layer cluster is where the user's applications and services run.
7. The container cloud platform system according to claim 5, characterized in that: The upper cluster has a master node resource pool and a slave node resource pool, and the lower cluster has a working node resource pool.
