CN111736956B - Container service deployment method, device, equipment and readable storage medium - Google Patents

Container service deployment method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111736956B
CN111736956B CN202010605066.9A CN202010605066A CN111736956B CN 111736956 B CN111736956 B CN 111736956B CN 202010605066 A CN202010605066 A CN 202010605066A CN 111736956 B CN111736956 B CN 111736956B
Authority
CN
China
Prior art keywords
deployment
target
container
file
container service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010605066.9A
Other languages
Chinese (zh)
Other versions
CN111736956A (en
Inventor
武新超
胡玉鹏
亓开元
李红卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010605066.9A priority Critical patent/CN111736956B/en
Publication of CN111736956A publication Critical patent/CN111736956A/en
Application granted granted Critical
Publication of CN111736956B publication Critical patent/CN111736956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The invention discloses a container service deployment method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: constructing a mirror image file matched with the target deployment program, and putting the mirror image file into a target mirror image warehouse; acquiring deployment information corresponding to the container service, and adding a target deployment field in a configuration file corresponding to a target deployment program according to the deployment information; operating a target deployment program so as to call the image file from the target image warehouse and deploy container service corresponding to the image file; according to the method, the deployment information is acquired, the configuration file is modified, the deployment of the container service can be completed while the cloud computing management platform is deployed, and the deployment efficiency of the container service is improved.

Description

Container service deployment method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of distributed cloud platform technologies, and in particular, to a container service deployment method, a container service deployment apparatus, a container service deployment device, and a computer-readable storage medium.
Background
OpenStack is a free software and open source code project which is developed and launched by NASA (national aerospace administration) and Rackspace cooperation, is authorized by Apache license, is an open source cloud computing management platform project, is combined by a plurality of main components to complete specific work, and has been widely applied in various industries.
The kolla-infrastructure is responsible for deploying various services and infrastructure components required by the containerized OpenStack, and the kolla-infrastructure is used for configuring the OpenStack services and arranging the deployment of various service containers of the OpenStack. By utilizing the isolation of the containers, the upgrading and returning of each service container of the OpenStack are achieved, the influence range of the upgrading and returning is controlled, and the complexity of the operation and maintenance of the OpenStack cluster is reduced. rancher is an open-source enterprise-level container management platform that provides a fully-stacked container deployment and management platform for managing Docker and Kubernetes for use in production environments. Since kolla-allowed does not provide deployment support for ranker, the related art needs to deploy OpenStack using kolla-allowed and then deploy ranker service separately when deploying ranker service. The time required for the two deployments is long, and thus the related art container service deployment is inefficient.
Therefore, how to solve the problems of long time required for deploying container services and low deployment efficiency in the related art is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, the present invention provides a container service deployment method, a container service deployment apparatus, a container service deployment device, and a computer-readable storage medium, which solve the problems of long container service deployment time and low deployment efficiency in the related art.
In order to solve the above technical problem, the present invention provides a container service deployment method, including:
constructing a mirror image file matched with a target deployment program, and putting the mirror image file into a target mirror image warehouse;
acquiring deployment information corresponding to container services, and adding a target deployment field in a configuration file corresponding to the target deployment program according to the deployment information;
and running the target deployment program so as to call the image file from the target image warehouse and deploy the container service corresponding to the image file.
Optionally, the adding a target deployment field in a configuration file corresponding to the target deployment program according to the deployment information includes:
adding a corresponding starting configuration field in the role directory file of the target deployment program according to the deployment information;
adding a corresponding deployment judgment field in the global control file of the target deployment program according to the deployment information;
adding a corresponding deployment node field in a host manifest file of the target deployment program according to the deployment information;
and adding an engineering field in a file module entry file of the target deployment program to complete the addition of the target deployment field.
Optionally, the method further comprises:
managing each node in the cluster using the container service.
Optionally, the running the target deployment program to call the image file from the target image repository and deploy the container service corresponding to the image file includes:
running the target deployment program, and calling the image file to deploy a target container corresponding to the container service in a first control node;
starting the target container and acquiring a target authentication file corresponding to the target container;
sending the target authentication file to each second control node, and deploying the container corresponding to the container service in the second control node;
and mapping the target authentication file to the interior of the container to complete the deployment of the container service.
Optionally, when the second control node does not include the first control node, the mapping the target authentication file to the inside of the container includes:
mapping the target authentication file to the target container and an interior of the container.
Optionally, when the second control nodes include the first control node, the sending the target authentication file to each second control node, and deploying the container corresponding to the container service in the second control node and the other control nodes includes:
stopping and deleting the target container;
deploying the container corresponding to the container service in each second control node.
Optionally, the target deployment program is a kolla-ansable deployment program, and the container service is a ranker container service.
The invention also provides a container service deployment device, comprising:
the system comprises a construction module, a target image warehouse and a storage module, wherein the construction module is used for constructing an image file matched with a target deployment program and placing the image file into the target image warehouse;
the field increasing module is used for acquiring deployment information corresponding to the container service and adding a target deployment field in a configuration file corresponding to the target deployment program according to the deployment information;
and the deployment module is used for operating the target deployment program so as to call the image file from the target image warehouse and deploy the container service corresponding to the image file.
The invention also provides a container service deployment device, which comprises a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the container service deployment method.
The present invention further provides a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the container service deployment method described above.
The container service deployment method provided by the invention comprises the steps of constructing a mirror image file matched with a target deployment program, and putting the mirror image file into a target mirror image warehouse; acquiring deployment information corresponding to the container service, and adding a target deployment field in a configuration file corresponding to a target deployment program according to the deployment information; and running the target deployment program so as to call the image file from the target image warehouse and deploy the container service corresponding to the image file.
Therefore, the method constructs an image file matched with the labeling deployment program when the container service is deployed and puts the image file into a target image warehouse so as to be called for deploying the container service in the subsequent process. The target deployment program is a deployment program corresponding to the cloud computing management platform, and the deployment process of the container service can be embedded into the deployment process of the cloud platform by acquiring the deployment information and modifying the configuration file, so that the target deployment program can support the deployment of the container service, the deployment of the container service can be completed while the cloud computing management platform is deployed, two deployments are not needed, the deployment efficiency of the container service is improved, the deployment duration of the container service is reduced, and the problems of long time required by the deployment of the container service and low deployment efficiency in the related art are solved.
In addition, the invention also provides a container service deployment device, a container service deployment device and a computer readable storage medium, and the container service deployment device and the computer readable storage medium also have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a container service deployment method according to an embodiment of the present invention;
fig. 2 is a flowchart of specific container service deployment according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a container service deployment apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a container service deployment device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In a possible implementation manner, please refer to fig. 1, where fig. 1 is a flowchart of a container service deployment method according to an embodiment of the present invention. The method comprises the following steps:
s101: and constructing a mirror image file matched with the target deployment program, and putting the mirror image file into a target mirror image warehouse.
Some or all of the steps in this embodiment may be executed by a deployment node, where the deployment node is a node dedicated to deploying a cloud platform in a cluster, and a specific form of the deployment node may be one server, or may be an operation node composed of multiple servers, computers, and the like.
The target deployment program is used for deploying the cloud platform, and specific content of the target deployment program is not limited, and may be, for example, a kolla-infrastructure deployment program, or may be another deployment program. The target deployment program corresponds to the target mirror image warehouse and is used for storing mirror images, each mirror image corresponds to different platform components, and the platform components are combined to complete the work required to be completed by the cloud platform. In this embodiment, in order to enable the target deployment program to deploy the container service by using the image file, an image file matched with the target deployment program needs to be constructed, where the image file is specifically an image used for deploying the container service, and a specific type of the container service is not limited, for example, the container service may be a rankcer container service, or may be another container service. The specific content and form of the image file are different according to the specific content of the container service and the target deployment program. After the mirror image file is constructed, the mirror image file can be placed into a target mirror image warehouse, so that the mirror image file can be called during deployment, and then the container service can be deployed.
S102: and acquiring deployment information corresponding to the container service, and adding a target deployment field in a configuration file corresponding to the target deployment program according to the deployment information.
The container service has corresponding deployment information for defining the specific deployment mode, deployment range, etc. of the container service. After the deployment information corresponding to the container service is obtained, a target deployment field can be added in a configuration file corresponding to a target deployment program according to the deployment information, so that the target deployment program supports deployment of the container service, namely the container service can be deployed through the target deployment program by modifying the configuration file, the container service can be deployed when a cloud platform is deployed, the cloud platform does not need to be deployed first, then the container service is deployed, and the deployment efficiency of the container service is improved. The specific content and number of the configuration files may be set continuously according to the actual situation, which is not limited.
In one possible embodiment, the configuration file may include four of a role directory file, a global control file, a host manifest file, and a file module entry file, where the step S102 may include:
s1021: and adding a corresponding start configuration field in the role directory file of the target deployment program according to the deployment information.
The role directory file may include a roles file, and a start configuration field corresponding to the container service may be added to the role directory file, so that the container is configured when being started.
S1022: and adding a corresponding deployment judgment field in the global control file of the target deployment program according to the deployment information.
Yml file, in which a deployment judgment field may be added, and whether to deploy container service in the cluster may be controlled by the deployment judgment field.
S1023: and adding a corresponding deployment node field in a host manifest file of the target deployment program according to the deployment information.
The host manifest file can comprise a multinode file and an all-in-one file, a deployment node field can be added in the host manifest file, and according to the deployment node field, the container service can be determined to be deployed on which nodes in the cluster.
S1024: and adding an engineering field in a file module entry file of the target deployment program to complete the addition of the target deployment field.
Yml file, which may be a site.yml file, may be added with an engineering field in the file module entry file of the target deployment program, so as to include the container service in the corresponding engineering file, and then deploy the container service when the engineering file is executed. The engineering file is related to the target deployment program, for example, when the target deployment program is a kolla-allowed deployment program, the corresponding engineering file may be an allowed engineering file.
S103: and running the target deployment program so as to call the image file from the target image warehouse and deploy the container service corresponding to the image file.
After the configuration file is processed, a target deployment program can be run, the target deployment program can call the mirror image file in the mirror image warehouse during running, and then the container service corresponding to the mirror image file is deployed, and the specific deployment process can refer to the related technology. By the method, the container service can be deployed simultaneously in the process of deploying the cloud platform, and the deployment efficiency of the container service is improved.
In one possible implementation, after the container service is deployed, the container service may be used to manage the nodes in the cluster. Specifically, part or all of the nodes deployed with the container service in the cluster may be managed, and a specific management process may refer to a related technology.
Further, in one possible embodiment, in order to achieve high availability of the container service in the cluster, and thus high availability of the cluster, the same authentication file may be allocated to the containers in the respective control nodes. Referring to fig. 2, fig. 2 is a specific container service deployment flowchart provided in an embodiment of the present invention, including:
s201: and operating a target deployment program, and calling the image file to deploy a target container corresponding to the container service in the first control node.
The first control node is any node that needs to deploy the target container and may be referred to as a control [0] node. In this embodiment, the nodes that need to deploy the container service may be referred to as control nodes. After the target deployment program is run, the image file may be called to deploy a target container corresponding to the container service in the first control node.
S202: and starting the target container and acquiring a target authentication file corresponding to the target container.
After the target container is successfully deployed, the target container is started, and a corresponding authentication file, namely a target authentication file, is generated when the target container is started. The specific form of the target authentication file is not limited, and may be, for example, a public key and a private key. The authentication files are used for communication, data encryption and the like, and the control nodes with the same authentication files can achieve high availability, so that the target authentication files are acquired into the deployment node for subsequent high availability configuration.
S203: and sending the target authentication file to each second control node, and deploying a container corresponding to the container service in the second control node.
In this embodiment, the second control node may be all the control nodes including the first control node, or may be a control node other than the first control node. And respectively sending the target authentication file to each second control node, namely distributing the same authentication file to each second control node. After the target authentication file is sent, a container corresponding to the container service may be deployed in each second control node.
Specifically, in a possible implementation manner, when the second control node includes the first control node, the step of deploying, in the second control node, a container corresponding to the container service may include:
step 1: the target container is stopped and deleted.
Since the second control node includes the first control node and the target container already exists in the first control node, in order to avoid a container service deployment error, the target container may be stopped and deleted, and the container may be subsequently redeployed.
Step 2: deploying containers in each second control node for serving the corresponding container.
In another possible embodiment, the second control node does not include the first control node, and therefore after the containers are deployed in the second control node, all of the containers corresponding to the control nodes include not only the containers in the second control node but also the target containers in the first control node.
S204: and mapping the target authentication file into the container to complete the deployment of the container service.
After the corresponding containers are deployed in each control node, mapping the target authentication file into the containers to complete the deployment of the container service. Specifically, a mapping instruction may be sent to each control node, and each control node maps the target authentication file into the container by using the designated volume when receiving the mapping instruction, thereby completing the deployment of the container service.
The step S204 is different from the step S203 in that the mapping of the target authentication file is performed. Specifically, in one possible implementation, the second control node includes the first control node, and at this time, in step S203, the container is already deployed in all the second control nodes, i.e., all the control nodes, so that step S204 may map the target authentication file into the container.
In another possible embodiment, the second control node does not include the first control node, in this case, all containers corresponding to the control nodes include not only the container in the second control node but also the target container in the first control node, so the step S204 may be: the target authentication file is mapped to the target container and the interior of the container.
By applying the container service deployment method provided by the embodiment of the invention, the mirror image file matched with the label arrangement deployment program is constructed and put into the target mirror image warehouse when the container service is deployed, so that the mirror image file can be called subsequently for deploying the container service. The target deployment program is a deployment program corresponding to the cloud computing management platform, and by means of acquiring deployment information and modifying the configuration file, the deployment process of the container service can be embedded into the deployment process of the cloud platform, so that the target deployment program can support the deployment of the container service, the deployment of the container service can be completed while the cloud computing management platform is deployed, two deployments are not needed, the deployment efficiency of the container service is improved, the deployment time of the container service is reduced, and the problems of long time required for the deployment of the container service and low deployment efficiency in the related art are solved.
In the following, the container service deployment apparatus provided by the embodiment of the present invention is introduced, and the container service deployment apparatus described below and the container service deployment method described above may be referred to correspondingly.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a container service deployment apparatus according to an embodiment of the present invention, including:
the building module 310 is used for building an image file matched with the target deployment program and putting the image file into a target image warehouse;
the field adding module 320 is configured to obtain deployment information corresponding to the container service, and add a target deployment field in a configuration file corresponding to a target deployment program according to the deployment information;
and the deployment module 330 is configured to run the target deployment program, so as to call the image file from the target image repository and deploy the container service corresponding to the image file.
Optionally, the field adding module 320 includes:
the first adding unit is used for adding a corresponding starting configuration field in the role directory file of the target deployment program according to the deployment information;
the second adding unit is used for adding a corresponding deployment judgment field in the global control file of the target deployment program according to the deployment information;
the third adding unit is used for adding corresponding deployment node fields in a host list file of the target deployment program according to the deployment information;
and the fourth adding unit is used for adding the project field in the file module entry file of the target deployment program to complete the addition of the target deployment field.
Optionally, the method further comprises:
and the management module is used for managing each node in the cluster by using the container service.
Optionally, the deployment module 330 comprises:
the first deployment unit is used for running a target deployment program and calling the mirror image file to deploy a target container corresponding to the container service in the first control node;
the authentication file acquisition unit is used for starting the target container and acquiring a target authentication file corresponding to the target container;
the second deployment unit is used for sending the target authentication file to each second control node and deploying the container corresponding to the container service in the second control node;
and the authentication file mapping unit is used for mapping the target authentication file into the container to complete the deployment of the container service.
Optionally, the authentication file mapping unit includes:
and the target mapping subunit is used for mapping the target authentication file to the target container and the interior of the container when the second control node does not comprise the first control node.
Optionally, the second deployment unit comprises:
a deletion subunit, configured to stop and delete the target container when the second control node includes the first control node;
and the deployment subunit is used for deploying the container corresponding to the container service in each second control node.
In the following, the container service deployment device provided by the embodiment of the present invention is introduced, and the container service deployment device described below and the container service deployment method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a container service deployment device according to an embodiment of the present invention. Wherein the container service deployment apparatus 400 may comprise a processor 401 and a memory 402, and may further comprise one or more of a multimedia component 403, an information input/information output (I/O) interface 404, and a communication component 405.
The processor 401 is configured to control the overall operation of the container service deployment apparatus 400, so as to complete all or part of the steps in the container service deployment method described above; the memory 402 is used to store various types of data to support the operation at the container service deployment device 400, such data may include, for example, instructions for any application or method operating on the container service deployment device 400, and application-related data. The Memory 402 may be implemented by any type or combination of volatile and non-volatile Memory devices, such as one or more of Static Random Access Memory (SRAM), electrically Erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk.
The multimedia components 403 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 402 or transmitted through the communication component 405. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 404 provides an interface between the processor 401 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 405 is used for wired or wireless communication between the container service deployment device 400 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 405 may include: wi-Fi components, bluetooth components, NFC components.
Container service deployment Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the container service deployment methods of the above embodiments.
In the following, the computer-readable storage medium provided by the embodiment of the present invention is introduced, and the computer-readable storage medium described below and the container service deployment method described above may be referred to correspondingly.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when being executed by a processor, implements the steps of the container service deployment method described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and all that is needed is that the same or similar parts between the embodiments are mutually referred to. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relationships such as first and second, etc., are intended only to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The container service deployment method, the container service deployment device, the container service deployment apparatus, and the computer-readable storage medium provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A container service deployment method, comprising:
constructing a mirror image file matched with a target deployment program, and putting the mirror image file into a target mirror image warehouse;
acquiring deployment information corresponding to container services, and adding a target deployment field in a configuration file corresponding to the target deployment program according to the deployment information;
running the target deployment program so as to call the image file from the target image warehouse and deploy the container service corresponding to the image file; running the target deployment program, and calling the image file to deploy a target container corresponding to the container service in a first control node; starting the target container and acquiring a target authentication file corresponding to the target container; sending the target authentication file to each second control node, and deploying the container corresponding to the container service in the second control node; mapping the target authentication file to the interior of the container to complete the deployment of the container service;
managing each node in the cluster using the container service.
2. The container service deployment method according to claim 1, wherein the adding a target deployment field in the configuration file corresponding to the target deployment program according to the deployment information includes:
adding a corresponding starting configuration field in the role directory file of the target deployment program according to the deployment information;
adding a corresponding deployment judgment field in the global control file of the target deployment program according to the deployment information;
adding corresponding deployment node fields in a host manifest file of the target deployment program according to the deployment information;
and adding an engineering field in the file module entry file of the target deployment program to complete the addition of the target deployment field.
3. The container service deployment method of claim 1, wherein when the second control node does not include the first control node, the mapping the target authentication file to the interior of the container comprises:
mapping the target authentication file to the target container and an interior of the container.
4. The container service deployment method according to claim 1, wherein when the second control nodes include the first control node, the sending the target authentication file to each second control node and deploying the container corresponding to the container service in the second control node and other control nodes includes:
stopping and deleting the target container;
deploying the container corresponding to the container service in each second control node.
5. The container service deployment method of claim 1, wherein the target deployment procedure is a kolla-available deployment procedure and the container service is a ranker container service.
6. A container service deployment apparatus, comprising:
the system comprises a construction module, a target image warehouse and a storage module, wherein the construction module is used for constructing an image file matched with a target deployment program and placing the image file into the target image warehouse;
the field increasing module is used for acquiring deployment information corresponding to the container service and adding a target deployment field in a configuration file corresponding to the target deployment program according to the deployment information;
the deployment module is used for operating the target deployment program so as to call the image file from the target image warehouse and deploy the container service corresponding to the image file;
the management module is used for managing each node in the cluster by utilizing the container service;
the deployment module includes:
the first deployment unit is used for running a target deployment program and calling the mirror image file to deploy a target container corresponding to the container service in the first control node;
the authentication file acquisition unit is used for starting the target container and acquiring a target authentication file corresponding to the target container;
the second deployment unit is used for sending the target authentication file to each second control node and deploying the container corresponding to the container service in the second control node;
and the authentication file mapping unit is used for mapping the target authentication file into the container to complete the deployment of the container service.
7. A container service deployment device comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor configured to execute the computer program to implement the container service deployment method according to any of claims 1 to 5.
8. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the container service deployment method of any of claims 1 to 5.
CN202010605066.9A 2020-06-29 2020-06-29 Container service deployment method, device, equipment and readable storage medium Active CN111736956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010605066.9A CN111736956B (en) 2020-06-29 2020-06-29 Container service deployment method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010605066.9A CN111736956B (en) 2020-06-29 2020-06-29 Container service deployment method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111736956A CN111736956A (en) 2020-10-02
CN111736956B true CN111736956B (en) 2023-01-10

Family

ID=72652141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010605066.9A Active CN111736956B (en) 2020-06-29 2020-06-29 Container service deployment method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111736956B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760442A (en) * 2020-10-19 2021-12-07 北京沃东天骏信息技术有限公司 Application running and accessing method, device and equipment
CN112379892A (en) * 2020-10-29 2021-02-19 远光软件股份有限公司 Ammonia spraying prediction code processing method and device, storage medium and terminal equipment
CN112437120B (en) * 2020-11-05 2023-06-30 北京浪潮数据技术有限公司 Access monitoring method and system of cache system, electronic equipment and storage medium
CN112346750B (en) * 2020-11-16 2022-04-01 珠海格力电器股份有限公司 Configuration software control method, system and storage medium
CN112363806B (en) * 2020-11-23 2023-09-22 北京信安世纪科技股份有限公司 Cluster management method and device, electronic equipment and storage medium
CN112711575A (en) * 2021-01-15 2021-04-27 山东云海国创云计算装备产业创新中心有限公司 Deployment method, system and related device of database cluster
CN112732412B (en) * 2021-04-06 2021-08-03 浙江华创视讯科技有限公司 Service configuration file processing method and device, storage medium and electronic equipment
CN113434254B (en) * 2021-06-30 2023-03-07 深圳平安智汇企业信息管理有限公司 Client deployment method, client deployment apparatus, computer device, and storage medium
CN113568624A (en) * 2021-09-22 2021-10-29 苏州浪潮智能科技有限公司 Mirror image pulling method and system, computer equipment and readable storage medium
CN113867878B (en) * 2021-10-11 2023-07-04 平安科技(深圳)有限公司 Engineering deployment method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180205616A1 (en) * 2017-01-18 2018-07-19 International Business Machines Corporation Intelligent orchestration and flexible scale using containers for application deployment and elastic service
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109885316A (en) * 2019-02-18 2019-06-14 国家计算机网络与信息安全管理中心 Hdfs-hbase dispositions method and device based on kubernetes
CN110543311A (en) * 2019-09-05 2019-12-06 曙光信息产业(北京)有限公司 Mirror image construction method and device and storage medium
CN110750497A (en) * 2019-10-29 2020-02-04 山东易华录信息技术有限公司 Data scheduling system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180205616A1 (en) * 2017-01-18 2018-07-19 International Business Machines Corporation Intelligent orchestration and flexible scale using containers for application deployment and elastic service
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN109885316A (en) * 2019-02-18 2019-06-14 国家计算机网络与信息安全管理中心 Hdfs-hbase dispositions method and device based on kubernetes
CN110543311A (en) * 2019-09-05 2019-12-06 曙光信息产业(北京)有限公司 Mirror image construction method and device and storage medium
CN110750497A (en) * 2019-10-29 2020-02-04 山东易华录信息技术有限公司 Data scheduling system

Also Published As

Publication number Publication date
CN111736956A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111736956B (en) Container service deployment method, device, equipment and readable storage medium
US10606881B2 (en) Sharing container images between mulitple hosts through container orchestration
US20230289225A1 (en) Scalable centralized internet-of-things manager
US10447814B2 (en) Joint servicing of software packages
US9942087B2 (en) Application resiliency using APIs
US10216510B2 (en) Silent upgrade of software with dependencies
US20210182117A1 (en) Systems and methods for service resource allocation and deployment
US20200057868A1 (en) Privacy annotation from differential analysis of snapshots
US20200152187A1 (en) Relaying voice commands between artificial intelligence (ai) voice response systems
US11822932B2 (en) Provisioning services (PVS) cloud streaming with read cache
US10169056B2 (en) Effective management of virtual containers in a desktop environment
US10341181B2 (en) Method and apparatus to allow dynamic changes of a replica network configuration in distributed systems
CN111796838A (en) MPP database automatic deployment method and device
CN108132832B (en) Application program starting method and device
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN113254156A (en) Container group deployment method and device, electronic equipment and storage medium
CN115878138B (en) Application pre-download method, device, computer and storage medium
CN114157658B (en) Mirror warehouse deployment method, apparatus, electronic device and computer readable medium
US20190171502A1 (en) Detecting co-resident services in a container cloud
US20210357239A1 (en) Methods and systems for managing computing virtual machine instances
US20170111434A1 (en) Geographically distributed highly available mailbox
CN112083945A (en) NPM installation package update prompting method and device, electronic equipment and storage medium
CN110554906A (en) virtual machine configuration management method and device
CN117112500B (en) Resource management method, device, equipment and storage medium
CN112541756B (en) Block chain contract upgrading method and device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant