CN113064598A - Container cluster management system deployment method and deployment system - Google Patents
Container cluster management system deployment method and deployment system Download PDFInfo
- Publication number
- CN113064598A CN113064598A CN202110314672.XA CN202110314672A CN113064598A CN 113064598 A CN113064598 A CN 113064598A CN 202110314672 A CN202110314672 A CN 202110314672A CN 113064598 A CN113064598 A CN 113064598A
- Authority
- CN
- China
- Prior art keywords
- data
- name
- configuration file
- management system
- cluster management
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Abstract
The invention provides a method for deploying a container cluster management system, which comprises the steps of creating a first configuration file through another markup language, creating a second configuration file through the another markup language, executing the first configuration file and executing the second configuration file to realize the deployment of the container cluster management system, and the method does not need the application of third-party software and reduces the difficulty of the deployment of the container cluster management system. The invention also provides a deployment system for realizing the deployment method of the container cluster management system.
Description
Technical Field
The invention relates to the field of container cluster management systems, in particular to a position calibration method and a position calibration device.
Background
The machine solves the problems of excessive manual participation and complexity in each step of compiling, packaging mirror images, uploading mirror images and deploying the application when the application is released, and realizes the automatic deployment of a container cluster management system (kubernets, k8 s).
In the prior art, the functions are similar to each other through third-party software such as jenkins and gitlab-CI, but each software has own inherent configuration rules, so that the software is not suitable for entering a door and is complicated in configuration.
Chinese patent application publication No. CN112379946A discloses a template configuration method, apparatus and computer device based on YAML, which can solve the problems of high configuration cost, insufficient stability, and incapability of meeting normal requirements in terms of signal-to-noise ratio and configuration structure of the current generation method of configurable templates, wherein the method includes: the method comprises the steps of obtaining a target template type to be configured, receiving a YAML configuration file, determining template configuration rules corresponding to and matched with the target template type, wherein the template configuration rules comprise a target data field and a data assembly rule between the target data field, and generating a configurable template based on the target data field, the data assembly rule and the YAML configuration file. But the technical scheme cannot realize the deployment of the container cluster management system.
Therefore, there is a need to provide a new container cluster management system deployment method and deployment system to solve the above-mentioned problems in the prior art.
Disclosure of Invention
The invention aims to provide a container cluster management system deployment method and a deployment system, which reduce the deployment difficulty of the container cluster management system.
In order to achieve the above object, the method for deploying a container cluster management system according to the present invention includes the steps of:
s1: creating a first configuration file through another markup language, and creating a second configuration file through the another markup language;
s2: and executing the first configuration file and the second configuration file to realize the deployment of the container cluster management system.
The container cluster management system deployment method has the advantages that: the method comprises the steps of creating a first configuration file through another markup language, creating a second configuration file through the another markup language, executing the first configuration file, and executing the second configuration file to realize the deployment of the container cluster management system, and the method does not need the practicability of third-party software, thereby reducing the deployment difficulty of the container cluster management system.
Preferably, in step S1, the creating the first configuration file through another markup language includes setting a first primary application interface type, a first configuration file type, first metadata, first specification data, and status data.
Further preferably, the first profile type is a custom resource.
Further preferably, the first metadata includes management field data and a metadata configuration file name, where the management field data includes a metadata first application interface type and a metadata second application interface type, and in step S2, when the first configuration file is executed, if the application interface type of the metadata is determined to be the first metadata reference interface type, a first main method is executed and updated, and if the application interface type of the metadata is determined to be the second metadata reference interface type, a second main method is executed and updated.
Further preferably, the first specification data includes conversion data, group data, name group data, saved field data, range data, and version data, the name group data includes name type data, list type data, plural data, singular data, and name abbreviation data, the version data includes additional printer column data, the additional printer column data includes first state description data including state phase path data, state name data, and character string type data, and second state description data including start state description data, date time format data, state start path data, age name data, and date type data.
Further preferably, the status data includes reception name data including acceptance name type data, acceptance name list type data, acceptance plural number data, acceptance name abbreviation data, and acceptance singular number data, and storage version data.
Preferably, in step S1, creating the second configuration file through the other markup language includes creating second host application type interface data, second configuration file type data, second metadata, and second specification data.
Further preferably, the second specification data includes entry point data and template data.
Further preferably, the template data includes name group data and at least one single name data, the name group data includes at least one sub-name data, the sub-name data corresponds to the single name data one to one, in step S2, when the second configuration file is executed, the name data is received, whether the number of the name data is greater than 1 is determined, when the number of the name data is determined to be greater than 1, the name data is matched with the sub-name data, the single name data is called according to the matched sub-name data and corresponding configuration processing is executed, and when the number of the name data is determined to be 1, the name data and the single name data are directly matched and corresponding configuration processing is executed.
The invention also provides a deployment system, which comprises a configuration file creating unit and an execution unit, wherein the configuration file creating unit and the execution unit are connected with each other, the configuration file creating unit is used for creating a first configuration file and a second configuration file through another markup language, and the execution unit is used for executing the first configuration file and the second configuration file so as to realize the deployment of the container cluster management system.
The deployment system has the advantages that: the configuration file creating unit is used for creating a first configuration file and a second configuration file through another markup language, and the executing unit is used for executing the first configuration file and the second configuration file so as to realize the deployment of the container cluster management system, so that the practicability of third-party software is not needed, and the deployment difficulty of the container cluster management system is reduced.
Drawings
FIG. 1 is a flow chart of a method for deploying a container cluster management system according to the present invention;
FIG. 2 is a block diagram of the deployment system of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. As used herein, the word "comprising" and similar words are intended to mean that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items.
In view of the problems in the prior art, an embodiment of the present invention provides a container cluster management system deployment method, and referring to fig. 1, the container cluster management system deployment method includes the following steps:
s1: creating a first configuration file by means of another Markup Language (YAMLAin't Markup Language, yaml), creating a second configuration file by means of said another Markup Language;
s2: and executing the first configuration file and the second configuration file to realize the deployment of the container cluster management system.
The invention further provides a deployment system 100, where the deployment system 100 includes a configuration file creating unit 101 and an execution unit 102 that are connected to each other, the configuration file creating unit 101 is configured to create a first configuration file and a second configuration file through another markup language, and the execution unit 102 is configured to execute the first configuration file and the second configuration file to implement deployment of a container cluster management system.
In some embodiments of the invention, the creating the first configuration file in step S1 through another markup language includes setting a first host application interface type, a first configuration file type, first metadata, first specification data, and status data. Specifically, the first host application interface type is "extensions.k 8s.io/v 1".
In some embodiments of the invention, the first profile type is a Custom Resource (CRD).
In some embodiments of the present invention, the first metadata includes management field data and a metadata configuration file name, where the management field data includes a metadata first application interface type and a metadata second application interface type, and in step S2, when the first configuration file is executed, if the application interface type of the metadata is determined to be the first metadata reference interface type, a first main method is executed and updated, and if the application interface type of the metadata is determined to be the second metadata reference interface type, a second main method is executed and updated. Specifically, the metadata first application interface type is "apixtensions.k 8s.io/v 1", and the metadata second application interface type is "apixtensions.k 8s.io/v1beta 1".
In some embodiments of the present invention, the first specification data includes conversion data, group data, name group data, save area data, range data, and version data, the name group data includes name type data, list type data, plural data, singular data, and name abbreviation data, the version data includes additional printer column data, the additional printer column data includes first state description data including state phase path data, state name data, and character string type data, and second state description data including start state description data, date time format data, state start path data, age name data, and date type data.
In still other embodiments of the present invention, the additional printer column data further comprises additional printer column name data, service data, storage data, and sub-resource data. Specifically, the stored domain data, the service data, and the stored data are all true.
In some embodiments of the invention, the status data comprises received name data and stored version data, the received name data comprising accepted name type data, accepted name list type data, accepted plural number data, accepted name abbreviation data, and accepted singular number data. Specifically, the storage version data is "v 1alpha 1".
In some embodiments of the invention, the creating the second configuration file in the step S1 through the other markup language includes creating second host application type interface data, second configuration file type data, second metadata, and second specification data.
In some embodiments of the invention, the second specification data comprises entry point data and template data.
In some embodiments of the present invention, the template data includes name group data and at least one single name data, the name group data includes at least one sub-name data, the sub-name data corresponds to the single name data one to one, in step S2, when the second configuration file is executed, the name data is received, whether the number of the name data is greater than 1 is determined, when the number of the name data is determined to be greater than 1, the name data is matched with the sub-name data, the single name data is called according to the matched sub-name data and corresponding configuration processing is executed, and when the number of the name data is determined to be 1, the name data and the single name data are directly matched and corresponding configuration processing is executed.
Specifically, the name group data includes four sub-name data, which are respectively a first sub-name data, a second sub-name data, a third sub-name data and a fourth sub-name data, the number of the single-name data is 4, which are respectively a first single-name data, a second single-name data, a third single-name data and a fourth single-name data, wherein the first sub-name data corresponds to the first single-name data, the second sub-name data corresponds to the second single-name data, the third sub-name data corresponds to the third single-name data, the fourth sub-name data corresponds to the fourth single-name data, and the first single-name data, the second single-name data, the third single-name data and the fourth single-name data all include container data, and the container data includes container image data, and container data, A "cmmand" command and a pass string data command.
Although the embodiments of the present invention have been described in detail hereinabove, it is apparent to those skilled in the art that various modifications and variations can be made to these embodiments. However, it is to be understood that such modifications and variations are within the scope and spirit of the present invention as set forth in the following claims. Moreover, the invention as described herein is capable of other embodiments and of being practiced or of being carried out in various ways.
Claims (10)
1. A method for deploying a container cluster management system is characterized by comprising the following steps:
s1: creating a first configuration file through another markup language, and creating a second configuration file through the another markup language;
s2: and executing the first configuration file and the second configuration file to realize the deployment of the container cluster management system.
2. The method for deploying a container cluster management system according to claim 1, wherein in step S1, the creating the first profile through another markup language includes setting a first master application interface type, a first profile type, first metadata, first specification data, and status data.
3. The method for deploying a container cluster management system according to claim 2, wherein the first profile type is a custom resource.
4. The method for deploying a container cluster management system according to claim 2, wherein the first metadata includes management field data including a metadata first application interface type and a metadata second application interface type, and a metadata profile name, and in step S2, when executing the first profile:
if the application interface type of the metadata is judged to be the first metadata reference interface type, executing a first main method and updating;
and executing a second main method and updating if the application interface type of the metadata is judged to be the second metadata reference interface type.
5. The container cluster management system deployment method according to claim 2, wherein the first specification data includes conversion data, group data, name group data, save domain data, range data, and version data, the name group data includes name type data, list type data, complex data, singular data, and name abbreviation data, the version data includes additional printer column data, the additional printer column data includes first state description data including state phase path data, state name data, and character string type data, and second state description data including start state description data, date and time format data, state start path data, age name data, and date type data.
6. The container cluster management system deployment method according to claim 2, wherein the state data includes reception name data and storage version data, the reception name data including acceptance name type data, acceptance name list type data, acceptance plural data, acceptance name abbreviation data, and acceptance singular data.
7. The method for deploying a container cluster management system according to claim 1, wherein in step S1, said creating a second profile through said another markup language includes creating second master application type interface data, second profile type data, second metadata, and second specification data.
8. The method for deploying a container cluster management system according to claim 7, wherein the second specification data includes entry point data and template data.
9. The method for deploying a container cluster management system according to claim 8, wherein the template data includes name group data and at least one single name data, the name group data includes at least one sub-name data, the sub-name data corresponds to the single name data one to one, and in step S2, when the second configuration file is executed, name data is received, and it is determined whether the number of the name data is greater than 1:
when the number of the name data is judged to be larger than 1, matching the name data with the sub-name data, calling the single-name data according to the matched sub-name data and executing corresponding configuration processing;
and when the number of the name data is judged to be 1, directly matching the name data with the single name data and executing corresponding configuration processing.
10. A deployment system for implementing the container cluster management system deployment method as claimed in any one of claims 1 to 9, wherein the deployment system comprises a configuration file creation unit and an execution unit, which are connected to each other, the configuration file creation unit is configured to create a first configuration file and a second configuration file through another markup language, and the execution unit is configured to execute the first configuration file and the second configuration file to implement the deployment of the container cluster management system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110314672.XA CN113064598B (en) | 2021-03-24 | 2021-03-24 | Container cluster management system deployment method and deployment system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110314672.XA CN113064598B (en) | 2021-03-24 | 2021-03-24 | Container cluster management system deployment method and deployment system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113064598A true CN113064598A (en) | 2021-07-02 |
CN113064598B CN113064598B (en) | 2024-02-06 |
Family
ID=76561719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110314672.XA Active CN113064598B (en) | 2021-03-24 | 2021-03-24 | Container cluster management system deployment method and deployment system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113064598B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115495059A (en) * | 2022-09-23 | 2022-12-20 | 北京曼恒数字技术有限公司 | Data structure definition method and data structure creation method |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106982266A (en) * | 2017-05-27 | 2017-07-25 | 郑州云海信息技术有限公司 | A kind of method and apparatus of automatically dispose cluster |
CN107967159A (en) * | 2017-11-22 | 2018-04-27 | 腾讯科技(深圳)有限公司 | The method and server of a kind of profileapplied |
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 |
CN109885316A (en) * | 2019-02-18 | 2019-06-14 | 国家计算机网络与信息安全管理中心 | Hdfs-hbase dispositions method and device based on kubernetes |
CN110113185A (en) * | 2019-04-18 | 2019-08-09 | 卓尔购电子商务(武汉)有限公司 | Method, system, storage medium and the device of a kind of rapid deployment alliance chain |
US20190324743A1 (en) * | 2018-04-24 | 2019-10-24 | Cloud66 Inc. | Configuration file management |
CN110389832A (en) * | 2019-06-21 | 2019-10-29 | 深圳市汇川技术股份有限公司 | ZooKeeper container cluster dispositions method, system, equipment and storage medium |
CN110752947A (en) * | 2019-10-18 | 2020-02-04 | 北京浪潮数据技术有限公司 | K8s cluster deployment method and device, and deployment platform |
CN110908730A (en) * | 2019-10-31 | 2020-03-24 | 烽火通信科技股份有限公司 | Cloud platform configuration file management method and management system |
CN111930465A (en) * | 2020-05-28 | 2020-11-13 | 武汉达梦数据库有限公司 | Kubernetes-based dreams master-slave cluster deployment method and device |
CN112256388A (en) * | 2020-10-15 | 2021-01-22 | 深圳壹账通智能科技有限公司 | Container-based blockchain network deployment method, device, equipment and storage medium |
CN112379946A (en) * | 2020-11-27 | 2021-02-19 | 平安普惠企业管理有限公司 | Template configuration method and device based on YAML and computer equipment |
-
2021
- 2021-03-24 CN CN202110314672.XA patent/CN113064598B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106982266A (en) * | 2017-05-27 | 2017-07-25 | 郑州云海信息技术有限公司 | A kind of method and apparatus of automatically dispose cluster |
CN107967159A (en) * | 2017-11-22 | 2018-04-27 | 腾讯科技(深圳)有限公司 | The method and server of a kind of profileapplied |
US20190324743A1 (en) * | 2018-04-24 | 2019-10-24 | Cloud66 Inc. | Configuration file management |
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 |
CN109885316A (en) * | 2019-02-18 | 2019-06-14 | 国家计算机网络与信息安全管理中心 | Hdfs-hbase dispositions method and device based on kubernetes |
CN110113185A (en) * | 2019-04-18 | 2019-08-09 | 卓尔购电子商务(武汉)有限公司 | Method, system, storage medium and the device of a kind of rapid deployment alliance chain |
CN110389832A (en) * | 2019-06-21 | 2019-10-29 | 深圳市汇川技术股份有限公司 | ZooKeeper container cluster dispositions method, system, equipment and storage medium |
CN110752947A (en) * | 2019-10-18 | 2020-02-04 | 北京浪潮数据技术有限公司 | K8s cluster deployment method and device, and deployment platform |
CN110908730A (en) * | 2019-10-31 | 2020-03-24 | 烽火通信科技股份有限公司 | Cloud platform configuration file management method and management system |
CN111930465A (en) * | 2020-05-28 | 2020-11-13 | 武汉达梦数据库有限公司 | Kubernetes-based dreams master-slave cluster deployment method and device |
CN112256388A (en) * | 2020-10-15 | 2021-01-22 | 深圳壹账通智能科技有限公司 | Container-based blockchain network deployment method, device, equipment and storage medium |
CN112379946A (en) * | 2020-11-27 | 2021-02-19 | 平安普惠企业管理有限公司 | Template configuration method and device based on YAML and computer equipment |
Non-Patent Citations (2)
Title |
---|
JIMMY SONG: "如何从零开始编写一个Kubernetes CRD", Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/52367044> * |
何龙: "一种基于应用历史记录的Kubernetes调度算法", 《数据通信》, no. 03, pages 33 - 36 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115495059A (en) * | 2022-09-23 | 2022-12-20 | 北京曼恒数字技术有限公司 | Data structure definition method and data structure creation method |
CN115495059B (en) * | 2022-09-23 | 2023-10-31 | 北京曼恒数字技术有限公司 | Method for creating data structure |
Also Published As
Publication number | Publication date |
---|---|
CN113064598B (en) | 2024-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107896162B (en) | Deployment method and device of monitoring system, computer equipment and storage medium | |
US8363231B2 (en) | Method and apparatus for managing fonts | |
CN101866292B (en) | Information processing apparatus and control method | |
EP1452996A2 (en) | Partitioning of print jobs for raster image processing | |
JP2006244451A (en) | Resource management system, resource management program, and resource management method | |
CN110083381A (en) | The method and device of increment upgrading | |
WO2007059465A2 (en) | Server side application integration framework | |
EP3817339B1 (en) | Method and system for management of an artificial intelligence development platform | |
CN113064598A (en) | Container cluster management system deployment method and deployment system | |
US20150121360A1 (en) | Apparatus and method of executing update, recording medium using the same, and server and method of providing update | |
CN112822044B (en) | Distributed cluster deployment method and device, electronic equipment and readable storage medium | |
JP4207938B2 (en) | Software authentication system, software authentication program, and software authentication method | |
CN109800090A (en) | A kind of data integrated system and method | |
WO2024011994A1 (en) | Methods and systems for updating an algorithm package | |
CN104516750B (en) | A kind of method and device for realizing plug-in unit and management in SCADA system | |
US20070038462A1 (en) | Overriding default speech processing behavior using a default focus receiver | |
CN115758175A (en) | Flight seat data processing method and device, storage medium and electronic equipment | |
CN114020368A (en) | Information processing method and device based on state machine and storage medium | |
CN114595413A (en) | Webpage layout method and system and computer equipment | |
KR101728786B1 (en) | Component-based dynamic image display system and method using the svg file format | |
CN113805966A (en) | Multi-terminal device dynamic view rendering implementation method and system | |
CN111459608A (en) | Application system deployment method and device, computer equipment and storage medium | |
CN108874557A (en) | A kind of front end interface processing method and system | |
EP2752765A1 (en) | Method of providing a cloud-based application | |
CN111026542A (en) | Display method and device of overlay icon of application program |
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 |