Container resource management capability providing method and device, equipment, medium and product

By obtaining and passing in container resource configuration files, the problem of lack of flexibility in resource management in continuous delivery tools is solved, and visual management of container resources and flexibility in operation and maintenance operations are achieved.

CN120704729APending Publication Date: 2025-09-26INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510802393.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-16
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The resource management method in continuous delivery tools lacks flexibility, and operations personnel cannot effectively manage container resources in the cluster.

Method used

By calling the interface of the continuous delivery tool, the container resource configuration file is obtained, the management platform information is extracted, and it is passed to the associated container management platform to provide a container resource management interface and enhance the flexibility of operation and maintenance operations.

Benefits of technology

It realizes the visual management of container resources and the flexibility of operation and maintenance operations, improving the efficiency and flexibility of operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704729A_ABST
    Figure CN120704729A_ABST
Patent Text Reader

Abstract

The invention discloses a container resource management capability providing method and device, equipment, a medium and a product. The container resource management capability providing method comprises the following steps: in response to a continuous delivery instruction initiated by a user, acquiring a container resource configuration file by calling a continuous delivery function interface provided by a continuous delivery tool; the container resource configuration file comprises management platform information of a container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is in a closed state; and extracting management platform information from the container resource configuration file, and transmitting the container resource configuration file to a container management platform associated with the management platform information to indicate the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file. According to the technical scheme, the operation and maintenance function of the container management platform can be used, and the operation and maintenance operation flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and in particular to a method, apparatus, device, and storage medium for providing container resource management capabilities. Background Art

[0002] Continuous delivery tools are usually centered around a distributed version control system. After developers submit application code and infrastructure configurations through the distributed version control system, the continuous integration and continuous delivery processes are triggered to build application images and update the application status on the cluster.

[0003] Since continuous delivery tools use distributed version control systems as the only trusted source, operations and maintenance personnel can only manage resources in the cluster by modifying configuration files in the distributed version control system, which lacks flexibility. Summary of the Invention

[0004] The present invention provides a method, apparatus, device, medium and product for providing container resource management capabilities, so as to solve the problem of lack of flexibility in resource management in a cluster.

[0005] According to one aspect of the present invention, a method for providing container resource management capabilities is provided, comprising:

[0006] In response to a continuous delivery instruction initiated by a user, the container resource configuration file is obtained by calling the continuous delivery function interface provided by the continuous delivery tool;

[0007] The container resource configuration file includes management platform information of the container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is in a closed state;

[0008] The management platform information is extracted from the container resource configuration file, and the container resource configuration file is transmitted to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

[0009] According to another aspect of the present invention, a container resource management capability providing device is provided, comprising:

[0010] A configuration file acquisition module is used to obtain a container resource configuration file by calling a continuous delivery function interface provided by a continuous delivery tool in response to a user-initiated continuous delivery instruction;

[0011] The container resource configuration file includes management platform information of the container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is in a closed state;

[0012] A configuration file synchronization module is used to extract management platform information from the container resource configuration file and transmit the container resource configuration file to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

[0013] According to another aspect of the present invention, an electronic device is provided, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the container resource management capability providing method according to any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the container resource management capability providing method according to any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the computer program implements the container resource management capability providing method according to any embodiment of the present disclosure.

[0019] The technical solution of an embodiment of the present invention is to obtain a container resource configuration file in response to a user initiating a continuous delivery instruction by calling a continuous delivery function interface provided by a continuous delivery tool, wherein the container resource configuration file includes management platform information of the container management platform and container resource configuration information, and the automatic synchronization function of the continuous delivery tool is in a closed state. The management platform information is extracted from the container resource configuration file, and the container resource configuration file is transmitted to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file, so as to effectively use the operation and maintenance functions of the container management platform and increase the flexibility of operation and maintenance operations.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 This is a flowchart of a method for providing container resource management capabilities according to Embodiment 1 of the present invention;

[0023] Figure 2 This is a flowchart of a method for providing container resource management capabilities according to Embodiment 2 of the present invention;

[0024] Figure 3 This is a structural diagram of a container resource management capability providing device according to a third embodiment of the present invention;

[0025] Figure 4 It is a structural diagram of an electronic device that implements the container resource management capability providing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solutions of 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 of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Example 1

[0029] Figure 1A flowchart of a method for providing container resource management capabilities is provided for the first embodiment of the present invention. This embodiment is applicable to the case where container resource management capabilities are provided through an available container management platform. The method can be executed by a container resource management capability providing device. The container resource management capability providing device can be implemented in the form of hardware and / or software. The container resource management capability providing device can be configured in various general-purpose computing devices. Figure 1 As shown, the method includes:

[0030] S110. In response to a continuous delivery instruction initiated by a user, a container resource configuration file is obtained by calling a continuous delivery function interface provided by a continuous delivery tool; the container resource configuration file includes management platform information of the container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is turned off.

[0031] Continuous delivery instructions are instructions for delivering application code, triggered by users using components of container-based task orchestration tools. Using a distributed version control system as the single source of truth, continuous delivery tools perform continuous integration, continuous delivery, and continuous deployment upon detecting when developers submit application code to the distributed version control system. Continuous delivery tools also provide continuous integration and continuous delivery interfaces, allowing users to trigger continuous integration and continuous delivery execution by calling these interfaces.

[0032] The container resource configuration file is a configuration file commonly used in the container orchestration system, which is used to provide declarative updates (rather than imperative updates) for the container collection in the container orchestration system. The container resource configuration file generally includes container resource configuration information, for example, the configuration and number of applications expected to be deployed, the number of replicas of the container collection (generally consistent with the number of applications expected to be deployed), and the environment variables of each container in the container collection. In an embodiment of the present invention, the container resource configuration file also includes the management platform information of the container management platform specified by the user for synchronizing the container resource files. Specifically, the management platform information includes the address of the container management platform, the calling interface, and the interface authentication information.

[0033] In an embodiment of the present invention, the automatic synchronization function of the continuous delivery tool is pre-disabled so that when the continuous delivery tool detects an inconsistency between the application version and the deployed version in the distributed version control system, it will not automatically pull and deploy the latest version. After detecting a continuous delivery instruction triggered by a user by calling a component of the task orchestration tool, the container resource configuration file is obtained by calling the continuous delivery function interface provided by the continuous delivery tool. The container resource configuration file includes management platform information of the container management platform and container resource configuration information.

[0034] S120: Extract management platform information from the container resource configuration file, and transmit the container resource configuration file to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

[0035] In an embodiment of the present invention, after obtaining a container resource configuration file, management platform information of the container management platform to be synchronized is obtained from the container resource configuration file. Furthermore, the container configuration file is transferred to the container management platform associated with the management platform information, so that the container management platform provides a container resource management interface based on the container resource configuration information in the container resource configuration file. This container resource management interface allows for a visual display of container resource operation information, allowing users to visually manage container resources, for example, by deleting or adding new container collections.

[0036] After the container resource configuration file is transferred to the container management platform associated with the management platform information, it also includes deploying the application to the cluster.

[0037] The technical solution of an embodiment of the present invention is to obtain a container resource configuration file in response to a user initiating a continuous delivery instruction by calling a continuous delivery function interface provided by a continuous delivery tool, wherein the container resource configuration file includes management platform information of the container management platform and container resource configuration information, and the automatic synchronization function of the continuous delivery tool is in a closed state. The management platform information is extracted from the container resource configuration file, and the container resource configuration file is transmitted to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file, so as to effectively use the operation and maintenance functions of the container management platform and increase the flexibility of operation and maintenance operations.

[0038] Example 2

[0039] Figure 2 This is a flowchart of a method for providing container resource management capabilities provided by the second embodiment of the present invention. This embodiment further refines the above embodiment and provides specific steps for obtaining a container resource configuration file by calling a continuous delivery function interface provided by a continuous delivery tool in response to a user-initiated continuous delivery instruction, specific steps before obtaining the container resource configuration file by calling the continuous delivery function interface provided by the continuous delivery tool, and specific steps after transferring the container resource configuration file to the container management platform associated with the management platform information. Figure 2 As shown, the method includes:

[0040] S210: Obtain application code and basic configuration files submitted by the user to the distributed version control system.

[0041] In the embodiment of the present invention, after completing the application coding, the user (developer) submits the application code and basic configuration files to the distributed version control system. The basic configuration files include container resource configuration files, stateful application management configuration files, and node monitoring configuration files.

[0042] S220: Pull the management platform information of the container management platform configured by the user through the continuous delivery tool, and add the management platform information to the container resource configuration file included in the basic configuration file.

[0043] In an embodiment of the present invention, the management platform information of the user-configured container management platform is pulled through a continuous delivery tool and added to the container resource configuration file included in the base configuration file. Specifically, the management platform information configured by the user based on the currently available container management platform is pulled through continuous delivery, and then the management platform information is added to the container resource configuration file included in the base configuration file, specifically, added to the tag field of the container resource configuration file. Users can flexibly configure the container management platform that provides container resource management capabilities based on the usage of the container management platform in the current period, thereby improving operation and maintenance flexibility.

[0044] S230: In response to a continuous integration instruction initiated by the user, a new application image is built based on the application code and the basic configuration file, and version information of the new application image is synchronized to the container resource configuration file.

[0045] In an embodiment of the present invention, after detecting a continuous integration instruction initiated by a user by calling a continuous integration function interface provided by a continuous delivery tool, a new application image is constructed based on the application code and the basic configuration file, and the new application image is stored in the image repository. At the same time, the version information of the new application image is synchronized to the container resource configuration file so that the image version in the container resource configuration file is consistent with the current actual image version.

[0046] S240: In response to a continuous delivery instruction initiated by a user, pull the actual configuration value associated with the environment variable in the container resource configuration file, and replace the placeholder of the corresponding environment variable in the container resource configuration file with the actual configuration value.

[0047] In an embodiment of the present invention, after detecting that a user initiates a continuous delivery instruction, the actual configuration value associated with the environment variable in the container resource configuration file is first pulled, and then the placeholder of the corresponding environment variable in the container resource configuration file is replaced with the actual configuration value.

[0048] S250: Synchronize components on the management platform and call the continuous delivery function interface provided by the continuous delivery tool to obtain the container resource configuration file.

[0049] In this embodiment of the present invention, after replacing the placeholders in the container resource configuration file with the actual configuration values ​​of the corresponding environment variables, the continuous delivery function interface provided by the continuous delivery tool is called through the management platform synchronization component to obtain the container resource configuration file. By disabling the automatic synchronization function of the continuous delivery tool, changing the continuous delivery tool's pull mode to push mode, and obtaining the container resource configuration file through the newly added management platform synchronization component, the container resource configuration file can be obtained without the developer's knowledge, facilitating the subsequent provision of container resource management capabilities.

[0050] S260: Extract management platform information from the container resource configuration file, and transmit the container resource configuration file to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

[0051] S270. The container management platform obtains the running information of the container resources in the cluster based on the container resource configuration information in the container resource configuration file, and visualizes the running information.

[0052] In an embodiment of the present invention, the container management platform obtains the operating information of the container resources in the cluster based on the container resource configuration information in the container resource configuration file, and visually displays the operating information. Specifically, the container management platform can obtain the container resource configuration information in the container resource configuration file, and based on the container resource configuration information, obtain the operating information of the container resources in the cluster, such as the load information of the container collection, and visually display the operating information of the container resources. Operations and maintenance personnel can intuitively see the operating information of the container resources in the container resource management interface, which facilitates the corresponding management of the container resources.

[0053] S280 : In response to a container resource management instruction initiated by the user based on the running information of the container resource in the container resource management interface provided by the container management platform, the number of replicas of the container set in the cluster is adjusted.

[0054] In this embodiment of the present invention, upon detecting a container resource management instruction initiated by a user based on the operational information of container resources in the container resource management interface provided by the container management platform, the number of replicas of the container set in the cluster is adjusted based on the container resource management instruction. Compared to the existing method of managing container resources by initiating commands in the container orchestration system, this embodiment of the present invention allows for visual operations in the container resource management interface provided by the container management platform, making emergency operation and maintenance operations more flexible.

[0055] In a specific example, when it is detected that a user initiates deletion of a container set running in a cluster based on the running information of the container resources in the container resource management interface provided by the container management platform, a deletion operation is performed on the corresponding container set.

[0056] In another specific example, when it is detected that a user initiates a new container set in the cluster based on the running information of the container resources in the container resource management interface provided by the container management platform, a new container set is created in the cluster for running the application.

[0057] S290: In response to a container resource tracing operation initiated by a user in a container resource management interface provided by the container management platform, obtain at least one item of container resource management operation information by searching a work log of the container management platform.

[0058] When using continuous delivery tools to continuously deliver and deploy applications, prior art requires tracing operations on container resources, requiring the container orchestration system to initiate commands to query historical O&M operations. In an embodiment of the present invention, the configuration traceability function provided by the continuous delivery tool can be leveraged. Upon detecting a container resource tracing operation initiated by a user in the container resource management interface provided by the container management platform, at least one container resource management operation can be retrieved by searching the container management platform's work logs, thereby visualizing the tracing information and improving problem location efficiency.

[0059] The technical solution of the embodiment of the present invention supports synchronizing container resource configuration information to different container management platforms by specifying the synchronized container management platform in a modified manner in the container resource configuration file, which is conducive to more refined management of applications and provides limited operation and maintenance capabilities to operation and maintenance personnel through the container management platform, making operation and maintenance operations more flexible.

[0060] Example 3

[0061] Figure 3 This is a structural diagram of a container resource management capability providing device provided by the third embodiment of the present invention. Figure 3 As shown, the device includes:

[0062] The configuration file acquisition module 310 is used to obtain the container resource configuration file by calling the continuous delivery function interface provided by the continuous delivery tool in response to the continuous delivery instruction initiated by the user;

[0063] The container resource configuration file includes management platform information of the container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is in a closed state;

[0064] The configuration file synchronization module 320 is used to extract the management platform information from the container resource configuration file and transmit the container resource configuration file to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

[0065] Optionally, the configuration file acquisition module 310 is specifically configured to:

[0066] In response to a user-initiated continuous delivery instruction, pulling actual configuration values ​​associated with environment variables in the container resource configuration file, and replacing placeholders of corresponding environment variables in the container resource configuration file with the actual configuration values;

[0067] The continuous delivery function interface provided by the continuous delivery tool is called through the management platform synchronization component to obtain the container resource configuration file.

[0068] Optionally, the container resource management capability providing device further includes:

[0069] The basic configuration file acquisition module obtains the application code and basic configuration file submitted by the user to the distributed version control system before obtaining the container resource configuration file by calling the continuous delivery function interface provided by the continuous delivery tool;

[0070] A management platform information adding module is used to pull the management platform information of the container management platform configured by the user through the continuous delivery tool, and add the management platform information to the container resource configuration file included in the basic configuration file;

[0071] The version information synchronization module is used to respond to a continuous integration instruction initiated by a user, build a new application image based on the application code and the basic configuration file, and synchronize the version information of the new application image to the container resource configuration file.

[0072] Optionally, the container resource management capability providing device further includes:

[0073] An operation information display module is used to obtain the operation information of the container resources in the cluster based on the container resource configuration information in the container resource configuration file after the container resource configuration file is transferred to the container management platform associated with the management platform information, and to visually display the operation information.

[0074] Optionally, the container resource management capability providing device further includes:

[0075] A replica number adjustment module is used to adjust the number of replicas of the container set in the cluster in response to a container resource management instruction initiated by the user based on the operation information of the container resource in the container resource management interface provided by the container management platform after the container resource configuration file is transferred to the container management platform associated with the management platform information.

[0076] Optionally, the container resource management capability providing device further includes:

[0077] A log query module is used to obtain at least one container resource management operation information by searching the container management platform work log after the container resource configuration file is transferred to the container management platform associated with the management platform information, in response to a container resource tracing operation initiated by a user in the container resource management interface provided by the container management platform.

[0078] The container resource management capability providing device provided in the embodiment of the present invention can execute the container resource management capability providing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0079] In the technical solution of the present invention, the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0080] Example 4

[0081] According to an embodiment of the present invention, the present invention further provides an electronic device, a readable storage medium and a computer program product.

[0082] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, appliances, blade appliances, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0083] like Figure 4As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0084] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0085] Processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 executes the various methods and processes described above, such as the container resource management capability provisioning method.

[0086] In some embodiments, the container resource management capability providing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the container resource management capability providing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the container resource management capability providing method in any other appropriate manner (e.g., via firmware).

[0087] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0088] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or application.

[0089] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0090] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0091] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data applier), or a computing system that includes middleware components (e.g., an application applier), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0092] A computing system may include clients and applications. These clients and applications are typically remote from each other and typically interact via a communication network. This client-application relationship is established by computer programs running on the respective computers, establishing a client-application relationship. The application can be a cloud application, also known as a cloud computing application or cloud host. This is a host product within a cloud computing application ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS applications.

[0093] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0094] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for providing container resource management capabilities, characterized in that: include: In response to a continuous delivery instruction initiated by a user, the container resource configuration file is obtained by calling the continuous delivery function interface provided by the continuous delivery tool; The container resource configuration file includes management platform information of the container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is in a closed state; The management platform information is extracted from the container resource configuration file, and the container resource configuration file is transmitted to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

2. The method according to claim 1, characterized in that In response to the user's continuous delivery instruction, the container resource configuration file is obtained by calling the continuous delivery function interface provided by the continuous delivery tool, including: In response to a user-initiated continuous delivery instruction, pulling actual configuration values ​​associated with environment variables in the container resource configuration file, and replacing placeholders of corresponding environment variables in the container resource configuration file with the actual configuration values; The continuous delivery function interface provided by the continuous delivery tool is called through the management platform synchronization component to obtain the container resource configuration file.

3. The method according to claim 1, characterized in that Before obtaining the container resource configuration file by calling the continuous delivery function interface provided by the continuous delivery tool, the following steps are also included: Obtain application code and basic configuration files submitted by users to the distributed version control system; Pulling the management platform information of the container management platform configured by the user through the continuous delivery tool, and adding the management platform information to the container resource configuration file included in the basic configuration file; In response to a continuous integration instruction initiated by a user, a new application image is constructed based on the application code and the basic configuration file, and version information of the new application image is synchronized to the container resource configuration file.

4. The method according to claim 1, wherein After the container resource configuration file is transferred to the container management platform associated with the management platform information, the method further includes: The container management platform obtains the running information of the container resources in the cluster based on the container resource configuration information in the container resource configuration file, and visually displays the running information.

5. The method according to claim 1, wherein After the container resource configuration file is transferred to the container management platform associated with the management platform information, the method further includes: In response to a container resource management instruction initiated by a user in a container resource management interface provided by the container management platform based on the running information of the container resources, the number of replicas of the container set in the cluster is adjusted.

6. The method according to claim 1, wherein After the container resource configuration file is transferred to the container management platform associated with the management platform information, the method further includes: In response to a container resource tracing operation initiated by a user in a container resource management interface provided by the container management platform, at least one item of container resource management operation information is obtained by searching a work log of the container management platform.

7. A container resource management capability providing device, characterized in that: include: A configuration file acquisition module is used to obtain a container resource configuration file by calling a continuous delivery function interface provided by a continuous delivery tool in response to a user-initiated continuous delivery instruction; The container resource configuration file includes management platform information of the container management platform and container resource configuration information; the automatic synchronization function of the continuous delivery tool is in a closed state; A configuration file synchronization module is used to extract management platform information from the container resource configuration file and transmit the container resource configuration file to the container management platform associated with the management platform information, so as to instruct the container management platform to provide a container resource management interface based on the container resource configuration information in the container resource configuration file.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to execute the container resource management capability providing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the container resource management capability providing method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the container resource management capability providing method according to any one of claims 1 to 6.