CN113852669A - Efficient container cluster deployment method suitable for various network environments - Google Patents

Efficient container cluster deployment method suitable for various network environments Download PDF

Info

Publication number
CN113852669A
CN113852669A CN202111030549.1A CN202111030549A CN113852669A CN 113852669 A CN113852669 A CN 113852669A CN 202111030549 A CN202111030549 A CN 202111030549A CN 113852669 A CN113852669 A CN 113852669A
Authority
CN
China
Prior art keywords
cluster
deployment
tenant
network
host
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.)
Granted
Application number
CN202111030549.1A
Other languages
Chinese (zh)
Other versions
CN113852669B (en
Inventor
谭术强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unicloud Nanjing Digital Technology Co Ltd
Original Assignee
Unicloud Nanjing Digital 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 Unicloud Nanjing Digital Technology Co Ltd filed Critical Unicloud Nanjing Digital Technology Co Ltd
Priority to CN202111030549.1A priority Critical patent/CN113852669B/en
Publication of CN113852669A publication Critical patent/CN113852669A/en
Application granted granted Critical
Publication of CN113852669B publication Critical patent/CN113852669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • 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/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention relates to the technical field of distributed systems, and particularly discloses an efficient container cluster deployment method suitable for various network environments. By migrating the cluster deployment from the management network to the tenant network, the dependence on the network environment can be effectively reduced, the resource consumption of the management network can be reduced, and the cluster deployment success rate can be improved.

Description

Efficient container cluster deployment method suitable for various network environments
Technical Field
The invention relates to the technical field of distributed systems, in particular to an efficient container cluster deployment method suitable for various network environments.
Background
At present, various standard schemes exist for kubernets cluster deployment, but each scheme only reflects how to perform kubernets cluster deployment. While the production cluster deployment scenario in a particular network environment and scenario is not addressed.
In view of this, the invention provides an efficient container cluster deployment method suitable for various network environments.
Disclosure of Invention
The invention aims to provide an efficient container cluster deployment method suitable for various network environments, and a production cluster deployment scheme can be carried out under specific network environments and scenes.
In order to achieve the above object, the present invention provides an efficient container cluster deployment method adapted to multiple network environments, including the following steps:
creating a management network;
selecting a nginx proxy;
forming a tenant network based on a plurality of tenant host combinations;
and connecting the management network and the tenant network based on the nginx.
And cluster management service is created in the management network, and the cluster management service is in communication connection with the nginx.
Wherein, form the tenant network based on a plurality of tenant host combinations, include:
selecting a cluster host system mirror image to create a tenant host;
and fusing a plurality of tenant hosts to construct the tenant network.
Wherein connecting the management network and the tenant network based on the nginx comprises:
the cluster deployment script kubspray and the deployment cluster agent are built in a tenant host;
providing a cluster deployment interface for the outside by using a deployment cluster agent;
sending out a cluster deployment request based on the cluster management service of the management network;
and forwarding the cluster deployment request to a deployment cluster agent of the tenant host through the nginx to perform cluster deployment.
Wherein, the cluster deployment is carried out in the deployment cluster agent which forwards the cluster deployment request to the tenant host through the nginx, and the method comprises the following steps:
and subsequent cluster deployment is carried out in the tenant network.
Wherein, in the step of performing cluster deployment in the deployment cluster agent forwarding the deployment request to the tenant host through the nginx, the cluster deployment is performed by:
and if the cluster is in a concurrent scene, deploying each cluster in each tenant host.
According to the efficient container cluster deployment method suitable for various network environments, the cluster deployment script kubes and the deployment cluster agent are built in a tenant host, the deployment cluster agent provides a cluster deployment interface for the outside, and cluster deployment requests of a management network cluster management service are forwarded to the deployment cluster agent of the tenant host through nginx to perform cluster deployment. By migrating the cluster deployment from the management network to the tenant network, the dependence on the network environment can be effectively reduced, the resource consumption of the management network can be reduced, and the cluster deployment success rate can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a functional block diagram of the efficient container cluster deployment method of the present invention that is adaptable to a variety of network environments.
FIG. 2 is a schematic diagram of the efficient container cluster deployment method of the present invention that accommodates a variety of network environments.
FIG. 3 is a flow chart of the steps of the method for efficient container cluster deployment for accommodating multiple network environments of the present invention.
Detailed Description
Referring to fig. 1, the present invention provides an efficient container cluster deployment method adapted to multiple network environments, including the following steps:
s1: creating a management network;
s2: selecting a nginx proxy;
s3: forming a tenant network based on a plurality of tenant host combinations;
s4: and connecting the management network and the tenant network based on the nginx.
And cluster management service is created in the management network, and the cluster management service is in communication connection with the nginx.
Forming a tenant network based on a plurality of tenant host combinations, comprising:
selecting a cluster host system mirror image to create a tenant host;
and fusing a plurality of tenant hosts to construct the tenant network.
Connecting the management network and the tenant network based on the nginx, comprising:
s41: the cluster deployment script kubspray and the deployment cluster agent are built in a tenant host;
s42: providing a cluster deployment interface for the outside by using a deployment cluster agent;
s43: sending out a cluster deployment request based on the cluster management service of the management network;
s44: and forwarding the cluster deployment request to a deployment cluster agent of the tenant host through the nginx to perform cluster deployment.
Performing cluster deployment in a deployment cluster agent that forwards a cluster deployment request to a tenant host through the nginx, comprising:
and subsequent cluster deployment is carried out in the tenant network.
In the step of performing cluster deployment in the deployment cluster agent forwarding the deployment request to the tenant host through the nginx, the cluster deployment method comprises the following steps:
and if the cluster is in a concurrent scene, deploying each cluster in each tenant host.
And the deployment cluster agent is automatically started along with the tenant host.
And if the cluster deployment script kubspray of the subsequent tenant host needs to be upgraded, calling an upgrade deployment cluster agent interface in the tenant host to complete the upgrade deployment.
And if the deployment cluster agent of the subsequent tenant host needs to be upgraded, calling an upgrading deployment cluster agent interface in the tenant host to complete the upgrading deployment cluster agent interface.
The cluster deployment script kubspray is built in the tenant host, the tenant host is built with a deployment cluster agent, the agent is automatically started along with the tenant host, a cluster deployment interface is externally provided by the agent, and a cluster management service cluster deployment request of a management network is forwarded to the agent of the tenant host through nginx for cluster deployment.
The method comprises the steps that a cluster deployment script kubspray, a cluster agent deployment service and an agent upgrading service are built in a cluster host system mirror image, and after a cluster host system mirror image creation host is selected, the cluster deployment script kubspray, the cluster agent deployment service and the like are built in a tenant host. And forwarding the cluster deployment request of the management network to the agent of the tenant host through nginx, wherein the subsequent cluster deployment is carried out inside the tenant network. Under a concurrent scene, each cluster is deployed in each tenant host, and dependence and interference do not exist. And calling an upgrade agent interface in the tenant host to finish the upgrading when the kubspray and the deployment cluster agent of the subsequent tenant host need upgrading.
By migrating the cluster deployment from the management network to the tenant network, the subsequent cluster deployment process is carried out inside the tenant network, so that the cluster deployment efficiency is greatly improved, and the consumption of the cluster deployment on the resources of the management area is reduced; the tenant host provides a cluster deployment interface externally, when communication between the management network and the tenant network is limited, the cluster deployment interface only needs to be forwarded through the springboard machine, the requirement on the network is low, and the tenant network management system can adapt to more network environments.
The efficient container cluster deployment method suitable for various network environments provided by the invention migrates cluster deployment from a management network to a tenant network, and is an applicable scheme for reducing network environment dependence, reducing resource consumption of the management network and improving cluster deployment success rate. The cluster agent is arranged in the tenant host, so that clusters are arranged in the tenant network, the cluster arrangement success rate is improved, and the consumption of management network resources is reduced. And the tenant host deploys the cluster agent to provide a cluster deployment interface for the outside, and the cluster deployment request of the management network is forwarded through nginx, so that the dependence on the network environment is reduced.
In conclusion, the efficient container cluster deployment method suitable for various network environments can reduce the dependence of cluster deployment on the network environments; the success rate of cluster deployment is improved; the consumption of management network resources by cluster deployment is reduced; under a concurrent scene, the cluster deployment does not have dependence and interference with each other.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. An efficient container cluster deployment method suitable for various network environments is characterized by comprising the following steps:
creating a management network;
selecting a nginx proxy;
forming a tenant network based on a plurality of tenant host combinations;
and connecting the management network and the tenant network based on the nginx.
2. The method for efficient container cluster deployment across multiple network environments of claim 1,
and cluster management service is created in the management network, and the cluster management service is in communication connection with the nginx.
3. The method for efficient container cluster deployment in multiple network environments according to claim 2, wherein forming a tenant network based on a combination of a plurality of tenant hosts comprises:
selecting a cluster host system mirror image to create a tenant host;
and fusing a plurality of tenant hosts to construct the tenant network.
4. An efficient container cluster deployment method to accommodate multiple network environments as recited in claim 3, wherein connecting the management network and the tenant network based on the nginx comprises:
the cluster deployment script kubspray and the deployment cluster agent are built in a tenant host;
providing a cluster deployment interface for the outside by using a deployment cluster agent;
sending out a cluster deployment request based on the cluster management service of the management network;
and forwarding the cluster deployment request to a deployment cluster agent of the tenant host through the nginx to perform cluster deployment.
5. The efficient container cluster deployment method for multiple network environments as recited in claim 4, wherein the cluster deployment is performed in a deployment cluster agent that forwards the cluster deployment request to the tenant host through the nginx, and comprises:
and subsequent cluster deployment is carried out in the tenant network.
6. The efficient container cluster deployment method for multiple network environments according to claim 5, wherein in the step of performing cluster deployment in the deployment cluster agent forwarding the deployment request to the tenant host through the nginx, the step of:
and if the cluster is in a concurrent scene, deploying each cluster in each tenant host.
CN202111030549.1A 2021-09-03 2021-09-03 Efficient container cluster deployment method suitable for various network environments Active CN113852669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111030549.1A CN113852669B (en) 2021-09-03 2021-09-03 Efficient container cluster deployment method suitable for various network environments

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111030549.1A CN113852669B (en) 2021-09-03 2021-09-03 Efficient container cluster deployment method suitable for various network environments

Publications (2)

Publication Number Publication Date
CN113852669A true CN113852669A (en) 2021-12-28
CN113852669B CN113852669B (en) 2024-01-12

Family

ID=78973130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111030549.1A Active CN113852669B (en) 2021-09-03 2021-09-03 Efficient container cluster deployment method suitable for various network environments

Country Status (1)

Country Link
CN (1) CN113852669B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3261290A1 (en) * 2015-12-31 2017-12-27 Huawei Technologies Co., Ltd. Software defined data center and method for deploying service cluster therein
CN107896250A (en) * 2017-11-16 2018-04-10 优公里(北京)网络技术有限公司 A kind of method of the multi-tenant data dynamic migration based on SaaS
WO2018077198A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Method, apparatus, and system for deploying virtual network
CN108551399A (en) * 2018-03-29 2018-09-18 深信服科技股份有限公司 Dispositions method, system and the relevant apparatus serviced under a kind of cloud environment
CN109104318A (en) * 2018-08-23 2018-12-28 广东轩辕网络科技股份有限公司 The dispositions method and system of method for realizing cluster self-adaption deployment, the self-adaption deployment big data cluster based on cloud platform
CN109314704A (en) * 2016-09-14 2019-02-05 甲骨文国际公司 Function is nullified for multi-tenant identity and the single-sign-on and single-point of data safety management cloud service
US20190102206A1 (en) * 2017-09-30 2019-04-04 Oracle International Corporation Leveraging microservice containers to provide tenant isolation in a multi-tenant api gateway
CN109617995A (en) * 2018-12-29 2019-04-12 北京金山云网络技术有限公司 To management system, method and the electronic equipment of tenant's cluster VPC internal container
EP3477504A1 (en) * 2017-10-26 2019-05-01 Sap Se Data separation and write redirection in multi-tenancy database systems
CN109889480A (en) * 2018-12-25 2019-06-14 武汉烽火信息集成技术有限公司 Based on container and the totally-domestic of cloud platform fusion cloud platform management method and system
CN110704164A (en) * 2019-09-30 2020-01-17 珠海市新德汇信息技术有限公司 Cloud native application platform construction method based on Kubernetes technology
US20200192651A1 (en) * 2018-12-13 2020-06-18 Salesforce.Com, Inc. Deployment of software applications on server clusters
CN111522628A (en) * 2020-04-27 2020-08-11 上海仪电(集团)有限公司中央研究院 Kubernets cluster building and deploying method, architecture and storage medium based on OpenStack
CN112035244A (en) * 2019-06-04 2020-12-04 慧与发展有限责任合伙企业 Deployment of virtual node clusters in a multi-tenant environment
CN112272145A (en) * 2020-10-26 2021-01-26 新华三信息安全技术有限公司 Message processing method, device, equipment and machine readable storage medium
CN112910685A (en) * 2021-01-13 2021-06-04 新华三大数据技术有限公司 Method and device for realizing unified management of container network
CN112953772A (en) * 2021-02-24 2021-06-11 紫光云技术有限公司 Method for one-way access of tenant area in management area

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3261290A1 (en) * 2015-12-31 2017-12-27 Huawei Technologies Co., Ltd. Software defined data center and method for deploying service cluster therein
CN109314704A (en) * 2016-09-14 2019-02-05 甲骨文国际公司 Function is nullified for multi-tenant identity and the single-sign-on and single-point of data safety management cloud service
WO2018077198A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Method, apparatus, and system for deploying virtual network
US20190102206A1 (en) * 2017-09-30 2019-04-04 Oracle International Corporation Leveraging microservice containers to provide tenant isolation in a multi-tenant api gateway
EP3477504A1 (en) * 2017-10-26 2019-05-01 Sap Se Data separation and write redirection in multi-tenancy database systems
CN107896250A (en) * 2017-11-16 2018-04-10 优公里(北京)网络技术有限公司 A kind of method of the multi-tenant data dynamic migration based on SaaS
CN108551399A (en) * 2018-03-29 2018-09-18 深信服科技股份有限公司 Dispositions method, system and the relevant apparatus serviced under a kind of cloud environment
CN109104318A (en) * 2018-08-23 2018-12-28 广东轩辕网络科技股份有限公司 The dispositions method and system of method for realizing cluster self-adaption deployment, the self-adaption deployment big data cluster based on cloud platform
US20200192651A1 (en) * 2018-12-13 2020-06-18 Salesforce.Com, Inc. Deployment of software applications on server clusters
CN109889480A (en) * 2018-12-25 2019-06-14 武汉烽火信息集成技术有限公司 Based on container and the totally-domestic of cloud platform fusion cloud platform management method and system
CN109617995A (en) * 2018-12-29 2019-04-12 北京金山云网络技术有限公司 To management system, method and the electronic equipment of tenant's cluster VPC internal container
CN112035244A (en) * 2019-06-04 2020-12-04 慧与发展有限责任合伙企业 Deployment of virtual node clusters in a multi-tenant environment
US20200387404A1 (en) * 2019-06-04 2020-12-10 Hewlett Packard Enterprise Development Lp Deployment of virtual node clusters in a multi-tenant environment
CN110704164A (en) * 2019-09-30 2020-01-17 珠海市新德汇信息技术有限公司 Cloud native application platform construction method based on Kubernetes technology
CN111522628A (en) * 2020-04-27 2020-08-11 上海仪电(集团)有限公司中央研究院 Kubernets cluster building and deploying method, architecture and storage medium based on OpenStack
CN112272145A (en) * 2020-10-26 2021-01-26 新华三信息安全技术有限公司 Message processing method, device, equipment and machine readable storage medium
CN112910685A (en) * 2021-01-13 2021-06-04 新华三大数据技术有限公司 Method and device for realizing unified management of container network
CN112953772A (en) * 2021-02-24 2021-06-11 紫光云技术有限公司 Method for one-way access of tenant area in management area

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SOMU: "Kubernetes cluster deployment using Kubespray", Retrieved from the Internet <URL:https://www.somu.us/2021/03/16/kubernetes> *
王磊;侯金奎;: "基于SaaS模式的家居营销服务平台", 计算机应用与软件, no. 01 *
黄艳;刘杨;: "一种基于三位一体的全云化大数据管控平台", 信息通信, no. 10 *

Also Published As

Publication number Publication date
CN113852669B (en) 2024-01-12

Similar Documents

Publication Publication Date Title
CN107769949B (en) Application component deployment method and deployment node
CN107105050B (en) Storage and downloading method and system for service objects
CN108572845B (en) Upgrading method of distributed micro-service cluster and related system
CN106484464B (en) Tuner chip driving method and electronic equipment
CN114070822B (en) Kubernetes Overlay IP address management method
CN111597061A (en) Method and device for remote procedure call of client or server
CN103326887B (en) A kind of interface managerial method and system
EP1684456B1 (en) A method for data redundancy of HLR
CN114615340B (en) Request processing method and device, computer equipment and storage device
CN104113435A (en) Method and device for generating identifier
CN103607429A (en) Cloud computing service realization method and system thereof
CN110138753B (en) Distributed message service system, method, apparatus, and computer-readable storage medium
JP2011147187A (en) System and method for correlating messages within wireless transaction
CN112799777B (en) Preheating scheduling method in assembly line
CN109787789B (en) Compatibility management method, device and equipment for software upgrading and storage medium
CN112261125B (en) Centralized unit cloud deployment method, device and system
CN105373415A (en) Virtualization based application storage method, execution method, apparatus and system
CN113852669A (en) Efficient container cluster deployment method suitable for various network environments
CN102130786B (en) Method and device for updating characteristics of single board
CN105827467B (en) A kind of registration center&#39;s upgrade method, relevant device and system
CN114443295A (en) Heterogeneous cloud resource management scheduling method, device and system
CN109347656B (en) Method and system for configuring virtual host uplink network card
CN112291096A (en) Bare metal server configuration method and device
KR102000162B1 (en) Apparatus and method for supporting software update of low specification device
CN109981796A (en) A kind of connection method and device

Legal Events

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