Software installation method, device, equipment and storage medium

By using a control machine to obtain the integrated installation package and control the installation of components and software on the device within the target cluster of the private cloud product, the security and efficiency issues caused by the reliance on the external network for cluster installation are resolved, achieving efficient and secure offline installation.

CN114579146BActive Publication Date: 2026-11-20BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210169487.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2026-11-20
Estimated Expiration
2042-02-18

AI Technical Summary

Technical Problem

In existing technologies, the installation of private cloud products relies on the external network, which exposes the cluster to the public network, increasing the risk of attacks. Furthermore, the installation process depends on network conditions and is inefficient.

Method used

When the target cluster is not connected to the external network, the integrated installation package, including target components and dependency information, is obtained through the control machine. Multiple devices are controlled to install the target components and software to be installed. Proxy tools are used for parallel or streaming transmission to achieve offline installation.

Benefits of technology

It improves the installation efficiency and security of the cluster, reduces the workload of operation and maintenance personnel, ensures that the installation process does not depend on the external network conditions, avoids exposing the cluster to the external network, and enhances security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579146B_ABST
    Figure CN114579146B_ABST
Patent Text Reader

Abstract

The present disclosure provides a software installation method, device, equipment and storage medium. It relates to the field of artificial intelligence technology, specifically to the field of cloud computing such as container cluster delivery, installation and deployment. The specific implementation scheme is: in the case that the target cluster is not connected to the external network, an integrated installation package is obtained by a control machine of the target cluster, wherein the control machine is one of the plurality of devices included in the target cluster, the integrated installation package includes target components and first dependency information of the target components, and to-be-installed software and second dependency information of the to-be-installed software; the control machine controls other devices in the plurality of devices to install the target components based on the first dependency information, and to install the to-be-installed software based on the second dependency information. According to the technical scheme of the present disclosure, the installation efficiency and security of the target cluster can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence technology, and further to cloud computing fields such as container cluster delivery, installation and deployment, specifically to a software installation method, apparatus, device and storage medium. Background Technology

[0002] Some clusters are capable of autonomously managing containers to ensure that containers in the cloud platform run as users expect. Because they support automated deployment, large-scale scalability, and application containerization management, many users deploy their businesses on these clusters.

[0003] When delivering private cloud products, it is necessary to first install the delivery platform (including the cluster environment and middleware services) for this type of cluster (such as a Kubernetes cluster, or K8S cluster for short). Related technologies rely on the external network to install this delivery platform, but this method exposes the cluster installation to the public internet, increasing the risk of cluster attacks. Summary of the Invention

[0004] This disclosure provides a software installation method, apparatus, device, and storage medium.

[0005] According to a first aspect of this disclosure, a software installation method is provided, comprising:

[0006] When the target cluster is not connected to the external network, the integrated installation package is obtained through the control machine of the target cluster. The control machine is one of the multiple devices included in the target cluster. The integrated installation package includes the target component and its first dependency information, as well as the software to be installed and its second dependency information.

[0007] The controller controls other devices among multiple devices to install the target component based on the first dependency information, and to install the software to be installed based on the second dependency information.

[0008] According to a second aspect of this disclosure, a software installation apparatus is provided, comprising:

[0009] The acquisition module is used to acquire the integrated installation package through the control machine of the target cluster when the target cluster is not connected to the external network. The control machine is one of the multiple devices included in the target cluster. The integrated installation package includes the target component and its first dependency information, as well as the software to be installed and its second dependency information.

[0010] The control module is used to control other devices among multiple devices to install the target component based on the first dependency information and to install the software to be installed based on the second dependency information.

[0011] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0012] At least one processor; and

[0013] The memory is communicatively connected to the at least one processor; wherein,

[0014] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method provided in the first aspect above.

[0015] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method provided in the first aspect above.

[0016] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the method provided in the first aspect described above.

[0017] The embodiments disclosed herein can improve the installation efficiency and security of the target cluster.

[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0019] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0020] Figure 1 This is a flowchart illustrating the installation method according to an embodiment of the present disclosure;

[0021] Figure 2 This is a schematic diagram illustrating the relationship between multiple devices in a target cluster according to an embodiment of the present disclosure;

[0022] Figure 3 This is a schematic diagram of the composition of an installation apparatus according to an embodiment of the present disclosure. Figure 1 ;

[0023] Figure 4 This is a schematic diagram of the composition of an installation apparatus according to an embodiment of the present disclosure. Figure 2 ;

[0024] Figure 5 This is a block diagram of an electronic device used to implement the installation method of the embodiments of this disclosure. Detailed Implementation

[0025] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0026] The terms "first," "second," and "third," etc., used in the embodiments, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, such as including a series of steps or units. A method, system, product, or apparatus is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0027] As described in the background section, service providers typically install the software corresponding to each service on the user's side. However, this software must run on a delivery platform. Private cloud product delivery requires a basic cluster environment (i.e., the delivery platform), plus the service provider's own middleware services (databases, caching, file services, etc.). These middleware services are required by other upper-layer software. This basic cluster environment and middleware services are called the delivery platform. Related technologies rely on the external network to install this delivery platform, but this exposes the cluster installation to the public internet, increasing the risk of attacks.

[0028] To at least partially solve one or more of the above-mentioned problems and other potential problems, this disclosure proposes a software installation method. The technical solution of the embodiments of this disclosure can realize offline installation of the target cluster, which greatly reduces the installation time, improves the installation efficiency, reduces the workload of operation and maintenance personnel, is independent of network conditions, is stable and reliable, and has high security.

[0029] This disclosure provides a software installation method that can be applied to electronic devices, including but not limited to fixed devices and / or mobile devices, where the electronic device is a cluster management platform. Figure 1 As shown, the software installation method includes:

[0030] S101: When the target cluster is not connected to the external network, obtain the integrated installation package through the control machine of the target cluster. The control machine is one of the multiple devices included in the target cluster. The integrated installation package includes the target component and the first dependency information of the target component, as well as the software to be installed and the second dependency information of the software to be installed.

[0031] S102: Control other devices among multiple devices to install the target component based on the first dependency information and to install the software to be installed based on the second dependency information.

[0032] Here, the target cluster is the cluster to be installed. This target cluster can be a cluster delivered by a private cloud, such as a cluster built on Kubernetes (K8S), a cluster built on an open-source distributed resource management framework (e.g., the open-source distributed resource management framework Mesos) and an application testing tool (e.g., the application testing tool Marathon), etc.

[0033] K8S is a container cluster management platform based on a cluster manager. It provides unified management of underlying host, network and storage resources based on container technology. It provides functions such as application deployment, maintenance and expansion mechanisms. K8S can be used to easily manage containerized applications running across machines.

[0034] In this embodiment of the disclosure, the multiple devices of the target cluster are user-side devices (also referred to as machines), which may be bare metal, physical machines, virtual machines, etc.

[0035] In this embodiment of the disclosure, multiple devices in the target cluster do not need to be connected to the external network, but these multiple devices are interconnected, at least the device acting as the controller among them is interconnected with other devices. All devices are located within the same internal local area network.

[0036] Here, the target component is the component corresponding to the target cluster. For example, when the target cluster is a Kubernetes cluster, the target component is a Kubernetes component.

[0037] It should be noted that this disclosure does not limit the number of target components. A target component can be a single component or multiple components.

[0038] In this embodiment, the first dependency information refers to the necessary information required to install the target component, excluding the component installation package. The first dependency information includes, but is not limited to, dependencies on the operating system, dependencies on requirements, dependencies on maintainability, and dependencies on interfaces such as middleware services (databases, caches, file services, etc.). Furthermore, the sources of dependencies between modules include data references or function calls. The first dependency information can exist in the form of code, interfaces, or files.

[0039] In this embodiment of the disclosure, the second dependency information refers to the necessary information required for installing the software, excluding component installation packages. The second dependency information includes, but is not limited to, dependencies on the operating system, dependencies on requirements, dependencies on maintainability, and dependencies on interfaces such as middleware services (databases, caches, file services, etc.). The second dependency information can exist in the form of code, interfaces, or files.

[0040] In some implementations, N target components correspond to M first dependency information; the values ​​of N and M can be the same or different. That is, when N > M, different target components can correspond to the same first dependency information; when N < M, one target component can correspond to multiple first dependency information; when N = M, one target component corresponds to one first dependency information.

[0041] It should be noted that each first dependency information may include one type of dependency information or a combination of multiple dependency information. This disclosure does not impose mandatory limitations on the number of dependency types included in the first dependency information or the number of files included in each type of dependency.

[0042] It should be noted that this disclosure does not limit the number of software programs to be installed. There may be one or more software programs to be installed.

[0043] In this embodiment of the disclosure, the source of the software to be installed is not limited.

[0044] In some implementations, P software programs to be installed correspond to Q pieces of second dependency information; the values ​​of P and Q can be the same or different. That is, when P > Q, different software programs to be installed can correspond to the same second dependency information; when P < Q, one software program to be installed can correspond to multiple pieces of second dependency information; when P = Q, one software program to be installed corresponds to one piece of second dependency information.

[0045] It should be noted that each second dependency information may include one type of dependency information or a combination of multiple dependency information. This disclosure does not impose mandatory limitations on the number of dependency types included in the second dependency information or the number of files included in each type of dependency.

[0046] In this embodiment, the integration method of the integrated installation package is not limited. The integrated installation package can be stored on storage devices such as USB flash drives, external hard drives, and memory cards.

[0047] In some implementations, the control machine of the target cluster obtains the integration installation package via a storage device. For example, operations personnel deliver the integration installation package to the user side via a storage device, which carries the integration installation package.

[0048] In this way, there is no need to rely on the external network to obtain the integration installation package, avoiding exposing the target cluster to the external network and improving the speed of obtaining the integration installation package.

[0049] The software installation method described above is suitable for applications with high requirements for installation security and / or speed. For example, cluster installation in the context of private cloud product delivery.

[0050] The technical solution described in this disclosure allows the control unit to acquire the integrated installation package without connecting to the external network. This not only enables the installation of the target cluster without relying on the external network conditions, but also ensures that the target cluster is not exposed to the external network during the entire installation process, reducing the risk of attack on the target cluster and improving its security. In addition, since the integrated installation package includes the target components and their first dependency information, as well as the software to be installed and its second dependency information, it provides basic data for installing the target components and the software to be installed, ensuring reliable installation of the target components and the software to be installed and improving the installation efficiency of the target cluster.

[0051] In some embodiments, the software installation method described above may further include: determining target configuration information; the target configuration information includes at least one of the following information for each of a plurality of devices: Internet Protocol (IP) address information, network scheme, storage scheme, and software information to be installed; and configuring the plurality of devices based on the target configuration information.

[0052] The network solutions include, but are not limited to, Kaspersky Internet Security Solutions (KICS) and the Flink architecture. This disclosure does not limit the specific types of network solutions, and will not list them all here.

[0053] The storage solutions include, but are not limited to, storage architecture and storage location. This disclosure does not limit the specific types of storage solutions, and will not list them all here.

[0054] Among multiple devices, the software that needs to be installed on different devices can be the same or different.

[0055] For example, the target cluster includes n devices, denoted as device 1, device 2, ..., device n, and the integrated installation package includes k software programs, denoted as software 1, software 2, ..., software k. Device 1 needs to install software 1, software 3, software 4, and software 5; device 2 needs to install software 5 and software 6; device 3 needs to install software 8, software 9, and software 12; and device n needs to install software 1, software 2, ..., software k-1, and software k.

[0056] The above technical solution can prepare for offline installation of the target cluster. After configuring multiple devices based on the target configuration information, it is easy to perform offline installation and deployment with one click, thereby helping to improve the overall installation efficiency of the target cluster and reduce the workload of operation and maintenance personnel.

[0057] In some embodiments, the above software installation method may further include:

[0058] Install a proxy tool on each of the multiple devices. This proxy tool is used to enable communication between the multiple devices.

[0059] Here, the Ansible agent is an operations and maintenance tool. Multiple devices can communicate with each other through the agent and execute various commands, such as sending files, sending configuration information, installing packages, and uninstalling packages.

[0060] In some implementations, the proxy tool is a framework that can remotely execute commands, based on a general remote method invocation tool such as Google Remote Procedure Call (GRPC).

[0061] The above technical solution provides an installation basis for the control unit to control the installation of target components and software on other devices.

[0062] In some embodiments, controlling other devices among a plurality of devices to install a target component based on first dependency information via a controller includes:

[0063] The target component and first dependency information are sent to the agent tools of other devices through the agent tool of the control machine;

[0064] The controller sends a first installation command to the agent tools of other devices, which instructs the other devices to install the target component based on the first dependency information.

[0065] In some implementations, the target component and first dependency information are sent from the controller's agent tool to the agent tools of other devices, including:

[0066] The control machine's agent tool sends the target component and first dependency information to the agent tools of other devices in a parallel manner;

[0067] The controller's agent tool sends a first installation command to the agent tools of other devices in a parallel manner. The first installation command is used to instruct other devices to install the target component based on the first dependency information.

[0068] Here, parallel processing refers to the controller's agent tool simultaneously transmitting data to various devices in other devices. For example, the controller's agent tool might simultaneously transmit target components to various devices in other devices. Another example is the controller's agent tool simultaneously transmitting initial dependency information to various devices in other devices. Yet another example is the controller's agent tool simultaneously transmitting initial installation instructions to various devices in other devices.

[0069] In this way, the agent tool of the control machine sends the target component and the first dependency information and the first installation command to the agent tools of other devices in a parallel manner, which can save transmission time and make it easier for other devices to receive the target component and the first dependency information and the first installation command in the same time period, thereby helping to improve the installation rate of the target cluster.

[0070] In some implementations, the target component and first dependency information are sent from the controller's agent tool to the agent tools of other devices, including:

[0071] The agent tool of the control machine sends the target component and the first dependency information to the agent tools of other devices using a streaming method;

[0072] The controller's agent tool sends a first installation command to the agent tools of other devices using a streaming method. The first installation command is used to instruct other devices to install the target component based on the first dependency information.

[0073] Here, streaming transmission refers to the controller's agent tool sequentially transmitting data to each of the other devices. For example, the controller's agent tool might simultaneously transmit the target component to each of the other devices sequentially. Another example is the controller's agent tool sequentially transmitting initial dependency information to each of the other devices sequentially. Yet another example is the controller's agent tool sequentially transmitting initial installation instructions to each of the other devices sequentially.

[0074] In this way, the agent tool of the control machine sends the target component, the first dependency information, and the first installation instruction to the agent tools of other devices using a streaming transmission method, which can improve the transmission rate and make it easier for one of the other devices to start installing the target component as soon as it receives the target component, the first dependency information, and the first installation instruction, thereby helping to improve the installation rate of a single device.

[0075] The above technical solution enables the installation of target components on other devices among multiple devices through a control unit without connecting to an external network.

[0076] In some embodiments, installing the software to be installed based on the second dependency information includes:

[0077] The agent tool of the control machine sends the software to be installed and the second dependency information to the agent tools of other devices;

[0078] The controller sends a second installation command to the agent tools of other devices, which instructs the other devices to install the software to be installed based on the second dependency information.

[0079] In some implementations, the software to be installed and secondary dependency information are sent from the controller's agent tool to the agent tools of other devices, including:

[0080] The control machine's agent tool sends the software to be installed and the second dependency information to the agent tools of other devices in a parallel manner;

[0081] The control machine's agent tool sends a second installation command to the agent tools of other devices in a parallel manner. The second installation command is used to instruct other devices to install the software to be installed based on the second dependency information.

[0082] Here, parallel processing refers to the controller's agent tool simultaneously transmitting data to various devices in other devices. For example, the controller's agent tool might simultaneously transmit software to be installed to various devices in other devices. Another example is the controller's agent tool simultaneously transmitting second dependency information to various devices in other devices. Yet another example is the controller's agent tool simultaneously transmitting second installation instructions to various devices in other devices.

[0083] In this way, the agent tool of the control machine sends the software to be installed, the second dependency information, and the second installation instructions to the agent tools of other devices in a parallel manner, which can save transmission time and make it easier for other devices to receive the software to be installed, the second dependency information, and the second installation instructions in the same time period, thereby helping to improve the installation rate of software on each device in the target cluster.

[0084] In some implementations, the software to be installed and secondary dependency information are sent from the controller's agent tool to the agent tools of other devices, including:

[0085] The agent tool of the control machine sends the software to be installed and the second dependency information to the agent tools of other devices in a streaming manner;

[0086] The controller's agent tool sends a second installation command to the agent tools of other devices using a streaming method. The second installation command is used to instruct other devices to install the software to be installed based on the second dependency information.

[0087] Here, streaming transmission refers to the controller's agent tool sequentially transmitting data to each of the other devices. For example, the controller's agent tool might simultaneously transmit the software to be installed to each of the other devices sequentially. Another example is the controller's agent tool sequentially transmitting second dependency information to each of the other devices sequentially. Yet another example is the controller's agent tool sequentially transmitting second installation instructions to each of the other devices sequentially.

[0088] In this way, the agent tool of the control unit sends the software to be installed, the second dependency information, and the second installation instructions to the agent tools of other devices using a streaming transmission method. This can improve the transmission rate and make it easier for other devices to start installing the target components as soon as they receive the software to be installed, the second dependency information, and the second installation instructions, thereby helping to improve the installation rate of software installation on a single device.

[0089] Using the above technical solution, without connecting to the external network, the control unit can control other devices among multiple devices to install the software to be installed.

[0090] Figure 2 The diagram illustrates the relationship between n devices in the target cluster. Device 1 in the target cluster is selected as the controller. Device 1 sends the target component and its first dependency information, the software to be installed and its second dependency information to devices 2, 3, ..., n. Device 1 controls devices 2, 3, ..., n to install the target component and the software to be installed.

[0091] Taking a Kubernetes (K8S) cluster and K8S components as examples, this section explains how to achieve offline installation of the target cluster. One device is selected from multiple devices in the K8S cluster as the control machine. Without connecting to the external network, the control machine obtains an integrated installation package, which includes the K8S components and the software to be installed. Furthermore, the control machine controls other devices in the K8S cluster to install the K8S components and the software to be installed. Since the integrated installation package includes the K8S components and their first dependencies, and the software to be installed and its second dependencies, it is no longer necessary to rely on the external network to obtain these. This allows for the rapid installation of the K8S cluster's delivery base (i.e., K8S components and middleware services), improving the installation efficiency of the K8S cluster and reducing the workload of maintenance personnel. Additionally, by obtaining the integrated installation package without connecting to the external network, the control machine not only enables the installation of the K8S cluster without relying on external network conditions but also ensures that the K8S cluster is not exposed to the external network during the entire installation process, reducing the risk of attacks and improving the security of the K8S cluster.

[0092] This disclosure provides a software installation apparatus, such as... Figure 3 As shown, the software installation device may include:

[0093] The acquisition module 310 is used to acquire the integrated installation package through the control machine of the target cluster when the target cluster is not connected to the external network. The control machine is one of the multiple devices included in the target cluster. The integrated installation package includes the target component and the first dependency information of the target component, the software to be installed and the second dependency information of the software to be installed.

[0094] The control module 320 is used to control other devices among multiple devices to install the target component based on the first dependency information and to install the software to be installed based on the second dependency information.

[0095] In some embodiments, such as Figure 4 As shown, the above-mentioned software installation device may further include:

[0096] The determination module 330 is used to determine the target configuration information; the target configuration information includes at least one of the following information for each of the multiple devices: IP address information, network scheme, storage scheme, and software information to be installed;

[0097] Configuration module 340 is used to configure multiple devices based on target configuration information.

[0098] In some embodiments, such as Figure 4 As shown, the above-mentioned software installation device may further include:

[0099] The configuration module 350 is used to install agent tools on multiple devices, and the agent tools are used to enable communication between the multiple devices.

[0100] In some embodiments, the control module 320 is specifically used for:

[0101] The target component and first dependency information are sent to the agent tools of other devices through the agent tool of the control machine;

[0102] The controller sends a first installation command to the agent tools of other devices, which instructs the other devices to install the target component based on the first dependency information.

[0103] In some embodiments, the control module 320 is specifically used for:

[0104] The agent tool of the control machine sends the software to be installed and the second dependency information to the agent tools of other devices;

[0105] The controller sends a second installation command to the agent tools of other devices, which instructs the other devices to install the software to be installed based on the second dependency information.

[0106] Those skilled in the art should understand that the functions of each processing module in the software installation apparatus of this disclosure can be understood with reference to the relevant description of the foregoing software installation method. Each processing module in the software installation apparatus of this disclosure can be implemented by an analog circuit that implements the functions described in the embodiments of this disclosure, or it can be implemented by running software that performs the functions described in the embodiments of this disclosure on an electronic device.

[0107] The software installation apparatus of this disclosure can improve the installation efficiency and security of the target cluster.

[0108] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0109] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0110] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0111] like Figure 5 As shown, device 500 includes a computing unit 501, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 502 or a computer program loaded from storage unit 508 into random access memory (RAM) 503. RAM 503 may also store various programs and data required for the operation of device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. Input / output (I / O) interface 505 is also connected to bus 504.

[0112] Multiple components in device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0113] The computing unit 501 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as software installation methods. For example, in some embodiments, the software installation method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed onto device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the software installation method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform a software installation method by any other suitable means (e.g., by means of firmware).

[0114] Various embodiments of the systems and techniques described above herein 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), systems-on-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0116] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (EPROM), flash memory, optical fiber, compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) or liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, 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 sound input, voice input, or tactile input).

[0118] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend 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 technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0119] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0120] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0121] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A software installation method for delivering to a target cluster in an offline environment, wherein, The target cluster is a Kubernetes-based private cloud cluster to be built, and the method includes: When the target cluster is not connected to the external network, an integrated installation package is obtained through the control machine of the target cluster. The control machine is one of multiple devices included in the target cluster. The integrated installation package includes a target component and its first dependency information, as well as software to be installed and its second dependency information. The target component includes a cluster delivery base component. The first dependency information includes middleware service dependencies. The first dependency information is necessary information for installing the target component, excluding the component installation package, and includes at least one of the following: operating system dependencies, requirement dependencies, maintainability dependencies, and interface dependencies. The second dependency information is necessary information for installing the software to be installed, excluding the software installation package, and includes at least one of the following: operating system dependencies, requirement dependencies, maintainability dependencies, and interface dependencies. The first and second dependency information each independently include middleware service dependencies, which include at least one of database, cache, and file services. Install proxy tools on the plurality of devices respectively; the proxy tools are used for communication between the plurality of devices. The controller sends the target component, the first dependency information, and the first installation instruction to the agent tools of other devices among the plurality of devices, so as to instruct the other devices to install the target component based on the first dependency information and build a foundation in the target cluster. After the base is constructed, the agent tool of the control machine sends the software to be installed, the second dependency information, and the second installation instruction to the agent tools of other devices, so as to instruct the other devices to install the software to be installed on the base based on the second dependency information; wherein, the agent tool sends the target component, the first dependency information, the software to be installed, and the second dependency information based on streaming or parallel transmission.

2. The method according to claim 1, further comprising: Determine the target configuration information; the target configuration information includes at least one of the following information for each of the plurality of devices: Internet Protocol (IP) address information, network scheme, storage scheme, and software information to be installed; The configuration of the multiple devices is completed based on the target configuration information.

3. A software installation apparatus for delivering to a target cluster in an offline environment, wherein, The target cluster is a Kubernetes-based private cloud cluster to be built, and the device includes: The acquisition module is used to acquire an integrated installation package through the control machine of the target cluster when the target cluster is not connected to the external network. The control machine is one of multiple devices included in the target cluster. The integrated installation package includes a target component and its first dependency information, as well as software to be installed and its second dependency information. The target component includes a cluster delivery base component. The first dependency information includes middleware service dependencies. The first dependency information is necessary information for installing the target component, excluding the component installation package, and includes at least one of the following: operating system dependencies, requirement dependencies, maintainability dependencies, and interface dependencies. The second dependency information is necessary information for installing the software to be installed, excluding the software installation package, and includes at least one of the following: operating system dependencies, requirement dependencies, maintainability dependencies, and interface dependencies. The first and second dependency information each independently include middleware service dependencies, which include at least one of database, cache, and file services. A configuration module is used to install proxy tools on the multiple devices respectively, and the proxy tools are used for communication between the multiple devices; The control module is used to send the target component, the first dependency information, and the first installation instruction to the agent tools of other devices among the plurality of devices through the agent tool of the control machine, so as to instruct the other devices to install the target component based on the first dependency information and build a base in the target cluster; The control module is further configured to: after the base is constructed, send the software to be installed, the second dependency information, and the second installation instruction to the agent tool of the other device through the agent tool of the control machine, so as to instruct the other device to install the software to be installed on the base based on the second dependency information; wherein, the agent tool sends the target component, the first dependency information, the software to be installed, and the second dependency information based on streaming transmission or parallel transmission.

4. The apparatus according to claim 3, further comprising: A determination module is used to determine target configuration information; the target configuration information includes at least one of the following information for each of the plurality of devices: Internet Protocol (IP) address information, network scheme, storage scheme, and software information to be installed; The configuration module is used to configure the multiple devices based on the target configuration information.

5. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-2.

6. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-2.

7. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-2.

Citation Information

Patent Citations

  • Automatic cloud computing deployment system and method thereof

    CN106713379A

  • Software installation method and device

    CN111198694A