CN111324371A - Method for supporting custom environment and task by production line SAAS service plug-in - Google Patents
Method for supporting custom environment and task by production line SAAS service plug-in Download PDFInfo
- Publication number
- CN111324371A CN111324371A CN202010304688.8A CN202010304688A CN111324371A CN 111324371 A CN111324371 A CN 111324371A CN 202010304688 A CN202010304688 A CN 202010304688A CN 111324371 A CN111324371 A CN 111324371A
- Authority
- CN
- China
- Prior art keywords
- user
- task
- plug
- kubernets cluster
- information
- 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 13
- 230000008093 supporting effect Effects 0.000 title claims abstract description 13
- 238000004519 manufacturing process Methods 0.000 title claims abstract description 10
- 101001072091 Homo sapiens ProSAAS Proteins 0.000 title claims abstract 4
- 102100036366 ProSAAS Human genes 0.000 title claims abstract 4
- 238000007726 management method Methods 0.000 claims abstract description 27
- 238000013475 authorization Methods 0.000 claims abstract description 7
- 238000013515 script Methods 0.000 claims description 17
- 238000012827 research and development Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000002085 persistent effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering 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/70—Software maintenance or management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/22—Procedural
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method for supporting a user-defined environment and a task by a production line SAAS service plug-in, which comprises a continuous delivery pipeline system and a docker mirror library, wherein a Kubernetes cluster management module, the user-defined environment and the task plug-in are arranged between the continuous delivery pipeline system and the docker mirror library; comprises the following steps: (1) before a user uses the system, the user fills own Kubernets cluster information such as a name, an APIServer address, a certificate, a secret key and the like into the Kubernets cluster management module through the Kubernets cluster management module, so that the Kubernets cluster management module can obtain authorization to use the Kubernets cluster; (2) a user logs in the continuous delivery pipeline system and configures a user-defined environment and a task plug-in into a pipeline execution task; (3) a user configures a docker mirror image required by task execution in a user-defined environment and a task plug-in; the invention provides a production line SAAS service plug-in supporting a user-defined environment and tasks, which really meets the user-defined requirements of users.
Description
Technical Field
The invention relates to a production line SAAS service plug-in, in particular to a method for supporting a user-defined environment and tasks by the production line SAAS service plug-in.
Background
As an out-of-box Software Service, SAAS (short for Software As a Service) is widely used in recent years around the world, and in the field of Software development, more and more cloud manufacturers provide out-of-box Software development SAAS services, such As "cloud effect" of amitsu, devcloud of hua cloud, and "efficiency cloud" of Baidu cloud, wherein a continuous delivery pipeline Service is an important one of many Software development SAAS services, and domestic cloud computing manufacturers provide related services at a time.
All current persistent delivery pipeline services are plug-in based, and each specific task needs to be specifically completed by a plug-in on the pipeline. However, the enterprise software development scenario is very complex, and a plug-in supporting the ability of a user to execute a customized task in a customized software environment is needed to meet the complex software development scenario requirement.
At present, the SAAS service of continuous delivery pipelines of various domestic manufacturers is internally provided with some custom script plug-ins, and can support users to write custom scripts. However, the existing custom task plug-in of the SAAS service of the continuous delivery pipeline has the following disadvantages:
1. the software environment is not set by the user, and only the script is executed on the fixed operating system environment. The supporting effect of this SAAS service on custom tasks will be discounted significantly.
2. Only the plug-in of the custom task executed in the SAAS public cluster is supported. The SAAS service self-defining task plug-in has the problems that any self-defining environment and script plug-in are executed on a public cluster, and the security risk is too high; secondly, due to the safety problem of the research and development system and the service and the bandwidth cost problem of the public network, the SAAS user can deploy part of the research and development system or the service in the own network, and can not provide the public network access capability completely, at this time, when the SAAS service user-defined task plug-in executes the task, the SAAS service user-defined task plug-in can not interact with the system and the service in the own network of the user, and the practicability is greatly reduced.
Disclosure of Invention
The invention aims to provide a method for supporting a user-defined environment and tasks by a production line SAAS service plug-in, so as to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for supporting a user-defined environment and a task by a production line SAAS service plug-in comprises a continuous delivery pipeline system and a docker mirror library, wherein a Kubernetes cluster management module, a user-defined environment and a task plug-in are arranged between the continuous delivery pipeline system and the docker mirror library; comprises the following steps:
(1) before a user uses the system, the user fills own Kubernets cluster information such as names, API Server addresses, certificates, keys and the like into the Kubernets cluster management module through the Kubernets cluster management module, so that the Kubernets cluster management module can obtain authorization to use the Kubernets cluster;
(2) a user logs in the continuous delivery pipeline system and configures a user-defined environment and a task plug-in into a pipeline execution task;
(3) a user configures a docker mirror image required by task execution in a custom environment and a task plug-in, wherein the docker mirror image comprises mirror image library address information, access trust information, mirror image name and version information and a script expected to be executed in the mirror image environment;
(4) the user-defined environment and task plug-in initiates a query request to a Kubernets cluster management module, obtains Kubernets cluster information available for the user with authority, and completes configuration of a user scene;
(5) after the user configuration scene is completed, the continuous delivery pipeline system initiates a task execution command to the user-defined environment and the task plug-in;
(6) the user-defined environment and the task plug-in inquire the API Server address and the use authorization information (certificate and token) of the Kubernets cluster from the Kubernets cluster management module according to the Kubernets cluster information configured in the step (4);
(7) sending the environment mirror image information and the user-defined script information configured in the step (3) to the Kubernets cluster obtained in the step (6) through a Server API of the Kubernets cluster by the user-defined environment and task plug-in;
(8) the Kubernetes cluster pulls the information from the specified docker image according to the received docker image information, starts the image, can execute the specified script in the image and interacts with other services in the user's own network;
(9) the execution result information can be returned to the user-defined environment and the task plug-in through the Kubernets API Server and displayed to the user, so that the plug-in execution is realized.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a production line SAAS service plug-in supporting a user-defined environment and tasks, which really meets the user-defined requirements of users. A Kubernets cluster management module is added in the continuous delivery assembly line SAAS service system, a user can manage the Kubernets cluster of the user to execute assembly line tasks, different user resources can be safely isolated, and meanwhile the Kubernets cluster management module can interact with systems and services in a user private network, and therefore practicability is greatly improved. And by continuously delivering the SAAS service plug-in, setting a mirror image, a script and appointing an own Kubernets cluster, the capability of executing the custom script in the custom environment in the own Kubernets cluster is realized. The method enables the SAAS service of the continuous delivery pipeline to have the capacity of allowing a user to arbitrarily specify an operating environment on a special Kubernets cluster and execute any script; meanwhile, the task is executed in a Kubernets cluster exclusive to the user, and the safety problem of the user-defined task on a public cluster in an SAAS service scene is solved. Besides, the Kubernets cluster exclusive to the user provides public network access, and the working node of the Kubernets cluster is located in the exclusive network of the user and can be communicated with other systems and service networks of the user, so that the practicability is greatly improved.
Drawings
FIG. 1 is an overall architecture diagram of a method for a pipeline SAAS service plug-in to support custom environments and tasks.
FIG. 2 is a flowchart of a user configuration scenario in a method for a pipeline SAAS service plug-in to support custom environments and tasks.
FIG. 3 is a schematic diagram of a plug-in execution scenario in a method for supporting a custom environment and tasks by a pipeline SAAS service plug-in.
Detailed Description
The technical solution of the present patent will be described in further detail with reference to the following embodiments.
Referring to fig. 1-3, a method for supporting a custom environment and a task by a pipeline SAAS service plug-in includes a continuous delivery pipeline system and a docker mirror library, a Kubernetes cluster management module and a custom environment and task plug-in are arranged between the continuous delivery pipeline system and the docker mirror library, wherein the continuous delivery pipeline system and the docker mirror library are common research and development systems; the Kubernetes cluster management module and the custom environment and task plug-in are newly added modules in the scheme.
The Kubernets cluster management module has the main functions of inputting and storing the connection information of Kubernets owned by users, including cluster names, API Server addresses, certificates, keys and other information, and managing the authority of the users for using the connection information. The user granted the use authority can acquire the connection information of the authorized Kubernets cluster from the Kubernets cluster management module and initiate a task to the target Kubernets cluster.
The main functions of the self-defining environment and the task plug-in are to set a Kubernets cluster for executing tasks, and docker mirror image information (mirror library address, mirror name and version) and a self-defining script required by the task running environment, and after receiving a task execution instruction of a pipeline, obtain Kubernets cluster connection information from a Kubernets cluster management module and send a task execution command to a Server API of the Kubernets cluster. The method comprises the following steps:
(1) before a user uses the system, the Kubernets cluster management module fills own Kubernets cluster information (information such as names, API (application program interface) Server addresses, certificates and keys) so that the Kubernets cluster management module can obtain authorization to use the Kubernets cluster; as indicated by arrow 1 in fig. 2.
(2) A user logs in the continuous delivery pipeline system and configures a user-defined environment and a task plug-in into a pipeline execution task; as shown by arrows 2, 3 in fig. 2.
(3) A user configures a docker mirror image required by task execution in a custom environment and a task plug-in, wherein the docker mirror image comprises mirror image library address information, access trust information, mirror image name and version information and a script expected to be executed in the mirror image environment; as indicated by arrow 4 in fig. 2.
(4) The user-defined environment and task plug-in initiate a query request to the kubernets cluster management module to obtain kubernets cluster information available to the user with authority, as shown by arrows 5 and 6 in fig. 2; and configuring a Kubernetes cluster used for executing the task in the custom environment and the task plug-in by the user. Completing the configuration of the user scene through the matching of the steps (1), (2), (3) and (4);
(5) after the user configuration scene is completed, the continuous delivery pipeline system initiates a task execution command to the user-defined environment and the task plug-in; as indicated by arrow 1 in fig. 3.
(6) The user-defined environment and the task plug-in inquire the API Server address and the use authorization information (certificate and token) of the Kubernets cluster from the Kubernets cluster management module according to the Kubernets cluster information configured in the step (4); as indicated by arrows 2, 3 in fig. 3.
(7) Sending the environment mirror image information and the user-defined script information configured in the step (3) to the Kubernets cluster obtained in the step (6) through a Server API of the Kubernets cluster by the user-defined environment and task plug-in; as indicated by arrow 4 in fig. 3.
(8) The Kubernetes cluster pulls from the designated docker image according to the received docker image information, as shown by arrows 5, 6 in fig. 3. The image is started and specified scripts can be executed in the image to interact with other services in the user's own network. As indicated by arrows 7, 8 in fig. 3.
(9) The execution result information can be returned to the user-defined environment and the task plug-in through the Kubernets API Server and displayed to the user. As shown by arrow 9 in fig. 3; and (5) completing the plug-in execution through the matching of the steps (6), (7), (8) and (9).
In this embodiment, it should be noted that the persistent delivery pipeline system and the docker mirror library adopted in the present application are both in the prior art, and the connection between each component is also in the prior art, so the connection relationship and principle thereof are not described herein again.
Although the preferred embodiments of the present patent have been described in detail, the present patent is not limited to the above embodiments, and various changes can be made without departing from the spirit of the present patent within the knowledge of those skilled in the art.
Claims (1)
1. A method for supporting a user-defined environment and a task by a production line SAAS service plug-in is characterized by comprising a continuous delivery pipeline system and a docker mirror library, wherein a Kubernetes cluster management module and the user-defined environment and task plug-in are arranged between the continuous delivery pipeline system and the docker mirror library; comprises the following steps:
(1) before a user uses the system, the user fills own Kubernets cluster information such as a name, an APIServer address, a certificate, a secret key and the like into the Kubernets cluster management module through the Kubernets cluster management module, so that the Kubernets cluster management module can obtain authorization to use the Kubernets cluster;
(2) a user logs in the continuous delivery pipeline system and configures a user-defined environment and a task plug-in into a pipeline execution task;
(3) a user configures a docker mirror image required by task execution in a custom environment and a task plug-in, wherein the docker mirror image comprises mirror image library address information, access trust information, mirror image name and version information and a script expected to be executed in the mirror image environment;
(4) the user-defined environment and task plug-in initiates a query request to a Kubernets cluster management module, obtains Kubernets cluster information available for the user with authority, and completes configuration of a user scene;
(5) after the user configuration scene is completed, the continuous delivery pipeline system initiates a task execution command to the user-defined environment and the task plug-in;
(6) the user-defined environment and the task plug-in inquire the APIServer address and the use authorization information (certificate and token) of the Kubernets cluster from the Kubernets cluster management module according to the Kubernets cluster information configured in the step (4);
(7) sending the environment mirror image information and the user-defined script information configured in the step (3) to the Kubernets cluster obtained in the step (6) through a SeverAPI of the Kubernets cluster by the user-defined environment and task plug-in;
(8) the Kubernetes cluster pulls the information from the specified docker image according to the received docker image information, starts the image, can execute the specified script in the image and interacts with other services in the user's own network;
(9) the execution result information can be returned to the user-defined environment and the task plug-in through the KuberneteseAPIServer and displayed to the user, so that the plug-in execution is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010304688.8A CN111324371B (en) | 2020-04-17 | 2020-04-17 | Method for pipeline SAAS service plug-in to support user-defined environment and task |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010304688.8A CN111324371B (en) | 2020-04-17 | 2020-04-17 | Method for pipeline SAAS service plug-in to support user-defined environment and task |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111324371A true CN111324371A (en) | 2020-06-23 |
CN111324371B CN111324371B (en) | 2023-12-19 |
Family
ID=71173568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010304688.8A Active CN111324371B (en) | 2020-04-17 | 2020-04-17 | Method for pipeline SAAS service plug-in to support user-defined environment and task |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111324371B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150120887A1 (en) * | 2013-10-31 | 2015-04-30 | International Business Machines Corporation | Deploying a cluster |
CN106850621A (en) * | 2017-02-07 | 2017-06-13 | 南京云创大数据科技股份有限公司 | A kind of method based on container cloud fast construction Hadoop clusters |
CN110083369A (en) * | 2019-04-25 | 2019-08-02 | 中电科嘉兴新型智慧城市科技发展有限公司 | A kind of continuous integrating and lasting delivery method based on container scheme |
CN110502244A (en) * | 2019-07-11 | 2019-11-26 | 新华三大数据技术有限公司 | Dispose the method and device of Kubernetes cluster |
CN110764786A (en) * | 2019-12-27 | 2020-02-07 | 凯泰铭科技(北京)有限公司 | Optimized deployment resource and software delivery platform in cloud computing environment |
-
2020
- 2020-04-17 CN CN202010304688.8A patent/CN111324371B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150120887A1 (en) * | 2013-10-31 | 2015-04-30 | International Business Machines Corporation | Deploying a cluster |
CN106850621A (en) * | 2017-02-07 | 2017-06-13 | 南京云创大数据科技股份有限公司 | A kind of method based on container cloud fast construction Hadoop clusters |
CN110083369A (en) * | 2019-04-25 | 2019-08-02 | 中电科嘉兴新型智慧城市科技发展有限公司 | A kind of continuous integrating and lasting delivery method based on container scheme |
CN110502244A (en) * | 2019-07-11 | 2019-11-26 | 新华三大数据技术有限公司 | Dispose the method and device of Kubernetes cluster |
CN110764786A (en) * | 2019-12-27 | 2020-02-07 | 凯泰铭科技(北京)有限公司 | Optimized deployment resource and software delivery platform in cloud computing environment |
Also Published As
Publication number | Publication date |
---|---|
CN111324371B (en) | 2023-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10120703B2 (en) | Executing commands within virtual machine instances | |
CN112035215B (en) | Node autonomous method, system and device of node cluster and electronic equipment | |
CN107911421B (en) | Method, apparatus, and computer storage medium for configuring cross-network communications in a blockchain | |
US8606897B2 (en) | Systems and methods for exporting usage history data as input to a management platform of a target cloud-based network | |
KR101353725B1 (en) | Methods and system for managing security keys within a wireless network | |
US8832775B2 (en) | Techniques for workload spawning | |
US10382213B1 (en) | Certificate registration | |
WO2020057163A1 (en) | Mec platform deployment method and device | |
US10691790B2 (en) | Autonomous secrets management for a temporary shared access signature service | |
JP2011129117A (en) | Cloud federation as service | |
US10880312B1 (en) | Authentication and authorization with remotely managed user directories | |
US11245577B2 (en) | Template-based onboarding of internet-connectible devices | |
JP2024505692A (en) | Data processing methods, devices and computer equipment based on blockchain networks | |
JP2019514090A (en) | Associating a User Account with a Corporate Workspace | |
CN111221451B (en) | Cloud mobile phone shortcut creation method and system | |
US20190294466A1 (en) | Network-accessible volume creation and leasing | |
CN101548263B (en) | Method and system for modeling options for opaque management data for a user and/or an owner | |
CN112910796B (en) | Traffic management method, apparatus, device, storage medium, and program product | |
CN112766998A (en) | Data processing method and device for business activities | |
US10637924B2 (en) | Cloud metadata discovery API | |
CN111324371A (en) | Method for supporting custom environment and task by production line SAAS service plug-in | |
US11792153B1 (en) | Application routing infrastructure for private-level redirect trapping and creation of NAT mapping to work with connectivity in cloud and customer networks | |
EP3972214B1 (en) | Techniques to extend public cloud computing systems to a home of a user | |
CN114640505A (en) | FTP user authentication method and system and construction method thereof | |
CN115766618A (en) | Resource allocation system of multiple servers |
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 |