CN111880815B - Method for rapidly deploying Kubernetes in closed network environment - Google Patents

Method for rapidly deploying Kubernetes in closed network environment Download PDF

Info

Publication number
CN111880815B
CN111880815B CN202010677340.3A CN202010677340A CN111880815B CN 111880815 B CN111880815 B CN 111880815B CN 202010677340 A CN202010677340 A CN 202010677340A CN 111880815 B CN111880815 B CN 111880815B
Authority
CN
China
Prior art keywords
deployment
environment
installation
root node
kubernetes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010677340.3A
Other languages
Chinese (zh)
Other versions
CN111880815A (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.)
Beijing Langma Peak Technology Co ltd
Original Assignee
Beijing Langma Peak 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 Langma Peak Technology Co ltd filed Critical Beijing Langma Peak Technology Co ltd
Priority to CN202010677340.3A priority Critical patent/CN111880815B/en
Publication of CN111880815A publication Critical patent/CN111880815A/en
Application granted granted Critical
Publication of CN111880815B publication Critical patent/CN111880815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a method for rapidly deploying Kubernetes in a closed network environment, and relates to the field of computer software management or operation and maintenance. The method for rapidly deploying the Kubernetes in the closed network environment comprises the following technical scheme: s1, loading an initialization module, constructing a root node in a closed environment, S2, loading a pre-checking module, confirming that the deployment environment is ready, S3, if the deployment environment passes the checking, executing S4, S5, loading an installation module, designating the root node, starting the installation, S6, automatically pushing the deployment of the master node and the slave node, connecting the root node to acquire dependent software, and sequentially executing the installation, wherein the S4 designates parameter information such as a master node, a slave node, a network address, a user name, a password and the like according to the deployment environment. Through the technical scheme flow deployment, the deployment process gets rid of dependence on the Internet environment, improves the deployment efficiency, saves the deployment time, reduces the technical difficulty of deployment, and ensures that the deployment operation is simpler for a large number of server environments.

Description

Method for rapidly deploying Kubernetes in closed network environment
Technical Field
The invention relates to the field of computer software management or operation and maintenance, in particular to a method for rapidly deploying Kubernetes in a closed network environment.
Background
At present, when a user deploys a Kubernetes environment, the traditional deployment steps are as follows:
step 1: all servers are configured with a network to connect with the Internet; manually checking whether the basic environment meets the installation requirement;
step 2: configuring a Kubernetes official software source warehouse;
step 3: the method comprises the steps that a master node Server installs a distributed key value database (etcd), container software (docker), an application interface service component (API Server), a management controller component (controller-manager) and a scheduling service component (schedule) one by one, and forms a management cluster;
step 4: installing container software (docker), node proxy components (kubelet) and network service proxy components (kube-proxy) one by one from a node server, and then adding the container software (docker), the node proxy components (kube-proxy) into a cluster one by one;
step 5: deploying a domain name discovery service component (coreDNS);
step 6: deploying network plug-ins on all servers;
step 7: installing a security plug-in and configuring security settings of the cluster;
step 8: and verifying that the cluster deployment is completed through the master node server.
But has the following problems: 1. severely relying on the internet: the method has the advantages that various dependent software packages and container images are required to be downloaded through the Internet, the data centers in certain enterprises have no Internet access requirement or cannot communicate with the Internet due to safety requirements, the environment is a typical closed network environment, and the deployment in the closed network environment which cannot access the Internet is very difficult and difficult to successfully deploy; 2. easily missing the check item: the condition of missed detection is frequently existed, which can lead to unsuccessful deployment; 3. the deployment operation is complex, and the large-scale deployment is slow: each server is required to execute the installation operation one by one, the steps are complicated, the efficiency is low and errors are easy to occur.
Disclosure of Invention
(one) solving the technical problems
Aiming at the defects of the prior art, the invention provides a method for rapidly deploying Kubernetes in a closed network environment, which solves the problems of the traditional deployment mode: the method has the problems of serious dependence on the Internet, easy omission of inspection items and complex deployment operation.
(II) technical scheme
In order to achieve the above purpose, the invention is realized by the following technical scheme: the method for rapidly deploying the Kubernetes in the closed network environment comprises the following technical scheme:
start to
S1, loading an initialization module and constructing a root node in a closed environment
Loading an initialization module on a selected root node server, wherein the initialization module firstly constructs a container basic environment on the root node server, then initializes three components, the first component is a software dependent source warehouse for simulating an Internet software dependent source in a closed network environment, the second component is a container mirror warehouse for simulating a remote container mirror warehouse in the closed network environment, the third component is an automatic pushing actuator for subsequent unattended large-scale automatic deployment, after the step is executed, a self-built root node server for complete installation and deployment of Kubernetes is constructed in the closed network environment, and the whole deployment process does not need to be connected with the Internet any more;
s2, loading a pre-checking module to confirm that the deployment environment is ready
After the root node server of the S1 is constructed, loading a pre-checking module, pushing all checking items in the checking module to each server in all deployment environments by an automatic pushing actuator on the root node to run, and collecting feedback result information after the running is finished to confirm whether the checking is passed;
s3 if the check is passed, S4 is executed
If the inspection is not passed, displaying that the project is not satisfied and the deployment environment is required to be corrected, and executing S2 again after the deployment environment is required to be corrected until the deployment environment is confirmed to be ready;
s4, designating parameter information such as a master node, a slave node, a network address, a user name, a password and the like according to the deployment environment
On the root node server, modifying a parameter configuration file according to the actual environment information to be deployed, and storing the parameter configuration file on the root node server for the S5 installation module to use;
s5, loading an installation module, designating a root node and starting installation
Loading an installation module on a root node server, wherein the installation module reads a parameter configuration file, calls an automatic pushing executor to perform standardized setting on basic information of a master node server and a slave node server in a deployment environment according to parameter definition in the parameter configuration file, enables all the node servers to meet standardized installation specifications, and then starts deployment and installation work of the master node and the slave node;
s6, automatically pushing the master node and the slave node to be deployed, acquiring dependent software by the connection root node, and sequentially executing installation
The installation module automatically pushes the deployment program to all the master nodes and the slave nodes, then the master node and the slave node servers are controlled to be automatically connected with the root node servers to acquire the dependent software and the container mirror image required by installation, and the installation is sequentially carried out, the operation of the whole deployment process is carried out on the root node servers, each server does not need to be logged in one by one, and the inspection, the setting and the installation are carried out item by item, so that the operation complexity is reduced.
Completion of
Preferably, the starting content is to prepare to deploy the basic environment, and a server is selected as a root node server.
Preferably, the completion is to return Kuberneters deployment success prompt information.
Preferably, the closed network environment simulates an installation environment for connecting to the internet.
Preferably, the pre-checking module performs pushing item-by-item checking on the automatic pushing component, and guides an operator to quickly locate and repair the defect item after the checking result is fed back.
Preferably, the installation module can normalize the installation environment of the foundation, and unmanned installation and large-scale rapid deployment are realized by combining an automatic pushing assembly.
(III) beneficial effects
The invention provides a method for rapidly deploying Kubernetes in a closed network environment. The beneficial effects are as follows:
1. the invention provides an installation method in a closed network environment, so that the deployment process gets rid of dependence on an Internet environment, and the installation of an Internet-like network can be realized in an enterprise internal network environment and a high-safety requirement environment.
2. The invention improves the deployment efficiency, saves the deployment time, realizes a large number of repeated manual operation steps in an automatic mode, and obviously shortens the deployment time cost as the server is deployed in a larger scale.
3. The invention reduces the technical difficulty of deployment, simplifies the deployment operation, concentrates the deployment operation in one place for execution, packages the complex operation into a module, greatly reduces the technical difficulty of deployment and simplifies the operation steps.
Drawings
FIG. 1 is a flow chart of the technical scheme of the invention;
FIG. 2 is a graph of deployment time versus analysis at different scales of the present invention;
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Embodiment one:
the embodiment of the invention provides a deployment case in a small-sized customer internal network
Hardware environment information:
actual deployment effect:
the internet connection condition in the internal network environment of the small client is extremely poor, stable external network connection cannot be provided, the traditional deployment mode often causes the installation interruption due to network reasons, software package data is insufficient, deployment progress is seriously tired, and the deployment operation is very difficult for the client because the client does not have professional technicians, so that after the basic environment is ready, the facultative technicians only spend about 2.5 hours to complete the deployment of the Kubernetes on all nodes by adopting the technical scheme of the method for rapidly deploying the Kubernetes in the closed network environment.
Embodiment two:
the embodiment of the invention provides a middle-sized customer safety intranet deployment case
Hardware environment information:
the environment can not access the Internet due to the safety control requirement, the internal hardware equipment can not complete the deployment of the Kubernetes by the traditional deployment method, the technical scheme of the method for rapidly deploying the Kubernetes in the closed network environment is adopted, the Internet is not required to be accessed, the installation can be executed without accessing the Internet in the deployment process, all operations are completed on a root node in the intranet, after the basic environment is ready, only 1 person is required in the whole deployment process, and the installation of the Kubernetes on all nodes can be completed in about 3 hours.
Embodiment III:
embodiments of the present invention provide for deployment of cases in larger customer-owned data centers
Hardware deployment environment information:
the environment belongs to the environment of a data center owned by a client, in order to prevent important data leakage, internal hardware equipment is strictly controlled and cannot access the Internet at all, the deployment of the Kubernetes cannot be completed by a traditional deployment method, the dependence on the Internet is solved by adopting a technical scheme of a method for rapidly deploying the Kubernetes in a closed network environment, all operations can be completed on a root node without operating other dozens of server equipment one by one in the environment although the equipment is numerous, and after the basic environment is ready, the whole deployment process is only executed by 1 technician, and the installation of the Kubernetes on all nodes is completed in about 4 hours.
According to statistics of deployment completion time, the technical scheme is higher in efficiency than a traditional deployment mode, and the larger the server scale is, the more remarkable the deployment time reduction effect is.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (6)

1. The method for rapidly deploying the Kubernetes in the closed network environment is characterized in that: the method comprises the following technical scheme flow:
start to
S1, loading an initialization module and constructing a root node in a closed environment
Loading an initialization module on a selected root node server, wherein the initialization module firstly constructs a container basic environment on the root node server, then initializes three components, the first component is a software dependent source warehouse for simulating an Internet software dependent source in a closed network environment, the second component is a container mirror warehouse for simulating a remote container mirror warehouse in the closed network environment, the third component is an automatic pushing actuator for subsequent unattended large-scale automatic deployment, after the step is executed, a self-built root node server for complete installation and deployment of Kubernetes is constructed in the closed network environment, and the whole deployment process does not need to be connected with the Internet any more;
s2, loading a pre-checking module to confirm that the deployment environment is ready
After the root node server of the S1 is constructed, loading a pre-checking module, pushing all checking items in the checking module to each server in all deployment environments by an automatic pushing actuator on the root node to run, and collecting feedback result information after the running is finished to confirm whether the checking is passed;
s3 if the check is passed, S4 is executed
If the inspection is not passed, displaying that the project is not satisfied and the deployment environment is required to be corrected, and executing S2 again after the deployment environment is required to be corrected until the deployment environment is confirmed to be ready;
s4, designating parameter information such as a master node, a slave node, a network address, a user name, a password and the like according to the deployment environment
On the root node server, modifying a parameter configuration file according to the actual environment information to be deployed, and storing the parameter configuration file on the root node server for the S5 installation module to use;
s5, loading an installation module, designating a root node and starting installation
Loading an installation module on a root node server, wherein the installation module reads a parameter configuration file, calls an automatic pushing executor to perform standardized setting on basic information of a master node server and a slave node server in a deployment environment according to parameter definition in the parameter configuration file, enables all the node servers to meet standardized installation specifications, and then starts deployment and installation work of the master node and the slave node;
s6, automatically pushing the master node and the slave node to be deployed, acquiring dependent software by the connection root node, and sequentially executing installation
The installation module automatically pushes the deployment program to all the master nodes and the slave nodes, then the master node and the slave node servers are controlled to be automatically connected with the root node servers to acquire the dependent software and the container mirror image required by installation, and the installation is sequentially carried out, the operation of the whole deployment process is carried out on the root node servers, each server does not need to be logged in one by one, and the inspection, the setting and the installation are carried out item by item, so that the operation complexity is reduced.
2. The method for rapid deployment of Kubernetes in a closed network environment of claim 1, wherein: the starting content is to prepare to deploy the basic environment, and a server is selected as a root node server.
3. The method for rapid deployment of Kubernetes in a closed network environment of claim 1, wherein: the content of the completion is to return a Kuberneters deployment success prompt message.
4. The method for rapid deployment of Kubernetes in a closed network environment of claim 1, wherein: the closed network environment simulates an installation environment for connecting to the internet.
5. The method for rapid deployment of Kubernetes in a closed network environment of claim 1, wherein: the pre-checking module performs pushing item-by-item checking on the automatic pushing component, and guides an operator to quickly locate and repair the lack item after the checking result is fed back.
6. The method for rapid deployment of Kubernetes in a closed network environment of claim 1, wherein: the installation module can normalize the basic installation environment, and unmanned installation and large-scale rapid deployment can be realized by combining an automatic pushing assembly.
CN202010677340.3A 2020-07-14 2020-07-14 Method for rapidly deploying Kubernetes in closed network environment Active CN111880815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010677340.3A CN111880815B (en) 2020-07-14 2020-07-14 Method for rapidly deploying Kubernetes in closed network environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010677340.3A CN111880815B (en) 2020-07-14 2020-07-14 Method for rapidly deploying Kubernetes in closed network environment

Publications (2)

Publication Number Publication Date
CN111880815A CN111880815A (en) 2020-11-03
CN111880815B true CN111880815B (en) 2024-01-23

Family

ID=73151058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010677340.3A Active CN111880815B (en) 2020-07-14 2020-07-14 Method for rapidly deploying Kubernetes in closed network environment

Country Status (1)

Country Link
CN (1) CN111880815B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127150B (en) * 2021-03-18 2023-10-17 同盾控股有限公司 Rapid deployment method and device of cloud primary system, electronic equipment and storage medium
CN113867735A (en) * 2021-09-03 2021-12-31 中国人民解放军军事科学院战争研究院 Automatic deployment method and device for information system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491674A (en) * 2018-11-07 2019-03-19 李斌 A kind of method and system of the automatic deployment service in Kubernetes cluster
WO2019184116A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and device for automatically building kubernetes main node, terminal device and computer-readable storage medium
CN110502244A (en) * 2019-07-11 2019-11-26 新华三大数据技术有限公司 Dispose the method and device of Kubernetes cluster

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI592808B (en) * 2012-08-17 2017-07-21 High-speed automated cluster system deployment using virtual disks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019184116A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Method and device for automatically building kubernetes main node, terminal device and computer-readable storage medium
CN109491674A (en) * 2018-11-07 2019-03-19 李斌 A kind of method and system of the automatic deployment service in Kubernetes cluster
CN110502244A (en) * 2019-07-11 2019-11-26 新华三大数据技术有限公司 Dispose the method and device of Kubernetes cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
关兴民 ; 张兆伟 ; 王祝先 ; 王子洋 ; .基于Kubernetes的气象私有云自动化部署与优化.信息技术.2019,(05),全文. *

Also Published As

Publication number Publication date
CN111880815A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
EP3115902B1 (en) Framework for automated testing of mobile apps
CN111414172B (en) Automatic deployment and release system and method for application software
CN111880815B (en) Method for rapidly deploying Kubernetes in closed network environment
US8914679B2 (en) Software testing automation framework
US8930758B2 (en) Automated testing of mechatronic systems
CN105786695B (en) Data test method and system
CN113760704A (en) Web UI (user interface) testing method, device, equipment and storage medium
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
CN112799782B (en) Model generation system, method, electronic device and storage medium
CN117290255A (en) Batch interface performance test method based on Python and Locut frameworks
CN112527468A (en) Alliance chain one-stop type automatic deployment and test method and system
CN114925516B (en) Automatic modeling and simulating method and device
CN114564213A (en) Pre-installed software deployment method, system, terminal and storage medium
CN114296745A (en) Automatic software integration, deployment and test method
CN112416805A (en) Test management cloud platform and method
CN106648797A (en) Method and system for installing test software, test server and shared server
CN115022314B (en) Enterprise-level RPA cloud management platform
CN109669868A (en) The method and system of software test
CN114004580B (en) Method, system, device and readable medium for server production cycle time management
CN113348759B (en) Satellite comprehensive test system based on B/S and C/S mixed architecture
CN111949539B (en) Automobile electronic basic software testing system based on WEB
CN117608999A (en) Low automation device who builds low maintenance cost
CN112817808B (en) Computer cluster maintenance task management method and system
CN116660673A (en) Server production test method and device, electronic equipment and storage medium
CN115269387A (en) Automatic interface testing 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
TA01 Transfer of patent application right

Effective date of registration: 20231220

Address after: 311, 3rd Floor, Building 7, Courtyard 9, Changxing East Street, Fangshan District, Beijing, 100000 RMB

Applicant after: Beijing Langma Peak Technology Co.,Ltd.

Address before: Room 401, 4th Floor, Building 12, No. 3 Baijiazhuang Road, Chaoyang District, Beijing, 100020

Applicant before: Beijing Zhongdian Guangtong Technical Service Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant