CN111399897A - Application issuing method and system based on kubernets - Google Patents

Application issuing method and system based on kubernets Download PDF

Info

Publication number
CN111399897A
CN111399897A CN202010106972.4A CN202010106972A CN111399897A CN 111399897 A CN111399897 A CN 111399897A CN 202010106972 A CN202010106972 A CN 202010106972A CN 111399897 A CN111399897 A CN 111399897A
Authority
CN
China
Prior art keywords
application
kubernets
mirror image
construction
publishing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010106972.4A
Other languages
Chinese (zh)
Inventor
梁栋
贾晨
梁田
张林敏
包培培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhidemai Technology Co ltd
Original Assignee
Beijing Zhidemai 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 Zhidemai Technology Co ltd filed Critical Beijing Zhidemai Technology Co ltd
Priority to CN202010106972.4A priority Critical patent/CN111399897A/en
Publication of CN111399897A publication Critical patent/CN111399897A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Abstract

The disclosure relates to a method, a system, an electronic device and a storage medium for application distribution based on kubernets. Wherein, the method comprises the following steps: selecting application necessary information to create an application based on kubernets, and respectively configuring construction parameters and release parameters of the application; constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction; and receiving a user issuing instruction, and calling the kubernets API by the application mirror image to complete issuing. According to the method and the system, a set of universal application publishing system supporting multiple technology stacks is realized by arranging the project kubernets based on the open source container, and the method and the system have the advantages of reducing application publishing docking cost, shortening application publishing period, reducing application publishing risk and improving cluster resource utilization rate.

Description

Application issuing method and system based on kubernets
Technical Field
The present disclosure relates to the internet field, and in particular, to a method, a system, an electronic device, and a computer-readable storage medium for publishing an application based on kubernets.
Background
In an application architecture scenario with a large number of micro services, how to efficiently build and publish applications is a very challenging problem. The traditional maintenance mode based on manual or semi-automatic is very inefficient and easy to make mistakes in the scene with huge application quantity.
There are currently 2 mainstream solutions:
1) application release based on virtual machine/physical machine: most of the tasks are based on task arrangement tools such as an enterprise and the like, and the application program is pushed to a plurality of virtual hosts/physical machines according to a predefined mode.
2) Container-based application publishing: most of the application images constructed based on the docker containerization technology are distributed to a plurality of host machines.
The prior art has the following disadvantages:
1) the 2 modes all need a large amount of manual work to participate in development and debugging of the application deployment script, so that the repetitive work is more, and errors are easy to occur.
2) Application release based on virtual machines/physical machines requires manual pre-installation of program runtime environments and dependencies, which is inconvenient for rapid migration of servers and disaster recovery processing.
3) The docker container is lack of uniform arrangement of bottom-layer physical cluster resources, and a high-efficiency scheduling mechanism is lack of under a large-scale cluster.
4) The traditional containerization scheme still needs to be customized, developed and debugged aiming at the deployment process of each application and technology stack, the proportion of manual participation is high, and the problems of repetitive labor and the like exist.
Accordingly, there is a need for one or more methods to address the above-mentioned problems.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a kubernets-based application publication method, system, electronic device, and computer-readable storage medium, thereby overcoming, at least to some extent, one or more of the problems due to the limitations and disadvantages of the related art.
According to one aspect of the disclosure, an application publishing method based on kubernets is provided, which includes:
an application creating step, namely selecting application necessary information to create an application based on kubernets, and respectively configuring construction parameters and release parameters of the application;
an application construction step, namely constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction;
and an application issuing step, namely receiving a user issuing instruction, and calling the kubernets API by the application mirror image to complete issuing.
In an exemplary embodiment of the present disclosure, the creating application step further includes:
a necessary information selection step, namely creating an application based on kubernets, and selecting necessary information of the application, wherein the necessary information comprises: technology stack, architecture type, code repository information;
configuring construction parameters, namely inputting different preset standardized configuration forms aiming at different technical stacks to complete construction parameter configuration;
and a step of configuring release parameters, namely configuring a service and a plurality of timing tasks for each application, and configuring a corresponding kubernets resource definition file for a kubernets release unit so as to complete release parameter configuration.
In an exemplary embodiment of the present disclosure, the application building step further includes:
after the application task is established and constructed, construction parameters are obtained based on the application history submitted version and stored in a database, and Jenkins is called to trigger construction processing.
In an exemplary embodiment of the present disclosure, the application building step further includes:
after receiving the application construction request, Jenkins acquires the construction parameters, downloads the source codes, completes corresponding construction actions according to the technical stack, and generates a docker image file, namely an application image.
In an exemplary embodiment of the present disclosure, the method further comprises:
and after an application mirror image is generated, pushing the mirror image file to a harbor mirror image warehouse, and calling back an issuing system to inform a construction result.
In an exemplary embodiment of the present disclosure, the application publishing step further includes:
the application publishing interface is a visual interface, and can acquire and display the running state of the application container in the kubernets in real time;
and selecting and clicking the selected mirror image name on the visual interface by the user to generate a release instruction.
In an exemplary embodiment of the present disclosure, the application publishing step further includes:
after receiving the resource definition update, Kubernetes completes the mirror image update of the container by adopting a rolling update mode;
and after the application is published, sending a publishing result to the user.
In an exemplary embodiment of the present disclosure, the application publishing step further includes:
and an application rollback step of receiving an application rollback request of a user, calling the stored history information, and reissuing the application based on the history information to realize application rollback.
In one aspect of the present disclosure, there is provided a kubernets-based application publication system, including:
the system comprises an application creation module, a configuration module and a release module, wherein the application creation module is used for selecting application necessary information to create an application based on kubernets and respectively configuring construction parameters and release parameters of the application;
the application construction module is used for constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction;
and the application issuing module is used for receiving a user issuing instruction and calling the kubernets API to complete issuing the application mirror image.
In one aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory having computer readable instructions stored thereon which, when executed by the processor, implement a method according to any of the above.
In an aspect of the disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the method according to any one of the above.
In the application release method based on kubernets in the exemplary embodiment of the disclosure, application necessary information is selected based on kubernets to create an application, and construction parameters and release parameters of the application are configured respectively; constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction; and receiving a user issuing instruction, and calling the kubernets API by the application mirror image to complete issuing. According to the method and the system, a set of universal application publishing system supporting multiple technology stacks is realized by arranging the project kubernets based on the open source container, and the method and the system have the advantages of reducing application publishing docking cost, shortening application publishing period, reducing application publishing risk and improving cluster resource utilization rate.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
FIG. 1 illustrates a flow diagram of a kubernets-based application publication method according to an exemplary embodiment of the present disclosure;
FIG. 2 illustrates a workflow diagram of a kubernets-based application publication method according to an exemplary embodiment of the present disclosure;
FIG. 3 illustrates an architecture diagram of a kubernets-based application publication system according to an exemplary embodiment of the present disclosure;
FIG. 4 shows a schematic block diagram of a kubernets-based application publication system according to an example embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of an electronic device according to an exemplary embodiment of the present disclosure; and
fig. 6 schematically illustrates a schematic diagram of a computer-readable storage medium according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the disclosure can be practiced without one or more of the specific details, or with other methods, components, materials, systems, steps, and so forth. In other instances, well-known structures, methods, systems, implementations, materials, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more software hardened modules, or in different networks and/or processor systems and/or microcontroller systems.
In the present exemplary embodiment, first, an application publishing method based on kubernets is provided; referring to fig. 1, the kubernets-based application publishing method may include the steps of:
an application creating step S110, selecting application necessary information to create an application based on kubernets, and respectively configuring construction parameters and release parameters of the application;
an application construction step S120, constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction;
and an application issuing step S130, receiving a user issuing instruction, and calling the kubernets API by the application mirror image to complete issuing.
In the application release method based on kubernets in the exemplary embodiment of the disclosure, application necessary information is selected based on kubernets to create an application, and construction parameters and release parameters of the application are configured respectively; constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction; and receiving a user issuing instruction, and calling the kubernets API by the application mirror image to complete issuing. According to the method and the system, a set of universal application publishing system supporting multiple technology stacks is realized by arranging the project kubernets based on the open source container, and the method and the system have the advantages of reducing application publishing docking cost, shortening application publishing period, reducing application publishing risk and improving cluster resource utilization rate.
Next, the kubernets-based application distribution method in the present exemplary embodiment will be further described.
In the embodiment of the present example, the core technical solution flow is as follows:
the publishing system based on the B/S architecture adopts vuejs technology to realize a front-end page and adopts django technology to realize a server-end interface;
the issuing system provides a unified account authentication and authority management function, and provides different authority control aiming at users with different identities;
a user needs to create an application at first, select a technical stack adopted by the application, and establish and release standardized configuration of parameters;
the user can trigger the construction process of the docker mirror image by triggering the construction process of the application and selecting the constructed code to submit the version, and the stage is realized by Jenkins technology;
after Jenkins finish mirror image construction, the callback issuing system returns a mirror image name, and the mirror image name is stored in a database to be issued;
the user selects the name of the mirror image to be published, the mirror image can be pushed to the kubernets platform by clicking a publishing button, and the kubernets completes the rolling publishing of the application.
In the step S110 of creating an application, an application necessary information creating application may be selected based on kubernets, and the construction parameters and the release parameters of the application may be configured respectively.
In an embodiment of the present example, the creating application step further includes:
a necessary information selection step, namely creating an application based on kubernets, and selecting necessary information of the application, wherein the necessary information comprises: technology stack, architecture type, code repository information;
configuring construction parameters, namely inputting different preset standardized configuration forms aiming at different technical stacks to complete construction parameter configuration;
and a step of configuring release parameters, namely configuring a service and a plurality of timing tasks for each application, and configuring a corresponding kubernets resource definition file for a kubernets release unit so as to complete release parameter configuration.
In the embodiment of the present example, a user first creates an application in the system, selects a technology stack and an architecture type adopted by the application, and fills in necessary information such as a code warehouse of the application.
The user configures the construction parameters for the application, different standardized configuration forms are provided for input aiming at different technical stacks, and the configuration affects the specific process of packaging the program into a mirror image.
The user configures publishing parameters for the applications, each application can configure one service and a plurality of timing tasks, each publishing unit needs to configure a corresponding kubernets resource definition file which is stored in the YAM L format, and the configuration influences how the program is published to the kubernets.
In the application construction step S120, an application mirror image may be constructed based on Jenkins and necessary information of the application, and mirror image information of the application mirror image is stored in a database, thereby completing application construction.
In an embodiment of the present example, the application building step further comprises:
after the application task is established and constructed, construction parameters are obtained based on the application history submitted version and stored in a database, and Jenkins is called to trigger construction processing.
In an embodiment of the present example, the application building step further comprises:
after receiving the application construction request, Jenkins acquires the construction parameters, downloads the source codes, completes corresponding construction actions according to the technical stack, and generates a docker image file, namely an application image.
In an embodiment of the present example, the method further comprises:
and after an application mirror image is generated, pushing the mirror image file to a harbor mirror image warehouse, and calling back an issuing system to inform a construction result.
In the embodiment of the example, the release system acquires the latest submission history of the application from the gitlab code warehouse, a user needs to select a code of a certain submission version, the release system creates a construction task, stores relevant construction parameters into a database, and calls Jenkins to trigger construction processing.
After receiving a construction request from the issuing system, Jenkins calls the issuing system to acquire detailed parameters of a construction task, starts downloading source codes, completes corresponding construction actions according to different technology stacks, finally pushes the constructed docker image to a hardor image warehouse, and calls back the issuing system to inform a construction result.
And after receiving the construction result, the issuing system stores the constructed mirror image information into the database, and the construction action is completely finished at the moment.
In the application issuing step S130, a user issuing instruction may be received, and the application image may be called kubernetsAPI to complete issuing.
In this exemplary embodiment, the application publishing step further includes:
the application publishing interface is a visual interface, and can acquire and display the running state of the application container in the kubernets in real time;
and selecting and clicking the selected mirror image name on the visual interface by the user to generate a release instruction.
In this exemplary embodiment, the application publishing step further includes:
after receiving the resource definition update, Kubernetes completes the mirror image update of the container by adopting a rolling update mode;
and after the application is published, sending a publishing result to the user.
In this exemplary embodiment, the application publishing step further includes:
and an application rollback step of receiving an application rollback request of a user, calling the stored history information, and reissuing the application based on the history information to realize application rollback.
In the embodiment of the example, after the user enters the publishing interface, the publishing system acquires the running state of the application container in kubernets in real time and displays the running state on the web interface.
The user selects the mirror name to be published, clicks a publishing button, the publishing system fills the mirror name published this time into the kubernets resource definition file configured before, and calls kubernets API to complete publishing.
After receiving the resource definition update, Kubernetes finishes the mirror image upgrade of the container by adopting a rolling upgrade mode, and finally, after all containers are finished by rolling upgrade, the issuing system informs the user of successful issuing, otherwise, informs of failed issuing.
The user can use the rollback function in the publishing system, and the publishing system can re-publish the kubernets resource file published last time according to the stored historical information so as to achieve the goal of container rollback.
In the embodiment of the present example, the present disclosure has an advantage of reducing application publication docking costs: because the release system adopts standardized construction and release of configuration forms for different technical stacks, the time cost of application docking to the release system is extremely low, and the operation and maintenance efficiency is greatly improved.
In the embodiment of the present example, the present disclosure has an advantage of shortening the application issuance period: the kubernets are adopted as a container arrangement engine of a large-scale cluster, and when one application is issued, rolling upgrade of all containers can be completed in tens of seconds.
In the embodiment of the present example, the present disclosure has an advantage of reducing the risk of application publishing: the application container is released by adopting a kubernets rolling upgrading mode, so that the fault influence surface caused by errors of the online code can be reduced, and quick rollback can be supported.
In the embodiment of the present example, the present disclosure has an advantage of improving cluster resource utilization: better resource balanced scheduling and elastic resource management can be realized by adopting a kubernets containerization technology, and hardware cost can be obviously reduced by mixing applications occupied by different resources.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
In addition, in the present exemplary embodiment, an application distribution system based on kubernets is also provided. Referring to fig. 4, the kubernets-based application publication system 200 may include: a create application module 210, an application build module 220, and an application publication module 230. Wherein:
the creation application module 210 is used for selecting application necessary information to create an application based on kubernets and respectively configuring construction parameters and release parameters of the application;
the application construction module 220 is used for constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction;
and the application issuing module 230 is configured to receive a user issuing instruction, and call the kubernets API to complete issuing the application image.
The specific details of each kubernetes-based application distribution system module are already described in detail in the corresponding kubernetes-based application distribution method, and therefore, the details are not described herein again.
It should be noted that although several modules or units of the kubernets based application publication system 200 are mentioned in the above detailed description, such partitioning is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 300 according to such an embodiment of the invention is described below with reference to fig. 5. The electronic device 300 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: the at least one processing unit 310, the at least one memory unit 320, a bus 330 connecting different system components (including the memory unit 320 and the processing unit 310), and a display unit 340.
Wherein the storage unit stores program code that is executable by the processing unit 310 to cause the processing unit 310 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary method" of the present specification. For example, the processing unit 310 may perform steps S110 to S130 as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache memory unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
Electronic device 300 may also communicate with one or more external devices 370 (e.g., keyboard, pointing device, Bluetooth device, etc.), and also with one or more devices that enable a user to interact with electronic device 300, and/or with any device (e.g., router, modem, etc.) that enables electronic device 300 to communicate with one or more other computing devices.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal system, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.
Referring to fig. 6, a program product 400 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (11)

1. An application issuing method based on kubernets is characterized by comprising the following steps:
an application creating step, namely selecting application necessary information to create an application based on kubernets, and respectively configuring construction parameters and release parameters of the application;
an application construction step, namely constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction;
and an application issuing step, namely receiving a user issuing instruction, and calling the kubernets API by the application mirror image to complete issuing.
2. The method of claim 1, wherein the creating an application step further comprises:
a necessary information selection step, namely creating an application based on kubernets, and selecting necessary information of the application, wherein the necessary information comprises: technology stack, architecture type, code repository information;
configuring construction parameters, namely inputting different preset standardized configuration forms aiming at different technical stacks to complete construction parameter configuration;
and a step of configuring release parameters, namely configuring a service and a plurality of timing tasks for each application, and configuring a corresponding kubernets resource definition file for a kubernets release unit so as to complete release parameter configuration.
3. The method of claim 1, wherein the application building step further comprises:
after the application task is established and constructed, construction parameters are obtained based on the application history submitted version and stored in a database, and Jenkins is called to trigger construction processing.
4. The method of claim 1, wherein the application building step further comprises:
after receiving the application construction request, Jenkins acquires the construction parameters, downloads the source codes, completes corresponding construction actions according to the technical stack, and generates a docker image file, namely an application image.
5. The method of claim 4, wherein the method further comprises:
and after an application mirror image is generated, pushing the mirror image file to a harbor mirror image warehouse, and calling back an issuing system to inform a construction result.
6. The method of claim 1, wherein the application publishing step further comprises:
the application publishing interface is a visual interface, and can acquire and display the running state of the application container in the kubernets in real time;
and selecting and clicking the selected mirror image name on the visual interface by the user to generate a release instruction.
7. The method of claim 1, wherein the application publishing step further comprises:
after receiving the resource definition update, Kubernetes completes the mirror image update of the container by adopting a rolling update mode;
and after the application is published, sending a publishing result to the user.
8. The method of claim 1, wherein the application publishing step further comprises:
and an application rollback step of receiving an application rollback request of a user, calling the stored history information, and reissuing the application based on the history information to realize application rollback.
9. A kubernets-based application publication system, the system comprising:
the system comprises an application creation module, a configuration module and a release module, wherein the application creation module is used for selecting application necessary information to create an application based on kubernets and respectively configuring construction parameters and release parameters of the application;
the application construction module is used for constructing an application mirror image based on Jenkins and the necessary information of the application, and storing the mirror image information of the application mirror image into a database to complete application construction;
and the application issuing module is used for receiving a user issuing instruction and calling the kubernets API to complete issuing the application mirror image.
10. An electronic device, comprising
A processor; and
a memory having computer readable instructions stored thereon which, when executed by the processor, implement the method of any of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202010106972.4A 2020-02-21 2020-02-21 Application issuing method and system based on kubernets Pending CN111399897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010106972.4A CN111399897A (en) 2020-02-21 2020-02-21 Application issuing method and system based on kubernets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010106972.4A CN111399897A (en) 2020-02-21 2020-02-21 Application issuing method and system based on kubernets

Publications (1)

Publication Number Publication Date
CN111399897A true CN111399897A (en) 2020-07-10

Family

ID=71430454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010106972.4A Pending CN111399897A (en) 2020-02-21 2020-02-21 Application issuing method and system based on kubernets

Country Status (1)

Country Link
CN (1) CN111399897A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897551A (en) * 2020-08-03 2020-11-06 上海嗨酷强供应链信息技术有限公司 Platform and method for rapidly cloning software environment in cloud environment
CN112398933A (en) * 2020-11-05 2021-02-23 携程旅游网络技术(上海)有限公司 Cloud native application publishing method, system, device and storage medium
CN112579097A (en) * 2020-12-21 2021-03-30 广州博冠信息科技有限公司 Software project construction method and device, storage medium and electronic equipment
CN112783570A (en) * 2021-01-19 2021-05-11 中原银行股份有限公司 Application migration method, system and medium based on service grid
CN112948830A (en) * 2021-03-12 2021-06-11 哈尔滨安天科技集团股份有限公司 File risk identification method and device
CN112965785A (en) * 2021-03-05 2021-06-15 食亨(上海)科技服务有限公司 Container-based micro-service application development method and development platform
CN113312063A (en) * 2021-05-31 2021-08-27 中电福富信息科技有限公司 Kubernetes-based software system rapid deployment and upgrade method
CN113485795A (en) * 2021-07-26 2021-10-08 四川万益能源科技有限公司 Automatic container starting method based on multiple types of projects
CN113626043A (en) * 2021-08-04 2021-11-09 湖北美和易思教育科技有限公司 Kubernetes-based automatic container development environment packaging method and system
CN114936898A (en) * 2022-05-16 2022-08-23 广州高专资讯科技有限公司 Management system, method, equipment and storage medium based on spot supply

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997297A (en) * 2017-03-31 2017-08-01 广东亿迅科技有限公司 A kind of software development management platform and method based on DevOps
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN108984205A (en) * 2018-07-26 2018-12-11 浙江大学 A kind of method and device of application automation building and deployment based on container technique
WO2019095936A1 (en) * 2017-11-15 2019-05-23 腾讯科技(深圳)有限公司 Method and system for building container mirror image, and server, apparatus and storage medium
CN109814879A (en) * 2019-01-16 2019-05-28 福建省天奕网络科技有限公司 Automate CI/CD project dispositions method, storage medium
CN110647332A (en) * 2019-09-30 2020-01-03 北京百度网讯科技有限公司 Software deployment method and device based on container cloud
CN110717134A (en) * 2019-09-19 2020-01-21 青岛海信电器股份有限公司 Product description issuing method and device, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997297A (en) * 2017-03-31 2017-08-01 广东亿迅科技有限公司 A kind of software development management platform and method based on DevOps
WO2019095936A1 (en) * 2017-11-15 2019-05-23 腾讯科技(深圳)有限公司 Method and system for building container mirror image, and server, apparatus and storage medium
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN108984205A (en) * 2018-07-26 2018-12-11 浙江大学 A kind of method and device of application automation building and deployment based on container technique
CN109814879A (en) * 2019-01-16 2019-05-28 福建省天奕网络科技有限公司 Automate CI/CD project dispositions method, storage medium
CN110717134A (en) * 2019-09-19 2020-01-21 青岛海信电器股份有限公司 Product description issuing method and device, storage medium and electronic equipment
CN110647332A (en) * 2019-09-30 2020-01-03 北京百度网讯科技有限公司 Software deployment method and device based on container cloud

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897551A (en) * 2020-08-03 2020-11-06 上海嗨酷强供应链信息技术有限公司 Platform and method for rapidly cloning software environment in cloud environment
CN111897551B (en) * 2020-08-03 2021-07-02 汇链通供应链科技(上海)有限公司 Platform and method for rapidly cloning software environment in cloud environment
CN112398933A (en) * 2020-11-05 2021-02-23 携程旅游网络技术(上海)有限公司 Cloud native application publishing method, system, device and storage medium
CN112579097A (en) * 2020-12-21 2021-03-30 广州博冠信息科技有限公司 Software project construction method and device, storage medium and electronic equipment
CN112579097B (en) * 2020-12-21 2023-08-08 广州博冠信息科技有限公司 Software project construction method and device, storage medium and electronic equipment
CN112783570A (en) * 2021-01-19 2021-05-11 中原银行股份有限公司 Application migration method, system and medium based on service grid
CN112965785B (en) * 2021-03-05 2023-06-13 食亨(上海)科技服务有限公司 Container-based micro-service application development method and development platform
CN112965785A (en) * 2021-03-05 2021-06-15 食亨(上海)科技服务有限公司 Container-based micro-service application development method and development platform
CN112948830A (en) * 2021-03-12 2021-06-11 哈尔滨安天科技集团股份有限公司 File risk identification method and device
CN112948830B (en) * 2021-03-12 2023-11-10 安天科技集团股份有限公司 File risk identification method and device
CN113312063A (en) * 2021-05-31 2021-08-27 中电福富信息科技有限公司 Kubernetes-based software system rapid deployment and upgrade method
CN113485795A (en) * 2021-07-26 2021-10-08 四川万益能源科技有限公司 Automatic container starting method based on multiple types of projects
CN113485795B (en) * 2021-07-26 2024-03-26 四川万益能源科技有限公司 Automatic container starting method based on multiple types of items
CN113626043A (en) * 2021-08-04 2021-11-09 湖北美和易思教育科技有限公司 Kubernetes-based automatic container development environment packaging method and system
CN113626043B (en) * 2021-08-04 2024-04-05 武汉美和易思数字科技有限公司 Automatic packaging method and system for container development environment based on Kubernetes
CN114936898A (en) * 2022-05-16 2022-08-23 广州高专资讯科技有限公司 Management system, method, equipment and storage medium based on spot supply
CN114936898B (en) * 2022-05-16 2023-04-18 广州高专资讯科技有限公司 Management system, method, equipment and storage medium based on spot supply

Similar Documents

Publication Publication Date Title
CN111399897A (en) Application issuing method and system based on kubernets
CN107391114B (en) Page visual rendering method and device
CN108961033B (en) Multi-service system interaction method and device, storage medium and electronic terminal
JP2009522648A (en) Dynamic relocation of workflow by end user
CN111158745A (en) Data processing platform based on Docker
US11262983B2 (en) Services integration in an integrated development environment
CN110647332A (en) Software deployment method and device based on container cloud
CN107577609B (en) Embedded system dynamic module debugging system based on host end dynamic link
KR102553440B1 (en) Serverless development support platform
US20210089336A1 (en) System and method for programmatically converting interface specification to generic plug-in code
CN111459813B (en) Test processing method and device
JP7048663B2 (en) Code execution methods, devices, rendering devices, storage media, and programs
US20160179570A1 (en) Parallel Computing Without Requiring Antecedent Code Deployment
KR20220088333A (en) Dynamic cloud deployment of robotic process automation (rpa) robots
RU2696299C2 (en) Control when initiating elementary tasks on server platform
CN112131230B (en) Application software as a service (SaaS) realization method, device, equipment and storage medium
US10992733B1 (en) Workload management in hybrid clouds
US10917458B2 (en) Message broker configuration
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
US20220197633A1 (en) Software defined build infrastructure for hybrid, virtualized and native build environments
US11782747B2 (en) System and method for notebook processing to handle job execution in cross-cloud environment
CN112181403B (en) Development operation and maintenance integrated implementation method, device, equipment and readable storage medium
US11163603B1 (en) Managing asynchronous operations in cloud computing environments
US8561077B1 (en) Binder for a multi-threaded process to access an un-shareable resource
EP2988469A1 (en) A method and apparatus for updating a user interface of one program unit in response to an interaction with a user interface of another program unit

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