[go: up one dir, main page]

CN109032760A - Method and apparatus for application deployment - Google Patents

Method and apparatus for application deployment Download PDF

Info

Publication number
CN109032760A
CN109032760A CN201810865576.2A CN201810865576A CN109032760A CN 109032760 A CN109032760 A CN 109032760A CN 201810865576 A CN201810865576 A CN 201810865576A CN 109032760 A CN109032760 A CN 109032760A
Authority
CN
China
Prior art keywords
application
load balancing
interface
instance
container cluster
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.)
Pending
Application number
CN201810865576.2A
Other languages
Chinese (zh)
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810865576.2A priority Critical patent/CN109032760A/en
Publication of CN109032760A publication Critical patent/CN109032760A/en
Pending legal-status Critical Current

Links

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
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • 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
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present application discloses the method and apparatus for application deployment.One specific embodiment of this method includes: to receive application deployment requests that user's institute's using terminal is sent, for application deployment, wherein application deployment request packet includes configuration parameter and mirror image, wherein configuration parameter includes access type;Determined whether to provide load balancing service for application according to access type;Load balancing service is provided for application in response to determining, creates load balancing example, and creates elastic public network IP address, wherein load balancing example is added with the back-end services created using mirror image;The elastic public network IP address of the load balancing example of creation and creation is associated;It is disposed to terminal sending application and completes prompt information, and the elastic public network IP address after association is sent to terminal.The embodiment is realized using deployment beyond the clouds, and is extended the application of deployment beyond the clouds by creation load balancing example and externally provided the ability serviced.

Description

用于部署应用的方法和装置Method and apparatus for deploying applications

技术领域technical field

本申请实施例涉及计算机技术领域,具体涉及用于部署应用的方法和装置。The embodiments of the present application relate to the field of computer technologies, and in particular to methods and devices for deploying applications.

背景技术Background technique

随着互联网技术的不断发展,云平台由于具有高效、便捷等特点,得到了越来越广泛的应用。容器云最主要的功能是以应用为中心,帮助应用开发者把应用以容器的形式在分布式系统里面运行起来,最后把应用以服务的形式呈现给用户。With the continuous development of Internet technology, the cloud platform has been more and more widely used due to its high efficiency and convenience. The main function of the container cloud is application-centric, helping application developers run applications in distributed systems in the form of containers, and finally present applications to users in the form of services.

目前,很多容器云平台通过Docker(应用容器引擎)及Kubernetes等技术提供应用运行平台,从而实现运维自动化、快速部署应用、弹性伸缩和动态调整应用环境资源等等,提高研发运营效率。Kubernetes(通常写成“k8s”)最开始是由google设计开发的开源容器集群管理系统,Kubernetes可以提供应用部署、维护、扩展机制等功能。At present, many container cloud platforms provide application running platforms through technologies such as Docker (application container engine) and Kubernetes, so as to realize operation and maintenance automation, rapid application deployment, elastic scaling and dynamic adjustment of application environment resources, etc., and improve R&D and operation efficiency. Kubernetes (usually written as "k8s") was originally an open source container cluster management system designed and developed by Google. Kubernetes can provide functions such as application deployment, maintenance, and expansion mechanisms.

发明内容Contents of the invention

本申请实施例提出了用于部署应用的方法和装置。Embodiments of the present application provide methods and devices for deploying applications.

第一方面,本申请实施例提供了一种用于部署应用的方法,该方法包括:接收用户所使用终端发送的、用于部署应用的应用部署请求,其中,上述应用部署请求包括配置参数和镜像,其中,上述配置参数包括访问类型;根据上述访问类型确定是否针对上述应用提供负载均衡服务;响应于确定针对上述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,其中,上述负载均衡实例添加有使用上述镜像创建的后端服务;将创建的负载均衡实例和创建的弹性公网IP地址进行关联;向上述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给上述终端。In the first aspect, an embodiment of the present application provides a method for deploying an application, the method including: receiving an application deployment request for deploying an application sent by a terminal used by a user, wherein the application deployment request includes configuration parameters and Mirroring, wherein the above configuration parameters include access type; determine whether to provide load balancing service for the above application according to the above access type; in response to determining to provide load balancing service for the above application, create a load balancing instance, and create an elastic public network IP address, wherein , the above load balancing instance is added with the backend service created using the above image; associate the created load balancing instance with the created elastic public IP address; The network IP address is sent to the above-mentioned terminal.

在一些实施例中,向容器集群管理系统提供预先设置的路由创建接口,其中,上述容器集群管理系统用于对运行上述应用的容器集群进行管理;响应于确定上述容器集群管理系统调用上述路由创建接口,根据上述用户对应的私有网络生成实例路由表,以及根据上述实例路由生成路由表,其中,上述路由表用于实现上述容器集群中不同节点间工作负载单元之间的网络通信。In some embodiments, a preset route creation interface is provided to the container cluster management system, wherein the above container cluster management system is used to manage the container cluster running the above application; in response to determining that the above container cluster management system invokes the above route creation The interface generates an instance routing table according to the private network corresponding to the above user, and generates a routing table according to the above instance routing, wherein the above routing table is used to realize network communication between workload units among different nodes in the above container cluster.

在一些实施例中,上述创建负载均衡实例,包括:响应于确定不存在针对上述应用的负载均衡实例,创建针对上述应用的负载均衡实例;为上述应用的负载均衡实例创建至少一个监听器,其中,监听器用于定义负载均衡策略和转发规则;为上述应用的负载均衡实例添加后端服务。In some embodiments, the above-mentioned creation of a load balancing instance includes: creating a load balancing instance for the above application in response to determining that there is no load balancing instance for the above application; creating at least one listener for the load balancing instance of the above application, wherein , the listener is used to define load balancing policies and forwarding rules; add backend services to the load balancing instances of the above applications.

在一些实施例中,在创建负载均衡实例之前,上述方法还包括:接收上述用户所使用终端发送的虚拟机设置信息,其中,上述虚拟机设置信息用于设置至少一台虚拟机;根据上述虚拟机设置信息设置至少一台虚拟机,以及基于上述至少一台虚拟机创建容器集群。In some embodiments, before creating the load balancing instance, the above method further includes: receiving virtual machine setting information sent by the terminal used by the user, wherein the above virtual machine setting information is used to set at least one virtual machine; according to the above virtual Set at least one virtual machine according to the machine setting information, and create a container cluster based on the at least one virtual machine.

在一些实施例中,上述方法还包括:设置接口,以供容器集群管理系统通过调用接口实现对容器集群管理,其中,上述接口包括以下至少一项:负载均衡创建接口、节点信息获取接口、可用区信息获取接口、路由创建接口、持久化存储打标签接口。In some embodiments, the above method further includes: setting an interface for the container cluster management system to implement container cluster management by calling the interface, wherein the above interface includes at least one of the following: load balancing creation interface, node information acquisition interface, available Zone information acquisition interface, route creation interface, and persistent storage labeling interface.

第二方面,本申请实施例提供了一种用于部署应用的装置,装置包括:接收单元,被配置成接收用户所使用终端发送的、用于部署应用的应用部署请求,其中,上述应用部署请求包括配置参数和镜像,其中,上述配置参数包括访问类型;确定单元,被配置成根据上述访问类型确定是否针对上述应用提供负载均衡服务;创建单元,被配置成响应于确定针对上述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,其中,上述负载均衡实例添加有使用上述镜像创建的后端服务;关联单元,被配置成将创建的负载均衡实例和创建的弹性公网IP地址进行关联;发送单元,被配置成向上述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给上述终端。In the second aspect, the embodiment of the present application provides a device for deploying an application, the device includes: a receiving unit configured to receive an application deployment request for deploying an application sent by a terminal used by a user, wherein the above-mentioned application deployment The request includes configuration parameters and mirror images, wherein the configuration parameters include access types; the determination unit is configured to determine whether to provide load balancing services for the above applications according to the access types; the creation unit is configured to respond to determining to provide load balancing services for the above applications Balanced service, create a load balancing instance, and create an elastic public IP address, wherein the above load balancing instance is added with the backend service created using the above image; the association unit is configured to create the load balancing instance and the created elastic public IP address The network IP address is associated; the sending unit is configured to send application deployment completion prompt information to the above terminal, and send the associated elastic public network IP address to the above terminal.

在一些实施例中,上述装置还包括:提供单元,被配置成向容器集群管理系统提供预先设置的路由创建接口,其中,上述容器集群管理系统用于对运行上述应用的容器集群进行管理;生成单元,被配置成响应于确定上述容器集群管理系统调用上述路由创建接口,根据上述用户对应的私有网络生成实例路由表,以及根据上述实例路由生成路由表,其中,上述路由表用于实现上述容器集群中不同节点间工作负载单元之间的网络通信。In some embodiments, the above-mentioned apparatus further includes: a providing unit configured to provide a preset route creation interface to the container cluster management system, wherein the above-mentioned container cluster management system is used to manage the container cluster running the above-mentioned application; generate A unit configured to generate an instance routing table according to the private network corresponding to the user in response to determining that the above-mentioned container cluster management system calls the above-mentioned route creation interface, and generate a routing table according to the above-mentioned instance route, wherein the above-mentioned routing table is used to implement the above-mentioned container Network communication between workload units among different nodes in the cluster.

在一些实施例中,上述创建单元进一步被配置成:响应于确定不存在针对上述应用的负载均衡实例,创建针对上述应用的负载均衡实例;为上述应用的负载均衡实例创建至少一个监听器,其中,监听器用于定义负载均衡策略和转发规则;为上述应用的负载均衡实例添加后端服务。In some embodiments, the creating unit is further configured to: create a load balancing instance for the above application in response to determining that there is no load balancing instance for the above application; create at least one listener for the load balancing instance of the above application, wherein , the listener is used to define load balancing policies and forwarding rules; add backend services to the load balancing instances of the above applications.

在一些实施例中,上述装置还包括第一设置单元,上述第一设置单元被配置成:接收上述用户所使用终端发送的虚拟机设置信息,其中,上述虚拟机设置信息用于设置至少一台虚拟机;根据上述虚拟机设置信息设置至少一台虚拟机,以及基于上述至少一台虚拟机创建容器集群。In some embodiments, the above-mentioned apparatus further includes a first setting unit, the above-mentioned first setting unit is configured to: receive the virtual machine setting information sent by the terminal used by the above-mentioned user, wherein the above-mentioned virtual machine setting information is used to set at least one A virtual machine: setting at least one virtual machine according to the above virtual machine setting information, and creating a container cluster based on the above at least one virtual machine.

在一些实施例中,上述装置还包括:第二设置单元,被配置成设置接口,以供容器集群管理系统通过调用接口实现对容器集群管理,其中,上述接口包括以下至少一项:负载均衡创建接口、节点信息获取接口、可用区信息获取接口、路由创建接口、持久化存储打标签接口。In some embodiments, the above-mentioned apparatus further includes: a second setting unit configured to set an interface for the container cluster management system to implement management of the container cluster by calling the interface, wherein the above-mentioned interface includes at least one of the following: load balancing creation Interface, node information acquisition interface, availability zone information acquisition interface, route creation interface, persistent storage labeling interface.

第三方面,本申请实施例提供了一种服务器,该服务器包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行时,使得上述一个或多个处理器实现如第一方面中任一实现方式描述的方法。In the third aspect, the embodiment of the present application provides a server, the server includes: one or more processors; When executed by one or more processors, the above one or more processors implement the method described in any implementation manner of the first aspect.

第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,该计算机程序被处理器执行时实现如第一方面中任一实现方式描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.

本申请实施例提供的用于部署应用的方法和装置,首先接收用户所使用终端发送的、用于部署应用的应用部署请求,而后根据访问类型确定是否针对上述应用提供负载均衡服务,响应于确定针对上述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,然后将创建的负载均衡实例和创建的弹性公网IP地址进行关联,最后向终端发送应用部署完成提示信息,并将关联后的弹性公网IP地址发送给终端,从而实现了应用在云端的部署,并通过创建负载均衡实例扩展了部署在云端的应用对外提供服务的能力。The method and device for deploying applications provided by the embodiments of the present application firstly receive the application deployment request sent by the terminal used by the user for deploying applications, and then determine whether to provide load balancing services for the above-mentioned applications according to the access type. Provide load balancing services for the above applications, create a load balancing instance, and create an elastic public IP address, then associate the created load balancing instance with the created elastic public IP address, and finally send a notification message that the application deployment is complete to the terminal, and Send the associated elastic public network IP address to the terminal, thereby realizing the deployment of the application in the cloud, and expanding the ability of the application deployed in the cloud to provide external services by creating a load balancing instance.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;

图2是根据本申请的用于部署应用的方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a method for deploying an application according to the present application;

图3是根据本申请中Kubernetes通过调用接口实现与公有云进行交互的示例图;Fig. 3 is according to the example figure that Kubernetes realizes interacting with the public cloud by calling the interface in this application;

图4是根据本申请的用于部署应用的方法的一个应用场景的示意图;FIG. 4 is a schematic diagram of an application scenario of a method for deploying an application according to the present application;

图5是根据本申请的用于部署应用的方法的又一个实施例的流程图;Fig. 5 is a flow chart of another embodiment of the method for deploying an application according to the present application;

图6是根据本申请的容器集群中网络通信的示例图;FIG. 6 is an example diagram of network communication in a container cluster according to the present application;

图7是根据本申请的用于部署应用的装置的一个实施例的结构示意图;Fig. 7 is a schematic structural diagram of an embodiment of a device for deploying applications according to the present application;

图8是适于用来实现本申请实施例的服务器的计算机系统的结构示意图。FIG. 8 is a schematic structural diagram of a computer system suitable for implementing the server of the embodiment of the present application.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

图1示出了可以应用本申请实施例的用于部署应用的方法或用于部署应用的装置的示例性系统架构100。Fig. 1 shows an exemplary system architecture 100 to which the method for deploying an application or the device for deploying an application according to the embodiment of the present application can be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.

用户(例如,应用的研发人员)可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。Users (for example, application developers) can use terminal devices 101 , 102 , 103 to interact with server 105 through network 104 to receive or send messages and the like. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, and the like.

终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏并且支持信息的发送和接收的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they can be various electronic devices that have display screens and support the sending and receiving of information, including but not limited to smart phones, tablet computers, laptop computers and desktop computers, etc. . When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as a plurality of software or software modules (for example, to provide distributed services), or as a single software or software module. No specific limitation is made here.

服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103发送的应用部署请求进行处理的云服务器,云服务器可以根据接收到的应用部署请求对应用进行部署,部署完成后,可以提供访问云端所部署的应用的接口(例如,网址)。The server 105 may be a server that provides various services, such as a cloud server that processes the application deployment requests sent by the terminal devices 101, 102, and 103. The cloud server may deploy the applications according to the received application deployment requests. After the deployment is completed, Interfaces (for example, URLs) for accessing applications deployed on the cloud may be provided.

需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or as a single software or software module. No specific limitation is made here.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.

需要说明的是,本申请实施例所提供的用于部署应用的方法一般由服务器105执行,相应地,用于部署应用的装置一般设置于服务器105中。It should be noted that the method for deploying applications provided in the embodiment of the present application is generally executed by the server 105 , and correspondingly, the device for deploying applications is generally set in the server 105 .

继续参考图2,示出了根据本申请的用于部署应用的方法的一个实施例的流程200。该用于部署应用的方法,包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of an embodiment of the method for deploying applications according to the present application is shown. The method for deploying an application includes the following steps:

步骤201,接收用户所使用终端发送的、用于部署应用的应用部署请求。Step 201, receiving an application deployment request sent by a terminal used by a user for deploying an application.

在本实施例中,用于部署应用的方法的执行主体(例如图1所示的服务器105)可以通过有线连接方式或者无线连接方式从用户所使用的终端(例如图1所示的终端设备101、102、103)接收用于部署应用的应用部署请求。在这里,上述应用部署请求可以包括配置参数和镜像,其中,配置参数可以包括访问类型、运作实例数量等等。访问类型可以是指客户访问上述应用的方式,访问类型可以包括负载均衡和非负载均衡,即通过负载均衡将客户的访问请求分发到各个应用运行实例。上述镜像可以是指将上述应用的应用程序文件处理后得到的镜像文件。在这里,客户可以是指访问云端所部署的上述应用的网络用户。In this embodiment, the execution subject of the method for deploying applications (such as the server 105 shown in FIG. , 102, 103) receiving an application deployment request for deploying an application. Here, the above-mentioned application deployment request may include configuration parameters and images, wherein the configuration parameters may include access type, number of operating instances, and the like. The access type may refer to the manner in which the customer accesses the above application, and the access type may include load balancing and non-load balancing, that is, the customer's access request is distributed to each running instance of the application through load balancing. The aforementioned image may refer to an image file obtained by processing the application program file of the aforementioned application. Here, the client may refer to a network user who accesses the above-mentioned application deployed on the cloud.

实践中,上述执行主体可以将接收到的镜像存储到镜像仓库,镜像仓库是用于集中存放镜像文件的场所。每个镜像仓库中可以存储多个镜像文件,每个镜像文件对应有不同的标签。这样,上述执行主体可以使用镜像仓库中的镜像文件创建容器,并利用所创建的容器运行应用,以提供应用的后端服务。容器是从镜像创建的应用运行实例,可以被启动、开始、停止、删除,多个容器之间都是相互隔离的。In practice, the execution subject mentioned above can store the received image in a mirror warehouse, and the mirror warehouse is a place for centralized storage of mirror files. Multiple image files can be stored in each image repository, and each image file has a different label. In this way, the above execution subject can use the image file in the image warehouse to create a container, and use the created container to run the application to provide the backend service of the application. A container is an application running instance created from an image. It can be started, started, stopped, and deleted. Multiple containers are isolated from each other.

步骤202,根据访问类型确定是否针对应用提供负载均衡服务。Step 202, determine whether to provide load balancing service for the application according to the access type.

在本实施例中,上述执行主体可以根据上述访问类型确定是否针对上述应用提供负载均衡服务。作为示例,当上述访问类型为负载均衡时,上述执行主体可以确定针对上述应用提供负载均衡服务。In this embodiment, the execution subject may determine whether to provide a load balancing service for the application according to the access type. As an example, when the above-mentioned access type is load balancing, the above-mentioned execution subject may determine to provide a load-balancing service for the above-mentioned application.

步骤203,响应于确定针对应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址。Step 203, in response to determining that the load balancing service is provided for the application, a load balancing instance is created, and an elastic public network IP address is created.

在本实施例中,响应于确定针对上述应用提供负载均衡服务,上述执行主体可以创建负载均衡实例,以及创建弹性公网IP地址。其中,所创建的负载均衡实例可以添加有使用上述镜像创建的后端服务。负载均衡实例是一个运行的负载均衡服务实体,一个负载均衡实例可以添加多个监听器和后端服务器。在这里,监听器用于定义负载均衡策略和转发规则,后端服务器可以用于处理客户访问上述应用的请求,一台后端服务器上可以运行多个虚拟机,而每个虚拟机上可以有多个容器,每个容器里可以运行上述应用的后端服务。In this embodiment, in response to determining that the load balancing service is provided for the above application, the execution subject may create a load balancing instance and create an elastic public network IP address. Among them, the created load balancing instance can be added with the backend service created using the above image. A load balancing instance is a running load balancing service entity, and multiple listeners and backend servers can be added to a load balancing instance. Here, the listener is used to define load balancing policies and forwarding rules, and the backend server can be used to process requests from customers to access the above applications. Multiple virtual machines can run on one backend server, and each virtual machine can have multiple virtual machines. Each container can run the backend service of the above application.

实践中,上述执行主体可以通过预先设定的规则创建负载均衡实例。负载均衡实例创建完成之后,上述执行主体还可以针对上述应用创建弹性公网IP地址。弹性公网IP(Elastic IP Address,简称EIP)是可以独立购买和持有的公网IP地址。上述执行主体可以申请弹性公网IP地址,并轮询等待弹性公网IP地址申请完成。响应于申请完成,则确定创建弹性公网IP地址完成。需要说明的是,创建负载均衡实例和申请弹性公网IP地址的技术是目前云平台广泛应用的公知技术,此处不再赘述。In practice, the above execution subject can create a load balancing instance through preset rules. After the load balancing instance is created, the above execution subject can also create an elastic public IP address for the above application. Elastic IP Address (EIP for short) is a public IP address that can be purchased and held independently. The above-mentioned executive body can apply for an elastic public IP address, and poll and wait for the application of the elastic public IP address to be completed. In response to the completion of the application, it is determined that the creation of the elastic public network IP address is completed. It should be noted that the technology of creating a load balancing instance and applying for an elastic public IP address is a well-known technology widely used in cloud platforms at present, and will not be repeated here.

在本实施例的一些可选的实现方式中,上述创建负载均衡实例的过程可以具体包括以下内容:首先,上述执行主体可以确定是否存在针对上述应用的负载均衡实例,响应于确定不存在针对上述应用的负载均衡实例,上述执行主体可以创建针对上述应用的负载均衡实例。之后,上述执行主体可以为上述应用的负载均衡实例创建至少一个监听器。其中,监听器用于定义负载均衡策略和转发规则。然后,上述执行主体还可以为上述应用的负载均衡实例添加后端服务,其中,上述后端服务是基于上述应用的镜像创建的。作为示例,上述执行主体可以使用上述应用的镜像文件创建容器,并利用所创建的容器运行应用,以提供应用的后端服务。In some optional implementations of this embodiment, the above process of creating a load balancing instance may specifically include the following content: first, the above execution subject may determine whether there is a load balancing instance for the above application, and in response to determining that there is no load balancing instance for the above The load balancing instance of the application, the above execution subject can create a load balancing instance for the above application. Afterwards, the above execution subject may create at least one listener for the load balancing instance of the above application. Among them, the listener is used to define load balancing policies and forwarding rules. Then, the execution subject may also add a backend service to the load balancing instance of the application, wherein the backend service is created based on the image of the application. As an example, the above execution subject may use the image file of the above application to create a container, and use the created container to run the application to provide the backend service of the application.

在一些场景下,响应于确定存在针对上述应用的负载均衡实例,上述执行主体可以根据实际需要更新已经存在的负载均衡实例的监听器和后端服务。In some scenarios, in response to determining that there is a load balancing instance for the above application, the execution subject may update the listener and backend service of the existing load balancing instance according to actual needs.

在本实施例的一些可选的实现方式中,在创建负载均衡实例之前,上述用于部署应用的方法还可以包括以下内容:In some optional implementations of this embodiment, before creating a load balancing instance, the above method for deploying an application may further include the following:

首先,上述执行主体可以接收上述用户所使用终端发送的虚拟机设置信息,其中,上述虚拟机设置信息用于设置至少一台虚拟机。举例来说,虚拟机设置信息可以是指用户购买虚拟机的购买信息,如,可以包括购买的虚拟机数量等。First, the execution subject may receive virtual machine setting information sent by the terminal used by the user, wherein the virtual machine setting information is used to set at least one virtual machine. For example, the virtual machine setting information may refer to the purchase information of the virtual machine purchased by the user, for example, may include the number of purchased virtual machines and the like.

然后,上述执行主体可以根据上述虚拟机设置信息设置至少一台虚拟机,以及基于上述至少一台虚拟机创建容器集群。实践中,可以将上述至少一台虚拟机中的每一台虚拟机作为一个节点,每个节点中可以设置多个工作负载单元,每个工作负载单元中可以设置至少一个容器,每个容器里可以运行上述应用的后端服务。上述至少一台虚拟机中的容器可以组成容器集群。Then, the execution subject may set at least one virtual machine according to the virtual machine setting information, and create a container cluster based on the at least one virtual machine. In practice, each of the above at least one virtual machine can be used as a node, and multiple workload units can be set in each node, and at least one container can be set in each workload unit, and each container A backend service that can run the above application. The containers in the above at least one virtual machine may form a container cluster.

在一些可选的实现方式中,上述用于部署应用的方法还可以包括以下内容:设置接口,以供容器集群管理系统通过调用接口实现对容器集群管理。在这里,上述接口可以包括以下至少一项:负载均衡创建接口、节点信息获取接口、可用区信息获取接口、路由创建接口、持久化存储打标签接口。在这里,可以预先设置一系列接口,以实现上述容器集群管理系统对上述容器集群的管理。所设置的一系列接口可以使用Cloud SDK(云软件开发工具包)实现与公有云的交互,其中,Cloud SDK可以封装有公有云的Open API(即开放API),同时也可以对请求加上认证鉴权等内容。In some optional implementation manners, the above-mentioned method for deploying an application may further include the following content: setting an interface for the container cluster management system to manage the container cluster by calling the interface. Here, the above-mentioned interfaces may include at least one of the following: an interface for creating load balancing, an interface for obtaining node information, an interface for obtaining information about availability zones, an interface for creating routes, and an interface for labeling persistent storage. Here, a series of interfaces may be preset to realize the management of the above-mentioned container cluster by the above-mentioned container cluster management system. The series of interfaces set can use Cloud SDK (Cloud Software Development Kit) to realize the interaction with the public cloud. Among them, the Cloud SDK can encapsulate the Open API of the public cloud (that is, the open API), and can also add authentication to the request authentication etc.

作为示例,上述容器集群管理系统可以为Kubernetes。此时,上述虚拟机可以作为Kubernetes的节点(Node),每个节点上可以有至少一个工作负载单元(Pod),Pod包含至少一个容器,Pod是Kubernetes的基本操作单元。Kubernetes可以通过调用上述一系列接口实现对上述容器集群的管理。As an example, the above container cluster management system may be Kubernetes. At this point, the above-mentioned virtual machine can be used as a Kubernetes node (Node), and each node can have at least one workload unit (Pod). The Pod includes at least one container, and the Pod is the basic operating unit of Kubernetes. Kubernetes can realize the management of the above-mentioned container cluster by calling the above-mentioned series of interfaces.

举例来说,如图3所示,Kubernetes中的Node Controller可以通过调用上述节点信息获取接口获取节点信息,例如,虚拟机标识符、可用区等等,还可以通过调用可用区信息获取接口获取可用区信息。For example, as shown in Figure 3, the Node Controller in Kubernetes can obtain node information by calling the above-mentioned node information acquisition interface, such as virtual machine identifier, availability zone, etc., and can also obtain available information by calling the availability zone information acquisition interface district information.

Kubernetes中的Router Controller可以通过调用路由创建接口,使私有网络(Virtual Private Cloud,VPC)创建路由表。The Router Controller in Kubernetes can create a route table in a private network (Virtual Private Cloud, VPC) by calling the route creation interface.

Kubernetes中的Service Controller可以通过调用负载均衡创建接口控制负载均衡实例的创建和弹性公网IP地址的创建。The Service Controller in Kubernetes can control the creation of the load balancing instance and the creation of the elastic public network IP address by calling the load balancing creation interface.

Kubernetes中的Persistent Volume label Controller可以通过调用持久化存储打标签接口控制持久化卷打标签。The Persistent Volume label Controller in Kubernetes can control the labeling of persistent volumes by calling the persistent storage labeling interface.

Kubernetes中的Node Status可以通过调用节点信息获取接口获取节点信息,可以通过调用可用区信息获取接口获取可用区信息。Node Status in Kubernetes can obtain node information by calling the node information acquisition interface, and can obtain availability zone information by calling the availability zone information acquisition interface.

Kubernetes中的apiserver可以通过调用节点信息获取接口传递SSH Key。The apiserver in Kubernetes can pass the SSH Key by calling the node information acquisition interface.

步骤204,将创建的负载均衡实例和创建的弹性公网IP地址进行关联。Step 204, associating the created load balancing instance with the created elastic public network IP address.

在本实施例中,上述执行主体可以将步骤203中创建的负载均衡实例和创建的弹性公网IP地址进行关联。作为示例,上述执行主体可以通过调用接口的方式实现负载均衡实例和弹性公网IP地址的绑定。In this embodiment, the above execution subject may associate the load balancing instance created in step 203 with the created elastic public network IP address. As an example, the above execution subject can realize the binding of the load balancing instance and the elastic public network IP address by calling the interface.

步骤205,向终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给终端。Step 205, sending a prompt message of application deployment completion to the terminal, and sending the associated elastic public network IP address to the terminal.

在本实施例中,完成步骤204之后,上述执行主体可以向上述终端发送应用部署完成提示信息,以提示上述用户应用部署完成。上述执行主体还可以将关联后的弹性公网IP地址发送给终端。通过该弹性公网IP地址客户可以访问部署在云端的上述应用的服务。In this embodiment, after step 204 is completed, the execution subject may send application deployment completion notification information to the terminal to remind the user that application deployment is complete. The above execution subject may also send the associated elastic public network IP address to the terminal. Through the elastic public IP address, customers can access the services of the above-mentioned applications deployed in the cloud.

继续参见图4,图4是根据本实施例的用于部署应用的方法的应用场景的一个示意 图。在图4的应用场景中,云服务器首先接收用户所使用终端发送的、用于部署应用的应用 部署请求,其中,上述应用部署请求包括配置参数和镜像,其中,配置参数包括访问类型:负 载均衡。其次,云服务器可以根据访问类型确定是否针对上述应用提供负载均衡服务。再 次,响应于确定针对上述应用提供负载均衡服务,云服务器可以创建负载均衡实例,以及创 建弹性公网IP地址,其中,负载均衡实例添加有使用上述镜像创建的后端服务。然后,云服 务器可以将创建的负载均衡实例和创建的弹性公网IP地址进行关联。最后,云服务器可以 向上述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给上述终 端。客户可以通过该弹性公网IP地址实现对部署在云服务器的上述应用进行访问。如图4所 示,当容器访问外网时,可以通过SNAT(源地址转换),使用后端服务器上运行的虚拟机的地 址访问外网,其中,每一台虚拟机可以作为一个节点。当外网访问容器时,请求可以通过弹 性公网IP地址、负载均衡实例等转发到虚拟机端口,再通过iptables(IP信息包过滤系统) 转发到相应的容器上。如图4所示,后端服务器在可用区-A和可用区-B上可以运行有多个节 点,每个节点上运行有至少一个工作负载单元(Pod),每个工作负载单元(Pod)中设置有至 少一个容器,每个容器里可以运行上述应用的后端服务。上述多个节点中的容器可以组成 容器集群。这个集群可以选择部署在某个地域,并使用私有网络(VPC)功能在不同的可用区 部署,从而提高应用的可用性。 Continue to refer to FIG. 4, which is a schematic diagram of the application scenario of the method for deploying applications according to this embodiment picture. In the application scenario shown in Figure 4, the cloud server first receives the application for deploying the application sent by the terminal used by the user. Deployment request, wherein the above-mentioned application deployment request includes configuration parameters and images, wherein the configuration parameters include access type: negative load balancing. Secondly, the cloud server can determine whether to provide load balancing services for the above applications according to the access type. Again Second, in response to determining to provide load balancing services for the above applications, the cloud server can create a load balancing instance, and create Create an elastic public IP address, where the load balancing instance is added with the backend service created using the above image. Then, the cloud server The server can associate the created load balancing instance with the created elastic public IP address. Finally, cloud servers can Send an application deployment completion notification message to the above-mentioned terminal, and send the associated elastic public IP address to the above-mentioned terminal end. Customers can access the above-mentioned applications deployed on the cloud server through the elastic public IP address. As shown in Figure 4 It shows that when the container accesses the external network, it can use the address of the virtual machine running on the backend server through SNAT (source address translation). URL to access the external network, where each virtual machine can be used as a node. When the external network accesses the container, the request can be The public network IP address, load balancing instance, etc. are forwarded to the virtual machine port, and then passed through iptables (IP packet filtering system) forwarded to the corresponding container. As shown in Figure 4, the backend server can run multiple nodes in Availability Zone-A and Availability Zone-B. Each node runs at least one workload unit (Pod), and each workload unit (Pod) is set to There is one less container, and each container can run the back-end services of the above applications. Containers in the above multiple nodes can be composed of container cluster. This cluster can choose to be deployed in a certain region, and use the private network (VPC) function in different availability zones Deployment to improve application availability.

本申请的上述实施例提供的方法实现应用在云端的部署,并通过创建负载均衡实例扩展了部署在云端的应用对外提供服务的能力。The method provided by the above embodiments of the present application realizes the deployment of the application on the cloud, and expands the ability of the application deployed on the cloud to provide external services by creating a load balancing instance.

进一步参考图5,其示出了用于部署应用的方法的又一个实施例的流程500。该用于部署应用的方法的流程500,包括以下步骤:Further referring to FIG. 5 , it shows a flow 500 of still another embodiment of the method for deploying an application. The process 500 of the method for deploying an application includes the following steps:

步骤501,接收用户所使用终端发送的、用于部署应用的应用部署请求。Step 501, receiving an application deployment request sent by a terminal used by a user for deploying an application.

在本实施例中,用于部署应用的方法的执行主体(例如图1所示的服务器105)可以通过有线连接方式或者无线连接方式从用户所使用的终端(例如图1所示的终端设备101、102、103)接收用于部署应用的应用部署请求。在这里,上述应用部署请求可以包括配置参数和镜像,其中,配置参数可以包括访问类型、运作实例数量等等。In this embodiment, the execution subject of the method for deploying applications (such as the server 105 shown in FIG. , 102, 103) receiving an application deployment request for deploying an application. Here, the above-mentioned application deployment request may include configuration parameters and images, wherein the configuration parameters may include access type, number of operating instances, and the like.

步骤502,根据访问类型确定是否针对所述应用提供负载均衡服务。Step 502, determine whether to provide load balancing service for the application according to the access type.

在本实施例中,上述执行主体可以根据上述访问类型确定是否针对上述应用提供负载均衡服务。In this embodiment, the execution subject may determine whether to provide a load balancing service for the application according to the access type.

步骤503,响应于确定针对应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址。Step 503, in response to determining that the load balancing service is provided for the application, create a load balancing instance, and create an elastic public network IP address.

在本实施例中,响应于确定针对上述应用提供负载均衡服务,上述执行主体可以创建负载均衡实例,以及创建弹性公网IP地址。其中,所创建的负载均衡实例可以添加有使用上述镜像创建的后端服务。负载均衡实例是一个运行的负载均衡服务实体,一个负载均衡实例可以添加多个监听器和后端服务器。在这里,后端服务器可以用于处理客户访问上述应用的请求,一台后端服务器上可以运行多个虚拟机,而每个虚拟机上可以有多个容器,每个容器里可以运行上述应用的后端服务。In this embodiment, in response to determining that the load balancing service is provided for the above application, the execution subject may create a load balancing instance and create an elastic public network IP address. Among them, the created load balancing instance can be added with the backend service created using the above image. A load balancing instance is a running load balancing service entity, and multiple listeners and backend servers can be added to a load balancing instance. Here, the back-end server can be used to process requests from customers to access the above applications. Multiple virtual machines can run on one back-end server, and each virtual machine can have multiple containers, and the above-mentioned applications can run in each container. backend services.

步骤504,将创建的负载均衡实例和创建的弹性公网IP地址进行关联。Step 504, associating the created load balancing instance with the created elastic public network IP address.

在本实施例中,上述执行主体可以将步骤503中创建的负载均衡实例和创建的弹性公网IP地址进行关联。In this embodiment, the above execution subject may associate the load balancing instance created in step 503 with the created elastic public network IP address.

步骤505,向终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给终端。Step 505, sending a prompt message of application deployment completion to the terminal, and sending the associated elastic public network IP address to the terminal.

在本实施例中,上述执行主体可以向上述终端发送应用部署完成提示信息,以提示上述用户应用部署完成。上述执行主体还可以将关联后的弹性公网IP地址发送给终端。In this embodiment, the execution subject may send application deployment completion prompt information to the terminal to prompt the user that the application deployment is complete. The above execution subject may also send the associated elastic public network IP address to the terminal.

步骤506,向容器集群管理系统提供预先设置的路由创建接口。Step 506, providing a preset route creation interface to the container cluster management system.

在本实施例中,上述执行主体可以向容器集群管理系统提供预先设置的路由创建接口。其中,上述容器集群管理系统可以用于对运行上述应用的容器集群进行管理。在这里,上述路由创建接口可以调用私有网络(VPC)中的开放接口。In this embodiment, the execution subject may provide a preset route creation interface to the container cluster management system. Wherein, the above-mentioned container cluster management system may be used to manage the container cluster running the above-mentioned application. Here, the above-mentioned route creation interface can call the open interface in the private network (VPC).

步骤507,响应于确定容器集群管理系统调用路由创建接口,根据用户对应的私有网络生成实例路由表,以及根据实例路由生成路由表。Step 507, in response to determining that the container cluster management system invokes the route creation interface, generates an instance routing table according to the private network corresponding to the user, and generates a routing table according to the instance route.

在本实施例中,响应于确定容器集群管理系统调用路由创建接口,上述执行主体可以通过调用上述用户对应的私有网络(VPC)的开放接口生成实例路由表,之后,私有网络(VPC)可以根据上述实例路由表生成路由表。该路由表可以用于实现上述容器集群中不同节点间工作负载单元之间的网络通信。举例来说,如图6所示,图6中包括节点1和节点2,其中,节点1和节点2中分别包括工作负载单元1和工作负载单元2,各个工作负载单元中都包括容器1和容器2。其中,eth0表示物理网卡。在本例中,需要实现各个工作负载单元都拥有一个独立的IP地址,且所有的工作负载单元都在一个可以直接连通的、扁平的网络空间中。此时,各个容器之间的通信可以按如下原则:In this embodiment, in response to determining that the container cluster management system invokes the route creation interface, the execution subject can generate an instance routing table by calling the open interface of the private network (VPC) corresponding to the above-mentioned user, and then the private network (VPC) can be based on The above example routing table generates a routing table. The routing table can be used to implement network communication between workload units among different nodes in the container cluster. For example, as shown in FIG. 6, node 1 and node 2 are included in FIG. 6, wherein, node 1 and node 2 include workload unit 1 and workload unit 2 respectively, and each workload unit includes container 1 and container 2. Among them, eth0 represents the physical network card. In this example, each workload unit needs to have an independent IP address, and all workload units are in a flat network space that can be directly connected. At this point, the communication between containers can be based on the following principles:

1)同一个工作负载单元内的容器共享同一个网络命名空间,它们之间的访问可以用localhost(本地主机)地址+容器端口。1) The containers in the same workload unit share the same network namespace, and the access between them can use the localhost (local host) address + container port.

2)同一节点中工作负载单元的默认路由都是以太网桥cbr0的地址,由于同一节点中工作负载单元关联在同一个cbr0网桥上,地址网段相同,所有同一节点中工作负载单元内的容器之间可以直接通信。2) The default route of the workload unit in the same node is the address of the Ethernet bridge cbr0. Since the workload unit in the same node is associated with the same cbr0 bridge and the address network segment is the same, all the workload units in the same node Containers can communicate directly with each other.

3)不同节点之间工作负载单元的通信,通过使用私有网络(VPC)的路由功能,对目标IP为容器网段的网络包进行路由,使其转发到对应的节点上。此时,需要使用路由表。3) For the communication of workload units between different nodes, use the routing function of the private network (VPC) to route the network packets whose target IP is the container network segment, and forward them to the corresponding nodes. In this case, a routing table is required.

从图5中可以看出,与图2对应的实施例相比,本实施例中的用于部署应用的方法的流程500突出了生成路由表的过程,从而实现了容器集群中各个容器之间的通信。It can be seen from FIG. 5 that, compared with the embodiment corresponding to FIG. 2 , the process 500 of the method for deploying applications in this embodiment highlights the process of generating the routing table, thereby realizing the connection between the containers in the container cluster. Communication.

进一步参考图7,作为对上述各图所示方法的实现,本申请提供了一种用于部署应用的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 7 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of a device for deploying applications. This device embodiment corresponds to the method embodiment shown in FIG. 2 . The device can be specifically applied to various electronic devices.

如图7所示,本实施例的用于部署应用的装置700包括:接收单元701、确定单元702、创建单元703、关联单元704和发送单元705。其中,接收单元701被配置成接收用户所使用终端发送的、用于部署应用的应用部署请求,其中,上述应用部署请求包括配置参数和镜像,其中,上述配置参数包括访问类型;确定单元702被配置成根据上述访问类型确定是否针对上述应用提供负载均衡服务;创建单元703被配置成响应于确定针对上述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,其中,上述负载均衡实例添加有使用上述镜像创建的后端服务;关联单元704被配置成将创建的负载均衡实例和创建的弹性公网IP地址进行关联;发送单元705被配置成向上述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给上述终端。As shown in FIG. 7 , the apparatus 700 for deploying applications in this embodiment includes: a receiving unit 701 , a determining unit 702 , a creating unit 703 , an associating unit 704 and a sending unit 705 . Wherein, the receiving unit 701 is configured to receive an application deployment request for deploying an application sent by a terminal used by a user, wherein the above-mentioned application deployment request includes configuration parameters and images, wherein the above-mentioned configuration parameters include access types; the determining unit 702 is It is configured to determine whether to provide load balancing service for the above application according to the above access type; the creating unit 703 is configured to create a load balancing instance and create an elastic public network IP address in response to determining to provide load balancing service for the above application, wherein the above load The balance instance is added with the back-end service created using the above image; the association unit 704 is configured to associate the created load balance instance with the created elastic public IP address; the sending unit 705 is configured to send an application deployment completion notification to the above terminal information, and send the associated elastic public IP address to the above terminal.

在本实施例中,用于部署应用的装置700的接收单元701、确定单元702、创建单元703、关联单元704和发送单元705的具体处理及其所带来的技术效果可分别参考图2对应实施例中步骤201、步骤202、步骤203、步骤204和步骤205的相关说明,在此不再赘述。In this embodiment, the specific processing of the receiving unit 701, the determining unit 702, the creating unit 703, the associating unit 704, and the sending unit 705 of the apparatus 700 for deploying applications and the technical effects brought about by them can refer to FIG. 2 respectively. The relevant descriptions of step 201, step 202, step 203, step 204 and step 205 in the embodiment will not be repeated here.

在本实施例的一些可选的实现方式中,上述装置700还包括:提供单元(图中未示出),被配置成向容器集群管理系统提供预先设置的路由创建接口,其中,上述容器集群管理系统用于对运行上述应用的容器集群进行管理;生成单元(图中未示出),被配置成响应于确定上述容器集群管理系统调用上述路由创建接口,根据上述用户对应的私有网络生成实例路由表,以及根据上述实例路由生成路由表,其中,上述路由表用于实现上述容器集群中不同节点间工作负载单元之间的网络通信。In some optional implementations of this embodiment, the above-mentioned device 700 further includes: a providing unit (not shown in the figure), configured to provide a preset route creation interface to the container cluster management system, wherein the above-mentioned container cluster The management system is used to manage the container cluster running the above-mentioned application; the generation unit (not shown in the figure) is configured to respond to determining that the container cluster management system calls the above-mentioned route creation interface, and generate an instance according to the private network corresponding to the above-mentioned user A routing table, and generating a routing table according to the above-mentioned instance routing, wherein the above-mentioned routing table is used to implement network communication between workload units among different nodes in the above-mentioned container cluster.

在本实施例的一些可选的实现方式中,上述创建单元703进一步被配置成:响应于确定不存在针对上述应用的负载均衡实例,创建针对上述应用的负载均衡实例;为上述应用的负载均衡实例创建至少一个监听器,其中,监听器用于定义负载均衡策略和转发规则;为上述应用的负载均衡实例添加后端服务。In some optional implementations of this embodiment, the creating unit 703 is further configured to: create a load balancing instance for the above application in response to determining that there is no load balancing instance for the above application; The instance creates at least one listener, where the listener is used to define load balancing policies and forwarding rules; add backend services to the load balancing instance of the above application.

在本实施例的一些可选的实现方式中,上述装置700还包括第一设置单元(图中未示出),上述第一设置单元被配置成:接收上述用户所使用终端发送的虚拟机设置信息,其中,上述虚拟机设置信息用于设置至少一台虚拟机;根据上述虚拟机设置信息设置至少一台虚拟机,以及基于上述至少一台虚拟机创建容器集群。In some optional implementations of this embodiment, the above-mentioned apparatus 700 further includes a first setting unit (not shown in the figure), and the above-mentioned first setting unit is configured to: receive the virtual machine setting sent by the terminal used by the above-mentioned user Information, wherein the above virtual machine setting information is used to set at least one virtual machine; set at least one virtual machine according to the above virtual machine setting information, and create a container cluster based on the above at least one virtual machine.

在本实施例的一些可选的实现方式中,上述装置700还包括:第二设置单元(图中未示出),被配置成设置接口,以供容器集群管理系统通过调用接口实现对容器集群管理,其中,上述接口包括以下至少一项:负载均衡创建接口、节点信息获取接口、可用区信息获取接口、路由创建接口、持久化存储打标签接口。In some optional implementations of this embodiment, the above-mentioned device 700 further includes: a second setting unit (not shown in the figure), configured to set an interface, so that the container cluster management system implements the container cluster by calling the interface Management, wherein the above-mentioned interface includes at least one of the following: an interface for creating a load balancer, an interface for obtaining node information, an interface for obtaining information about an availability zone, an interface for creating a route, and an interface for labeling persistent storage.

下面参考图8,其示出了适于用来实现本申请实施例的服务器的计算机系统800的结构示意图。图8示出的服务器仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to FIG. 8 , it shows a schematic structural diagram of a computer system 800 suitable for implementing the server of the embodiment of the present application. The server shown in FIG. 8 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.

如图8所示,计算机系统800包括中央处理单元(CPU,Central Processing Unit)801,其可以根据存储在只读存储器(ROM,Read Only Memory)802中的程序或者从存储部分806加载到随机访问存储器(RAM,Random Access Memory)803中的程序而执行各种适当的动作和处理。在RAM 803中,还存储有系统800操作所需的各种程序和数据。CPU 801、ROM802以及RAM 803通过总线804彼此相连。输入/输出(I/O,Input/Output)接口805也连接至总线804。As shown in FIG. 8 , a computer system 800 includes a central processing unit (CPU, Central Processing Unit) 801, which can be randomly accessed according to a program stored in a read-only memory (ROM, Read Only Memory) 802 or loaded from a storage section 806 Various appropriate actions and processes are executed by programs stored in random access memory (RAM, Random Access Memory) 803 . In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801 , ROM 802 , and RAM 803 are connected to each other via a bus 804 . An input/output (I/O, Input/Output) interface 805 is also connected to the bus 804 .

以下部件连接至I/O接口805:包括硬盘等的存储部分806;以及包括诸如LAN(局域网,Local Area Network)卡、调制解调器等的网络接口卡的通信部分807。通信部分807经由诸如因特网的网络执行通信处理。驱动器808也根据需要连接至I/O接口805。可拆卸介质809,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器808上,以便于从其上读出的计算机程序根据需要被安装入存储部分806。The following components are connected to the I/O interface 805: a storage section 806 including a hard disk and the like; and a communication section 807 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like. The communication section 807 performs communication processing via a network such as the Internet. A drive 808 is also connected to the I/O interface 805 as needed. A removable medium 809, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 808 as necessary so that a computer program read therefrom is installed into the storage section 806 as necessary.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分807从网络上被下载和安装,和/或从可拆卸介质809被安装。在该计算机程序被中央处理单元(CPU)801执行时,执行本申请的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication portion 807 and/or installed from removable media 809 . When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the method of the present application are performed.

需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program codes are carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of this application may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional A procedural programming language—such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括接收单元、确定单元、创建单元、关联单元和发送单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,接收单元还可以被描述为“接收用户所使用终端发送的、用于部署应用的应用部署请求的单元”。The units involved in the embodiments described in the present application may be implemented by means of software, or may be implemented by means of hardware. The described units may also be set in a processor, for example, it may be described as: a processor includes a receiving unit, a determining unit, a creating unit, an associating unit and a sending unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances, for example, the receiving unit can also be described as "a unit that receives an application deployment request sent by a terminal used by a user for deploying an application" .

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:接收用户所使用终端发送的、用于部署应用的应用部署请求,其中,上述应用部署请求包括配置参数和镜像,其中,上述配置参数包括访问类型;根据上述访问类型确定是否针对上述应用提供负载均衡服务;响应于确定针对上述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,其中,上述负载均衡实例添加有使用上述镜像创建的后端服务;将创建的负载均衡实例和创建的弹性公网IP地址进行关联;向上述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给上述终端。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the device described in the above embodiments, or it may exist independently without being assembled into the device. The above-mentioned computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device: receives an application deployment request for deploying an application sent by a terminal used by a user, wherein the above-mentioned The application deployment request includes configuration parameters and images, wherein the above configuration parameters include access types; determine whether to provide load balancing services for the above applications according to the above access types; Elastic public network IP address, wherein the above load balancing instance is added with the backend service created using the above image; associate the created load balancing instance with the created elastic public network IP address; send a prompt message of application deployment completion to the above terminal, And send the associated elastic public network IP address to the above-mentioned terminal.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above-mentioned technical features, and should also cover the technical solutions formed by the above-mentioned technical features or without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution formed by replacing the above-mentioned features with technical features with similar functions disclosed in (but not limited to) this application.

Claims (12)

1.一种用于部署应用的方法,包括:1. A method for deploying an application, comprising: 接收用户所使用终端发送的、用于部署应用的应用部署请求,其中,所述应用部署请求包括配置参数和镜像,其中,所述配置参数包括访问类型;receiving an application deployment request for deploying an application sent by a terminal used by a user, where the application deployment request includes configuration parameters and images, where the configuration parameters include an access type; 根据所述访问类型确定是否针对所述应用提供负载均衡服务;Determine whether to provide load balancing services for the application according to the access type; 响应于确定针对所述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,其中,所述负载均衡实例添加有使用所述镜像创建的后端服务;In response to determining that a load balancing service is provided for the application, creating a load balancing instance, and creating an elastic public network IP address, wherein the load balancing instance is added with the backend service created using the image; 将创建的负载均衡实例和创建的弹性公网IP地址进行关联;Associate the created load balancing instance with the created elastic public IP address; 向所述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给所述终端。Sending application deployment completion prompt information to the terminal, and sending the associated elastic public network IP address to the terminal. 2.根据权利要求1所述的方法,其中,所述方法还包括:2. The method of claim 1, wherein the method further comprises: 向容器集群管理系统提供预先设置的路由创建接口,其中,所述容器集群管理系统用于对运行所述应用的容器集群进行管理;providing a preset route creation interface to a container cluster management system, wherein the container cluster management system is used to manage the container cluster running the application; 响应于确定所述容器集群管理系统调用所述路由创建接口,根据所述用户对应的私有网络生成实例路由表,以及根据所述实例路由生成路由表,其中,所述路由表用于实现所述容器集群中不同节点间工作负载单元之间的网络通信。In response to determining that the container cluster management system invokes the route creation interface, generate an instance routing table according to the private network corresponding to the user, and generate a routing table according to the instance route, wherein the routing table is used to implement the Network communication between workload units between different nodes in a container cluster. 3.根据权利要求1所述的方法,其中,所述创建负载均衡实例,包括:3. The method according to claim 1, wherein said creating a load balancing instance comprises: 响应于确定不存在针对所述应用的负载均衡实例,创建针对所述应用的负载均衡实例;creating a load balancing instance for the application in response to determining that no load balancing instance exists for the application; 为所述应用的负载均衡实例创建至少一个监听器,其中,监听器用于定义负载均衡策略和转发规则;Create at least one listener for the load balancing instance of the application, where the listener is used to define load balancing policies and forwarding rules; 为所述应用的负载均衡实例添加后端服务。Add a backend service for the load balancing instance of the application in question. 4.根据权利要求1所述的方法,其中,在创建负载均衡实例之前,所述方法还包括:4. The method according to claim 1, wherein, before creating the load balancing instance, the method further comprises: 接收所述用户所使用终端发送的虚拟机设置信息,其中,所述虚拟机设置信息用于设置至少一台虚拟机;receiving virtual machine setting information sent by the terminal used by the user, wherein the virtual machine setting information is used to set at least one virtual machine; 根据所述虚拟机设置信息设置至少一台虚拟机,以及基于所述至少一台虚拟机创建容器集群。Setting at least one virtual machine according to the virtual machine setting information, and creating a container cluster based on the at least one virtual machine. 5.根据权利要求4所述的方法,其中,所述方法还包括:5. The method of claim 4, wherein the method further comprises: 设置接口,以供容器集群管理系统通过调用接口实现对容器集群管理,其中,所述接口包括以下至少一项:负载均衡创建接口、节点信息获取接口、可用区信息获取接口、路由创建接口、持久化存储打标签接口。Set an interface for the container cluster management system to implement container cluster management by calling the interface, wherein the interface includes at least one of the following: load balancing creation interface, node information acquisition interface, availability zone information acquisition interface, route creation interface, persistent storage labeling interface. 6.一种用于部署应用的装置,包括:6. An apparatus for deploying an application, comprising: 接收单元,被配置成接收用户所使用终端发送的、用于部署应用的应用部署请求,其中,所述应用部署请求包括配置参数和镜像,其中,所述配置参数包括访问类型;The receiving unit is configured to receive an application deployment request for deploying an application sent by a terminal used by a user, where the application deployment request includes configuration parameters and images, where the configuration parameters include an access type; 确定单元,被配置成根据所述访问类型确定是否针对所述应用提供负载均衡服务;a determining unit configured to determine whether to provide a load balancing service for the application according to the access type; 创建单元,被配置成响应于确定针对所述应用提供负载均衡服务,创建负载均衡实例,以及创建弹性公网IP地址,其中,所述负载均衡实例添加有使用所述镜像创建的后端服务;The creating unit is configured to create a load balancing instance and create an elastic public network IP address in response to determining that a load balancing service is provided for the application, wherein the load balancing instance is added with a backend service created using the image; 关联单元,被配置成将创建的负载均衡实例和创建的弹性公网IP地址进行关联;The association unit is configured to associate the created load balancing instance with the created elastic public network IP address; 发送单元,被配置成向所述终端发送应用部署完成提示信息,以及将关联后的弹性公网IP地址发送给所述终端。The sending unit is configured to send application deployment completion prompt information to the terminal, and send the associated elastic public network IP address to the terminal. 7.根据权利要求6所述的装置,其中,所述装置还包括:7. The apparatus of claim 6, wherein the apparatus further comprises: 提供单元,被配置成向容器集群管理系统提供预先设置的路由创建接口,其中,所述容器集群管理系统用于对运行所述应用的容器集群进行管理;A providing unit configured to provide a preset route creation interface to a container cluster management system, wherein the container cluster management system is used to manage the container cluster running the application; 生成单元,被配置成响应于确定所述容器集群管理系统调用所述路由创建接口,根据所述用户对应的私有网络生成实例路由表,以及根据所述实例路由生成路由表,其中,所述路由表用于实现所述容器集群中不同节点间工作负载单元之间的网络通信。A generation unit configured to generate an instance routing table according to the private network corresponding to the user in response to determining that the container cluster management system invokes the route creation interface, and generate a routing table according to the instance route, wherein the route The table is used to implement network communication between workload units among different nodes in the container cluster. 8.根据权利要求6所述的装置,其中,所述创建单元进一步被配置成:8. The apparatus according to claim 6, wherein the creating unit is further configured to: 响应于确定不存在针对所述应用的负载均衡实例,创建针对所述应用的负载均衡实例;creating a load balancing instance for the application in response to determining that no load balancing instance exists for the application; 为所述应用的负载均衡实例创建至少一个监听器,其中,监听器用于定义负载均衡策略和转发规则;Create at least one listener for the load balancing instance of the application, where the listener is used to define load balancing policies and forwarding rules; 为所述应用的负载均衡实例添加后端服务。Add a backend service for the load balancing instance of the application in question. 9.根据权利要求6所述的装置,其中,所述装置还包括第一设置单元,所述第一设置单元被配置成:9. The device according to claim 6, wherein the device further comprises a first setting unit configured to: 接收所述用户所使用终端发送的虚拟机设置信息,其中,所述虚拟机设置信息用于设置至少一台虚拟机;receiving virtual machine setting information sent by the terminal used by the user, wherein the virtual machine setting information is used to set at least one virtual machine; 根据所述虚拟机设置信息设置至少一台虚拟机,以及基于所述至少一台虚拟机创建容器集群。Setting at least one virtual machine according to the virtual machine setting information, and creating a container cluster based on the at least one virtual machine. 10.根据权利要求9所述的装置,其中,所述装置还包括:10. The apparatus of claim 9, wherein the apparatus further comprises: 第二设置单元,被配置成设置接口,以供容器集群管理系统通过调用接口实现对容器集群管理,其中,所述接口包括以下至少一项:负载均衡创建接口、节点信息获取接口、可用区信息获取接口、路由创建接口、持久化存储打标签接口。The second setting unit is configured to set an interface for the container cluster management system to implement container cluster management by calling the interface, wherein the interface includes at least one of the following: load balancing creation interface, node information acquisition interface, availability zone information Interface for acquisition, interface for route creation, interface for persistent storage and labeling. 11.一种服务器,包括:11. A server, comprising: 一个或多个处理器;one or more processors; 存储装置,其上存储有一个或多个程序,a storage device on which one or more programs are stored, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the method according to any one of claims 1-5. 12.一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-5中任一所述的方法。12. A computer-readable medium, on which a computer program is stored, wherein, when the program is executed by a processor, the method according to any one of claims 1-5 is realized.
CN201810865576.2A 2018-08-01 2018-08-01 Method and apparatus for application deployment Pending CN109032760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810865576.2A CN109032760A (en) 2018-08-01 2018-08-01 Method and apparatus for application deployment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810865576.2A CN109032760A (en) 2018-08-01 2018-08-01 Method and apparatus for application deployment

Publications (1)

Publication Number Publication Date
CN109032760A true CN109032760A (en) 2018-12-18

Family

ID=64647494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810865576.2A Pending CN109032760A (en) 2018-08-01 2018-08-01 Method and apparatus for application deployment

Country Status (1)

Country Link
CN (1) CN109032760A (en)

Cited By (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743415A (en) * 2019-02-27 2019-05-10 上海浪潮云计算服务有限公司 A kind of public cloud network resilience IP realization method and system
CN109947537A (en) * 2019-03-28 2019-06-28 山东浪潮云信息技术有限公司 Create the system and method for cloud container service
CN109976771A (en) * 2019-03-28 2019-07-05 新华三技术有限公司 A kind of dispositions method and device of application
CN109995878A (en) * 2019-04-12 2019-07-09 成都四方伟业软件股份有限公司 Resource share method and distributed cluster system
CN110225078A (en) * 2019-04-26 2019-09-10 深圳法大大网络科技有限公司 A kind of application service update method, system and terminal device
CN110224860A (en) * 2019-05-17 2019-09-10 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium
CN110262894A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Load balancing application management method, device, computer equipment and storage medium
CN110266679A (en) * 2019-06-14 2019-09-20 腾讯科技(成都)有限公司 Capacitor network partition method and device
CN110278243A (en) * 2019-05-17 2019-09-24 平安科技(深圳)有限公司 Load balancing application management method, device, computer equipment and storage medium
CN110289983A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium
CN110545336A (en) * 2019-09-06 2019-12-06 深圳平安通信科技有限公司 IP address replacing method, device, computer equipment and storage medium
CN110611697A (en) * 2019-08-02 2019-12-24 杭州网银互联科技股份有限公司 Network architecture and network deployment method of hybrid cloud
CN110995561A (en) * 2019-12-06 2020-04-10 中国科学院信息工程研究所 Virtual network data communication interaction method and system based on container technology
CN110995464A (en) * 2019-11-05 2020-04-10 珠海许继芝电网自动化有限公司 A centralized and distributed low-voltage station area monitoring and deployment method and system
CN111193783A (en) * 2019-12-19 2020-05-22 新浪网技术(中国)有限公司 Service access processing method and device
CN111314461A (en) * 2020-02-14 2020-06-19 北京百度网讯科技有限公司 IP mounting, data processing method and device
CN111314368A (en) * 2020-02-27 2020-06-19 紫光云技术有限公司 Method for realizing tube renting intercommunication by using load balancer
CN111371685A (en) * 2020-02-28 2020-07-03 北京百度网讯科技有限公司 Data processing and IPv6 mounting method and device
CN111399855A (en) * 2020-03-09 2020-07-10 山东汇贸电子口岸有限公司 Automatic application instance publishing method based on container technology
CN111427949A (en) * 2019-01-09 2020-07-17 杭州海康威视数字技术股份有限公司 Method and device for creating big data service
CN111510515A (en) * 2020-04-07 2020-08-07 中国建设银行股份有限公司 Method and device for distinguishing containers of mixed application environment
CN111538545A (en) * 2020-04-23 2020-08-14 京东方科技集团股份有限公司 Java application running method, device, medium and electronic equipment
CN111683139A (en) * 2020-06-05 2020-09-18 北京百度网讯科技有限公司 Method and apparatus for load balancing
CN111984269A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Method for providing application construction service and application construction platform
CN111984270A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Application deployment method and system
CN112231044A (en) * 2020-09-04 2021-01-15 北京金山云网络技术有限公司 Method for detecting health of safety container, electronic device and medium
CN112231043A (en) * 2020-09-04 2021-01-15 北京金山云网络技术有限公司 Method for detecting health of safety container, electronic device and medium
CN112445511A (en) * 2019-08-28 2021-03-05 北京东土科技股份有限公司 Cloud application creation method and device based on industrial cloud platform, terminal and server
CN112491940A (en) * 2019-09-12 2021-03-12 北京京东振世信息技术有限公司 Request forwarding method and device of proxy server, storage medium and electronic equipment
CN112764886A (en) * 2021-01-29 2021-05-07 上海弘积信息科技有限公司 Load balancing controller based on Kubernetes platform
CN112882792A (en) * 2021-02-03 2021-06-01 天津五八到家货运服务有限公司 Information loading method, computer device and storage medium
CN113268308A (en) * 2020-02-14 2021-08-17 中移(苏州)软件技术有限公司 Information processing method, device and storage medium
CN113301089A (en) * 2020-07-28 2021-08-24 阿里巴巴集团控股有限公司 Cloud service node deployment method and device
CN113347043A (en) * 2021-06-25 2021-09-03 武汉悦学帮网络技术有限公司 Gateway management method, device, gateway management platform and storage medium
CN113364727A (en) * 2020-03-05 2021-09-07 北京金山云网络技术有限公司 Container cluster system, container console and server
CN113572689A (en) * 2021-09-24 2021-10-29 深圳市信润富联数字科技有限公司 Microservice gateway management method, system, device, readable storage medium and product
CN113676501A (en) * 2020-05-13 2021-11-19 北京金山云网络技术有限公司 Application deployment method and device based on Kubernetes cluster and electronic equipment
CN114338670A (en) * 2021-12-24 2022-04-12 中汽创智科技有限公司 Edge cloud platform and three-level cloud control platform for internet traffic with same
CN114500545A (en) * 2022-01-24 2022-05-13 杭州博盾习言科技有限公司 Network load balancing method and device suitable for container and electronic equipment
CN114885024A (en) * 2022-04-28 2022-08-09 远景智能国际私人投资有限公司 Routing method, device, equipment and medium of application example
CN114938394A (en) * 2022-04-13 2022-08-23 京东科技信息技术有限公司 Cross-cluster network control method, device, equipment and storage medium
CN115022317A (en) * 2022-05-27 2022-09-06 亚信科技(中国)有限公司 Application management method and device based on cloud platform, electronic equipment and storage medium
CN117544424A (en) * 2024-01-09 2024-02-09 万洲嘉智信息科技有限公司 Multi-protocol intelligent park management and control platform based on ubiquitous connection
CN118524141A (en) * 2024-03-12 2024-08-20 凌锐蓝信科技(北京)有限公司 Intelligent acceleration engine, method, device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2717158A1 (en) * 2012-08-21 2014-04-09 Huawei Technologies Co., Ltd. Method and device for integrating virtualized cluster, and virtualized cluster system
US20140280959A1 (en) * 2013-03-15 2014-09-18 Eric J. Bauer Application server instance selection based on protocol latency information
CN107733991A (en) * 2017-09-19 2018-02-23 大唐网络有限公司 One kind provides load balancing service implementation method based on OpenStack frameworks
CN108108223A (en) * 2017-11-30 2018-06-01 国网浙江省电力公司信息通信分公司 Container Management platform based on Kubernetes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2717158A1 (en) * 2012-08-21 2014-04-09 Huawei Technologies Co., Ltd. Method and device for integrating virtualized cluster, and virtualized cluster system
US20140280959A1 (en) * 2013-03-15 2014-09-18 Eric J. Bauer Application server instance selection based on protocol latency information
CN107733991A (en) * 2017-09-19 2018-02-23 大唐网络有限公司 One kind provides load balancing service implementation method based on OpenStack frameworks
CN108108223A (en) * 2017-11-30 2018-06-01 国网浙江省电力公司信息通信分公司 Container Management platform based on Kubernetes

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
VIPUL TANKARIYA等: "《AWS Certified Developer-Associate Guide》", 30 September 2017, PACKT PUBLISHING *
史绍虎: "Kubernetes基础组件概述", 《HTTP://DOCKONE.IO/ARTICLE/2288》 *
易立: "Serverless Kubernetes 快速入门指南", 《HTTPS://DEVELOPER.ALIYUN.COM/ARTICLE/591115》 *
树岸等: "基于容器技术的云计算资源自适应管理方法", 《计算机科学》 *

Cited By (66)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427949B (en) * 2019-01-09 2023-10-20 杭州海康威视数字技术股份有限公司 Method and device for creating big data service
CN111427949A (en) * 2019-01-09 2020-07-17 杭州海康威视数字技术股份有限公司 Method and device for creating big data service
CN109743415A (en) * 2019-02-27 2019-05-10 上海浪潮云计算服务有限公司 A kind of public cloud network resilience IP realization method and system
CN109743415B (en) * 2019-02-27 2021-11-19 上海浪潮云计算服务有限公司 Public cloud network elastic IP implementation method and system
CN109947537A (en) * 2019-03-28 2019-06-28 山东浪潮云信息技术有限公司 Create the system and method for cloud container service
CN109976771A (en) * 2019-03-28 2019-07-05 新华三技术有限公司 A kind of dispositions method and device of application
CN109995878A (en) * 2019-04-12 2019-07-09 成都四方伟业软件股份有限公司 Resource share method and distributed cluster system
CN110225078B (en) * 2019-04-26 2022-05-13 深圳法大大网络科技有限公司 Application service updating method, system and terminal equipment
CN110225078A (en) * 2019-04-26 2019-09-10 深圳法大大网络科技有限公司 A kind of application service update method, system and terminal device
CN110262894A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Load balancing application management method, device, computer equipment and storage medium
CN110289983A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium
CN110224860B (en) * 2019-05-17 2023-05-26 平安科技(深圳)有限公司 Load balancing application creation method and device, computer equipment and storage medium
CN110262894B (en) * 2019-05-17 2023-09-01 平安科技(深圳)有限公司 Load balancing application management method and device, computer equipment and storage medium
CN110278243A (en) * 2019-05-17 2019-09-24 平安科技(深圳)有限公司 Load balancing application management method, device, computer equipment and storage medium
CN110224860A (en) * 2019-05-17 2019-09-10 平安科技(深圳)有限公司 Load balancing application creation method, device, computer equipment and storage medium
CN110266679A (en) * 2019-06-14 2019-09-20 腾讯科技(成都)有限公司 Capacitor network partition method and device
CN110266679B (en) * 2019-06-14 2023-02-28 腾讯科技(成都)有限公司 Container network isolation method and device
CN110611697A (en) * 2019-08-02 2019-12-24 杭州网银互联科技股份有限公司 Network architecture and network deployment method of hybrid cloud
CN110611697B (en) * 2019-08-02 2020-07-07 杭州网银互联科技股份有限公司 Network architecture system and network deployment method of hybrid cloud
CN112445511A (en) * 2019-08-28 2021-03-05 北京东土科技股份有限公司 Cloud application creation method and device based on industrial cloud platform, terminal and server
CN110545336B (en) * 2019-09-06 2023-06-23 深圳平安通信科技有限公司 IP address replacement method, device, computer equipment and storage medium
CN110545336A (en) * 2019-09-06 2019-12-06 深圳平安通信科技有限公司 IP address replacing method, device, computer equipment and storage medium
CN112491940B (en) * 2019-09-12 2024-05-24 北京京东振世信息技术有限公司 Request forwarding method and device of proxy server, storage medium and electronic equipment
CN112491940A (en) * 2019-09-12 2021-03-12 北京京东振世信息技术有限公司 Request forwarding method and device of proxy server, storage medium and electronic equipment
CN110995464A (en) * 2019-11-05 2020-04-10 珠海许继芝电网自动化有限公司 A centralized and distributed low-voltage station area monitoring and deployment method and system
CN110995561A (en) * 2019-12-06 2020-04-10 中国科学院信息工程研究所 Virtual network data communication interaction method and system based on container technology
CN111193783A (en) * 2019-12-19 2020-05-22 新浪网技术(中国)有限公司 Service access processing method and device
CN111314461A (en) * 2020-02-14 2020-06-19 北京百度网讯科技有限公司 IP mounting, data processing method and device
CN113268308B (en) * 2020-02-14 2023-04-07 中移(苏州)软件技术有限公司 Information processing method, device and storage medium
CN113268308A (en) * 2020-02-14 2021-08-17 中移(苏州)软件技术有限公司 Information processing method, device and storage medium
CN111314368A (en) * 2020-02-27 2020-06-19 紫光云技术有限公司 Method for realizing tube renting intercommunication by using load balancer
CN111314368B (en) * 2020-02-27 2022-06-07 紫光云技术有限公司 Method for realizing tube renting intercommunication by using load balancer
CN111371685A (en) * 2020-02-28 2020-07-03 北京百度网讯科技有限公司 Data processing and IPv6 mounting method and device
CN111371685B (en) * 2020-02-28 2022-06-17 北京百度网讯科技有限公司 Data processing and IPv6 mounting method and device
CN113364727A (en) * 2020-03-05 2021-09-07 北京金山云网络技术有限公司 Container cluster system, container console and server
CN113364727B (en) * 2020-03-05 2023-04-18 北京金山云网络技术有限公司 Container cluster system, container console and server
CN111399855A (en) * 2020-03-09 2020-07-10 山东汇贸电子口岸有限公司 Automatic application instance publishing method based on container technology
CN111399855B (en) * 2020-03-09 2023-10-20 山东省电子口岸有限公司 Automatic application instance publishing method based on container technology
CN111510515A (en) * 2020-04-07 2020-08-07 中国建设银行股份有限公司 Method and device for distinguishing containers of mixed application environment
CN111538545A (en) * 2020-04-23 2020-08-14 京东方科技集团股份有限公司 Java application running method, device, medium and electronic equipment
CN113676501A (en) * 2020-05-13 2021-11-19 北京金山云网络技术有限公司 Application deployment method and device based on Kubernetes cluster and electronic equipment
CN111683139A (en) * 2020-06-05 2020-09-18 北京百度网讯科技有限公司 Method and apparatus for load balancing
CN113301089A (en) * 2020-07-28 2021-08-24 阿里巴巴集团控股有限公司 Cloud service node deployment method and device
CN111984269B (en) * 2020-08-20 2024-01-23 第四范式(北京)技术有限公司 Method for providing application construction service and application construction platform
CN111984269A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Method for providing application construction service and application construction platform
CN111984270A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Application deployment method and system
CN112231043A (en) * 2020-09-04 2021-01-15 北京金山云网络技术有限公司 Method for detecting health of safety container, electronic device and medium
CN112231044A (en) * 2020-09-04 2021-01-15 北京金山云网络技术有限公司 Method for detecting health of safety container, electronic device and medium
CN112764886A (en) * 2021-01-29 2021-05-07 上海弘积信息科技有限公司 Load balancing controller based on Kubernetes platform
CN112882792A (en) * 2021-02-03 2021-06-01 天津五八到家货运服务有限公司 Information loading method, computer device and storage medium
CN113347043B (en) * 2021-06-25 2022-11-22 武汉悦学帮网络技术有限公司 Gateway management method, device, gateway management platform and storage medium
CN113347043A (en) * 2021-06-25 2021-09-03 武汉悦学帮网络技术有限公司 Gateway management method, device, gateway management platform and storage medium
CN113572689A (en) * 2021-09-24 2021-10-29 深圳市信润富联数字科技有限公司 Microservice gateway management method, system, device, readable storage medium and product
CN114338670A (en) * 2021-12-24 2022-04-12 中汽创智科技有限公司 Edge cloud platform and three-level cloud control platform for internet traffic with same
CN114338670B (en) * 2021-12-24 2023-12-26 中汽创智科技有限公司 Edge cloud platform and network-connected traffic three-level cloud control platform with same
CN114500545B (en) * 2022-01-24 2024-07-26 杭州博盾习言科技有限公司 Network load balancing method and device suitable for container and electronic equipment
CN114500545A (en) * 2022-01-24 2022-05-13 杭州博盾习言科技有限公司 Network load balancing method and device suitable for container and electronic equipment
CN114938394B (en) * 2022-04-13 2024-05-17 京东科技信息技术有限公司 Cross-cluster network control method, device, equipment and storage medium
CN114938394A (en) * 2022-04-13 2022-08-23 京东科技信息技术有限公司 Cross-cluster network control method, device, equipment and storage medium
CN114885024B (en) * 2022-04-28 2023-09-12 远景智能国际私人投资有限公司 Routing method, device, equipment and medium of application instance
CN114885024A (en) * 2022-04-28 2022-08-09 远景智能国际私人投资有限公司 Routing method, device, equipment and medium of application example
CN115022317B (en) * 2022-05-27 2024-03-08 亚信科技(中国)有限公司 Cloud platform-based application management method and device, electronic equipment and storage medium
CN115022317A (en) * 2022-05-27 2022-09-06 亚信科技(中国)有限公司 Application management method and device based on cloud platform, electronic equipment and storage medium
CN117544424B (en) * 2024-01-09 2024-03-15 万洲嘉智信息科技有限公司 Multi-protocol intelligent park management and control platform based on ubiquitous connection
CN117544424A (en) * 2024-01-09 2024-02-09 万洲嘉智信息科技有限公司 Multi-protocol intelligent park management and control platform based on ubiquitous connection
CN118524141A (en) * 2024-03-12 2024-08-20 凌锐蓝信科技(北京)有限公司 Intelligent acceleration engine, method, device and computer equipment

Similar Documents

Publication Publication Date Title
CN109032760A (en) Method and apparatus for application deployment
US11095711B2 (en) DNS Resolution of internal tenant-specific domain addresses in a multi-tenant computing environment
JP7203444B2 (en) Selectively provide mutual transport layer security using alternate server names
US9674275B1 (en) Providing a file system interface to network-accessible computing resources
CN113301116B (en) Cross-network communication method, device, system and equipment for micro-service application
CN103946834A (en) Virtual network interface objects
CN108282507B (en) Method and device for application release in CaaS environment and electronic equipment
US11177974B2 (en) Consistent provision of member node group information on virtual overlay network
US12074918B2 (en) Network-based Media Processing (NBMP) workflow management through 5G Framework for Live Uplink Streaming (FLUS) control
CN109542862B (en) Method, device and system for controlling mounting of file system
US10291709B2 (en) Protocol independent storage discovery and enablement
US12267421B2 (en) Post quantum secure ingress/egress network communication
US11632411B2 (en) Method and apparatus for cascaded multi-input content preparation templates for 5G networks
CN106161501A (en) The data sharing method of virtual desktop and device
EP4000239B1 (en) 3rd generation partnership project (3gpp) framework for live uplink streaming (flus) sink capabilities determination
JP7496870B2 (en) Communication with application flows in an integrated system
US11910412B2 (en) Media sink capabilities description
HK40059141A (en) Micro-service application cross-network communication method, device, system and equipment
HK40072098A (en) Network-based media processing (nbmp) workflow management through 5g framework for live uplink streaming (flus) control
WO2022211848A1 (en) Method and apparatus for reverse address mapping when using content preparation in 5g networks

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