CN114237651A - Installation method and device of cloud native application, electronic equipment and medium - Google Patents

Installation method and device of cloud native application, electronic equipment and medium Download PDF

Info

Publication number
CN114237651A
CN114237651A CN202111607123.8A CN202111607123A CN114237651A CN 114237651 A CN114237651 A CN 114237651A CN 202111607123 A CN202111607123 A CN 202111607123A CN 114237651 A CN114237651 A CN 114237651A
Authority
CN
China
Prior art keywords
software package
palm
configuration item
chart software
native application
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
CN202111607123.8A
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111607123.8A priority Critical patent/CN114237651A/en
Publication of CN114237651A publication Critical patent/CN114237651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides an installation method of cloud native application, which can be applied to the technical field of cloud computing. The installation method of the cloud native application comprises the following steps: according to the deployment condition of the cloud native application, a palm chart software package is constructed; responding to the fact that a user determines a palm chart software package, generating a form corresponding to the palm chart software package and displaying the form; and responding to a first configuration item input in the form by the user, and calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application. The present disclosure also provides an installation apparatus, a device, a storage medium, and a program product of the cloud native application.

Description

Installation method and device of cloud native application, electronic equipment and medium
Technical Field
The present disclosure relates to the field of cloud computing technologies, and may be applied to the field of financial technologies, and more particularly, to a method, an apparatus, a device, a medium, and a program product for installing a cloud native application.
Background
At present, the application installation mode is a command line mode, and if Metadata is set according to an actual situation, a document in a YAML format needs to be specified or edited in the command line, so as to achieve the purpose of differential installation. The existing installation mode has the following problems: 1. the command line is used for installation, the learning threshold is high, and certain command line knowledge is required; 2. when Metadata is set, the meaning of the Metadata needs to be known, and if the Metadata definition of the software package is particularly large, the setting difficulty is high, the input error is easy, and the verification is lacked. This may result in a situation where the user is not installing or installing the wrong device as the user really intends, which may seriously affect the user experience.
Disclosure of Invention
In view of the above, the present disclosure provides a method, apparatus, device, medium, and program product for installing a cloud-native application that improve installation efficiency of the cloud-native application.
According to a first aspect of the present disclosure, there is provided an installation method of a cloud-native application, including: according to the deployment condition of the cloud native application, a palm chart software package is constructed; responding to the fact that a user determines the palm chart software package, generating a form corresponding to the palm chart software package, and displaying the form; and responding to a first configuration item input in the form by a user, and calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application.
According to the embodiment of the disclosure, the building of the palm chart software package according to the deployment condition of the cloud native application comprises the following steps: and according to the deployment condition of the cloud native application, predefining metadata parameters of the palm chart software package.
According to an embodiment of the present disclosure, the generating a form corresponding to the palm chart software package and displaying the form in response to the user determining that the palm chart software package includes: and responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package according to the metadata parameter of the palm chart software package, and displaying the form.
According to the embodiment of the disclosure, the building of the helm chart software package according to the deployment situation of the application further includes: according to the deployment condition of the application, predefining at least one of a list file of a pod of the help chart software package, a Template file of the help chart software package and a value list of the help chart software package.
According to an embodiment of the disclosure, the calling, in response to a first configuration item input in the form by a user, a palm chart software package manager corresponding to the first configuration item to install the cloud native application includes: generating a second configuration item in response to the first configuration item input in the form by the user; and calling a palm chart software package manager to install the cloud native application according to the second configuration item.
According to an embodiment of the present disclosure, the method further comprises: in response to a first configuration item input in the form by a user, determining a resolution corresponding to the first configuration item, so that the form shows the resolution corresponding to the first configuration item.
According to an embodiment of the present disclosure, the method further comprises: responding to a first configuration item input in the form by a user, and verifying the first configuration item according to a preset verification rule; and sending an error prompt when the checking result is error.
According to an embodiment of the present disclosure, the first configuration item includes at least two configuration items, the method further includes: determining whether a mutual exclusion relationship exists between the configuration items aiming at the at least two configuration items; and sending an error prompt under the condition that the mutual exclusion relationship is determined to exist.
A second aspect of the present disclosure provides an installation apparatus of a cloud-native application, including: the building module is used for building a helm chart software package according to the deployment condition of the cloud native application; the generation module is used for responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package and displaying the form; and the installation module is used for responding to a first configuration item input in the form by a user, and calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the installation method of the cloud-native application described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the installation method of the cloud-native application described above.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the installation method of the cloud-native application described above.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of an installation method, apparatus, device, medium, and program product of a cloud-native application according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of installation of a cloud-native application according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of a method of installation of a cloud-native application, in accordance with an embodiment of the present disclosure;
fig. 4 schematically illustrates an execution flowchart of an installation method of a cloud-native application according to an embodiment of the present disclosure;
fig. 5 schematically shows a block diagram of an installation apparatus of a cloud-native application according to an embodiment of the present disclosure; and
fig. 6 schematically shows a block diagram of an electronic device adapted to implement an installation method of a cloud-native application according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a method and a device for installing cloud native application, wherein a palm chart software package is constructed according to the deployment condition of the cloud native application; responding to the fact that a user determines a palm chart software package, generating a form corresponding to the palm chart software package and displaying the form; and responding to a first configuration item input in the form by the user, and calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application. The visual design is realized by displaying the form; when interacting with an application installer, the application installer can directly input a key configuration item (namely a first configuration item) in the form, and execute the installation of the cloud native application by means of the palm chart software package manager according to the content of the key configuration item, so that the cloud native application is installed in a what-you-see-is-what-you-get manner.
Fig. 1 schematically illustrates an application scenario diagram of an installation method, apparatus, device, medium, and program product of a cloud-native application according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the installation method of the cloud native application provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the installation apparatus of the cloud-native application provided by the embodiment of the present disclosure may be generally disposed in the server 105. The installation method of the cloud native application provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the installation apparatus of the cloud-native application provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The installation method of the cloud-native application of the disclosed embodiment will be described in detail below with fig. 2 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flowchart of an installation method of a cloud-native application according to an embodiment of the present disclosure.
As shown in fig. 2, the embodiment includes operations S210 to S230, and the installation method of the cloud-native application may be performed by a server.
In operation S210, a helm chart software package is constructed according to the deployment situation of the cloud native application.
Helm is a Kubernets package manager (i.e., software package manager), and is the best way to find, share, and use the software built by Kubernets. Helm Charts (software package) is a series of YAML files used to encapsulate Kubernets native applications. Some Metadata of an application may be customized at the time the application is deployed by a user to facilitate distribution of the application.
For application (such as cloud native application) publishers, applications can be packaged by Helm, application dependencies can be managed, application versions can be managed, and applications can be published to the software repository; for users (such as application installers), the application program can be searched, installed, upgraded, rolled back and uninstalled on Kubernets in a simple mode without writing complex application deployment files after Helm is used.
With the help (package manager), packages can be quickly found, downloaded and installed like the apt used in Ubuntu, yum used in Centos or the pip in Python.
In operation S210, an application developer may build a palm chart software package according to a deployment situation of an application (i.e., a cloud native application). A template file, which may be a key configuration value predefined value file, may be used to collect all configuration items into one value.
In operation S220, in response to the user determining the palm chart software package, a form corresponding to the palm chart software package is generated and displayed.
For example, a user views a palm chart software package in a software repository in a WEB page, and selects the palm chart software package for installation (i.e., the user determines the palm chart software package). And responding to the fact that the user determines the palm chart software package, generating a corresponding dynamic form, and displaying the form to the user.
In operation S230, in response to a first configuration item input in the form by the user, a palm chart software package manager corresponding to the first configuration item is called to install the cloud-native application.
The user can install the software package through a web page mode, for example, an application installer inputs a key configuration item (first configuration item) according to actual requirements. In response to a first configuration item input in the form by the user, starting to call a palm chart software package manager corresponding to the first configuration item to install the cloud native application.
According to the installation method of the cloud native application, a palm chart software package is constructed according to the deployment condition of the cloud native application; responding to the fact that a user determines a palm chart software package, generating a form corresponding to the palm chart software package and displaying the form; and responding to a first configuration item input in the form by the user, and calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application. The visual design is realized by displaying the form; when interacting with an application installer, the application installer can directly input a key configuration item (namely a first configuration item) in the form, and execute the installation of the cloud native application by means of the palm chart software package manager according to the content of the key configuration item, so that the cloud native application is installed in a what-you-see-is-what-you-get manner.
According to the deployment situation of the cloud native application, a palm chart software package is constructed, and the steps comprise: and according to the deployment condition of the cloud native application, predefining metadata parameters of the palm chart software package.
Metadata is defined as: data describing the data, descriptive information for the data and information resources. Metadata (Metadata) is data (data about other data) describing other data, or structural data (structured data) for providing information about a certain resource. Metadata is data that describes an object such as an information resource or data, and is used for the purpose of: identifying a resource; evaluating the resources; tracking changes of the resource in the using process; the method realizes simple and efficient management of a large amount of networked data; the information resources are effectively discovered, searched and integrally organized, and the used resources are effectively managed.
The basic characteristics of metadata are as follows: a) once the metadata is established, it can be shared: the structure and integrity of the metadata depend on the value and use environment of the information resources; the development and utilization environment of metadata is often a varied distributed environment; neither format can fully satisfy the different needs of different groups. b) Metadata is a coding scheme: metadata is an encoding system used to describe digital information resources, especially network information resources, which results in fundamental differences between metadata and conventional data encoding systems; the most important feature and function of metadata is to build a machine understandable framework for digitized information resources. Since metadata is also data, it can be stored and retrieved in a database in a data-like manner. The use of data elements will be made accurate and efficient if the organization of the data elements is provided while the metadata describing the data elements is provided. The user may first view his metadata when using the data in order to be able to obtain the information he wants.
The method for installing the cloud native application provided by the embodiment is used for constructing a palm chart software package, and comprises the following steps: the metadata parameters of the palm Chart software package are predefined. Since metadata is data that describes data and is shareable once established, a changing distributed environment can be achieved by predefining metadata parameters, thereby generating a dynamic form.
Responding to the fact that a user determines a palm chart software package, generating a form corresponding to the palm chart software package and displaying the form, wherein the steps of: and responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package according to the metadata parameter of the palm chart software package, and displaying the form.
Different Metadata parameters defined according to the palm chart software package. And dynamically rendering different page forms by using the metadata parameters, so that a corresponding page does not need to be designed for each software package, and various different software packages can be conveniently accessed and decoupled from a WEB platform.
According to the installation method of the cloud native application provided by the embodiment, according to the difference of each software or application, when the software or application leaves a factory, a page form rendering form during later installation is configured through predefined visual configuration metadata, so that a user can install the cloud native application conveniently in a form of a dynamically configurable form.
According to the deployment situation of the application, building a helm chart software package, which further comprises the following steps: according to the deployment condition of the application, at least one of a list file of a pod of the predefined helm chart software package, a Template file of the predefined helm chart software package and a value list of the predefined helm chart software package.
Helm (software package manager) is equivalent to a package management tool yum of the Linux system, and managed software packages are some packaged manifest files. Helm chart is a Helm chart software package that may contain a manifest file of predefined pod, which may include: configuration information such as Service, Deployment, daemon set, repliaset, stateful set, HPA, etc. it is needless to say that the above list files do not always include all the configuration information, and the contents included in the list may be different according to different applications. Template is a Template file, and because a configuration list can be suitable for various scenes, some custom configurations need to be made according to the use scenes of a user, such as: HTTPS is configured in the Nginx configuration list, a configuration certificate is needed, but the certificate cannot be packaged into Chart in advance, a mechanism is needed to adapt to the custom requirements by means of passing variables, Template exists for the purpose, and a value list (values. Reproducibility: is Helm's Chart (software Package) warehouse, supports HTTPS/HTTP. And (3) Release: s is an example of a particular Chart deployed on a target K8s (Kubernets) cluster.
According to the installation method of the cloud native application, a user can conveniently manage the palm chart software package through at least one of the list file of the pod of the predefined palm chart software package, the Template file of the predefined palm chart software package and the value list of the predefined palm chart software package.
In response to a first configuration item input in a form by a user, invoking a palm chart software package manager corresponding to the first configuration item to install a cloud native application, including: generating a second configuration item in response to the first configuration item input in the form by the user; according to the second configuration item, a palm chart software package manager is called to install the cloud native application.
According to the installation method of the cloud native application, the second configuration item is generated by responding to the first configuration item input by the user in the form, the installation difficulty of an application installer can be reduced, if the application installer only needs to input some key configuration items, the second configuration item (such as a complete configuration item) can be automatically generated, and therefore the palm chart software package manager is called to install the cloud native application according to the second configuration item, and user experience is greatly improved.
The installation method of the cloud native application further comprises the following steps: in response to a first configuration item input in the form by the user, a resolution corresponding to the first configuration item is determined, so that the form shows the resolution corresponding to the first configuration item.
According to the installation method of the cloud native application, the software package is installed in a WEB-UI visual mode, corresponding analysis is performed for help explanation aiming at each configuration item, the installation difficulty of a user is reduced, if the user refers to the corresponding analysis, the installation can be performed only by clicking input on a page, and the cloud native application is installed in a what you see is what you get mode.
The installation method of the cloud native application further comprises the following steps: responding to a first configuration item input in the form by a user, and verifying the first configuration item according to a preset verification rule; and sending an error prompt when the checking result is error.
For example, the input of the user (first configuration item) is checked according to a preset check rule. When the user inputs an error, an error prompt is sent to allow the user to correct the current input.
The installation method of the cloud native application provided by this embodiment can provide a verification function, avoid an installation problem caused by an erroneous input (first configuration item), reduce installation difficulty, and improve installation power.
The installation method of the cloud native application comprises the following steps that a first configuration item comprises at least two configuration items, and the method further comprises the following steps: determining whether a mutual exclusion relationship exists between the configuration items aiming at least two configuration items; and sending an error prompt under the condition that the mutual exclusion relationship is determined to exist.
The installation method of the cloud native application provided by this embodiment may check the plurality of configuration items, for example, check whether a mutual exclusion relationship exists between the plurality of configuration items.
The installation method of the cloud native application provided by the embodiment provides a diversified data verification function, avoids the installation problem caused by the mutual exclusion relationship among configuration items, can reduce the installation difficulty, and improves the installation power.
Fig. 3 schematically illustrates a schematic diagram of an installation method of a cloud-native application according to an embodiment of the present disclosure. Referring to FIG. 3, a dynamic form 301, a rendering engine API302, a software package manager 303, a first input check 304, a second input check 305, and an installation manager 306 are included.
The dynamic form 301 is used to interact with an application installer, rendering a form generated from the application through front-end js. The rendering engine API302 is primarily used to extract metadata definition documents of key configuration items from the software package, which specify how the front-end dynamic form should be displayed, how to interact with the installer. The rendering engine API302 can check metadata format and logic, understanding the configuration items in metadata. And then generating data which can be understood by the front js, returning the data to the dynamic form module, and enabling the dynamic form module to work according to the data. The package manager 303 is used to manage the packages, similar to a package repository, to which all the lm charts are accessed and which defines the metadata document of the key configuration item (e.g. the first configuration item). The first input check 304 is used to check the user input according to the check rule generated by the rendering engine API. When the user inputs an error, an error prompt is returned, so that the user can correct the error prompt conveniently. The second input check 305 may be used in conjunction with the first input check 304, for example, to check that the front end cannot check, such as mutual exclusion relationship among multiple configuration items; the second input check 305 may also be used alone. The installation manager 306 may be used to manage the installed software packages for the user to later maintain the installed applications (i.e., cloud-native applications). Such as upgrading, modifying configurations, etc.
Fig. 4 schematically illustrates an execution flowchart of an installation method of a cloud-native application according to an embodiment of the present disclosure; as shown in fig. 4, this embodiment includes operations S401 to S412.
In operation S401, an application software developer constructs a palm characters installation package according to the deployment condition of an application (cloud native application). Such as template file and key configuration value predefined value file, all configuration items are collected into one value. Then, according to the format and type of the configuration in the values.yaml, etc., a verification manner for rendering the values.metadata.yaml file of the installation form and regarding the key configuration item (first configuration item) is defined. Such as integer configuration, value range, a normal IPv4 address, etc. Value, metadata, yaml is put in a peer directory with value, yaml and is packed into a normal helm characters software package through helm.
In operation S402, the packaged helm characters software package is uploaded to the software warehouse platform.
In operation S403, it is determined whether the software package passes the verification. For example, the software warehouse checks the uploaded package, mainly parsing the definition values. If the parsing fails (i.e., the software package fails to be checked), operation S405 executes to return an error prompt.
If the software package passes the verification, the application installer operates S404 to view the installation package in the software repository in a web page, and select the installation package for installation.
In operation S406, the rendering engine and the front end render into a corresponding dynamic form according to the defined values.
In operation S407, the application installer inputs a key configuration item (first configuration item) according to the actual situation and the prompt.
In operation S408, it is determined whether the first check passes. When an error is input, operation S410 is performed, the configuration item cannot be submitted, and error details are displayed.
When the application installer completes the submission of the configuration item and passes the first check, operation S409 is performed, for example, the first configuration item is provided to the backend system for checking at the logic level. If the second check is not passed, operation S412 is executed to return an error prompt.
In operation S411, that is, after the second verification is passed, according to data (such as the first configuration item) provided by the front end, predefined values.yaml contents in the palm characters software package are covered, all merged configuration items (such as the second configuration item) are generated, and a call to the palm characters software package manager corresponding to the first configuration item is started to install the cloud native application.
Based on the installation method of the cloud native application, the invention further provides an installation device of the cloud native application. The apparatus will be described in detail below with reference to fig. 5.
Fig. 5 schematically shows a block diagram of an installation apparatus of a cloud-native application according to an embodiment of the present disclosure.
As shown in fig. 5, the installation apparatus 500 of the cloud-native application of the embodiment includes a building module 510, a generating module 520, and an installing module 530.
The building module is used for building a helm chart software package according to the deployment condition of the cloud native application;
the generating module is used for responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package and displaying the form; and
and the installation module is used for responding to a first configuration item input in the form by the user and calling the palm chart software package manager corresponding to the first configuration item to install the cloud native application.
In some embodiments, a build module to: and according to the deployment condition of the cloud native application, predefining metadata parameters of the palm chart software package.
In some embodiments, the generating module is to: and responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package according to the metadata parameter of the palm chart software package, and displaying the form.
In some embodiments, the build module is further to: according to the deployment condition of the application, at least one of a list file of a pod of the predefined helm chart software package, a Template file of the predefined helm chart software package and a value list of the predefined helm chart software package.
In some embodiments, the installation module is used for responding to the first configuration item input in the form by the user and generating a second configuration item; according to the second configuration item, a palm chart software package manager is called to install the cloud native application.
In some embodiments, the installation apparatus of the cloud native application further includes: the determining module is used for responding to a first configuration item input in the form by a user, and determining the analysis corresponding to the first configuration item, so that the form shows the analysis corresponding to the first configuration item.
In some embodiments, the installation apparatus of the cloud native application further includes: the first verification module is used for responding to a first configuration item input in the form by a user and verifying the first configuration item according to a preset verification rule; and sending an error prompt when the checking result is error.
In some embodiments, the first configuration item includes at least two configuration items, the installation apparatus of the cloud-native application further includes: the second check module is used for determining whether a mutual exclusion relationship exists between the configuration items aiming at least two configuration items; and sending an error prompt under the condition that the mutual exclusion relationship is determined to exist.
According to an embodiment of the present disclosure, any plurality of the building module 510, the generating module 520, and the installing module 530 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the building module 510, the generating module 520, and the installing module 530 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware by any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the building module 510, the generating module 520 and the installing module 530 may be at least partially implemented as a computer program module, which when executed may perform a corresponding function.
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement an installation method of a cloud-native application according to an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM602, and the RAM603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer 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, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM602 and/or RAM603 described above and/or one or more memories other than the ROM602 and RAM 603.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the item recommendation method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 601. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 609, and/or installed from the removable medium 611. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A method of installing a cloud-native application, comprising:
according to the deployment condition of the cloud native application, a palm chart software package is constructed;
responding to the fact that a user determines the palm chart software package, generating a form corresponding to the palm chart software package, and displaying the form; and
in response to a first configuration item input in the form by a user, calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application.
2. The method of claim 1, wherein the building a palm chart software package according to deployment conditions of cloud native applications comprises:
and according to the deployment condition of the cloud native application, predefining metadata parameters of the palm chart software package.
3. The method of claim 2, wherein the generating and presenting the form corresponding to the palm chart software package in response to the user determining the palm chart software package comprises:
and responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package according to the metadata parameter of the palm chart software package, and displaying the form.
4. The method of claim 1, wherein the building a palm chart software package according to deployment of the application further comprises:
according to the deployment condition of the application, predefining at least one of a list file of a pod of the help chart software package, a Template file of the help chart software package and a value list of the help chart software package.
5. The method of claim 1, wherein the invoking of a palm chart software package manager corresponding to a first configuration item to install the cloud native application in response to the first configuration item being input in the form by a user comprises:
generating a second configuration item in response to the first configuration item input in the form by the user;
and calling a palm chart software package manager to install the cloud native application according to the second configuration item.
6. The method of claim 1, further comprising:
in response to a first configuration item input in the form by a user, determining a resolution corresponding to the first configuration item, so that the form shows the resolution corresponding to the first configuration item.
7. The method of claim 1, further comprising:
responding to a first configuration item input in the form by a user, and verifying the first configuration item according to a preset verification rule;
and sending an error prompt when the checking result is error.
8. The method of claim 1, wherein the first configuration item comprises at least two configuration items, the method further comprising:
determining whether a mutual exclusion relationship exists between the configuration items aiming at the at least two configuration items;
and sending an error prompt under the condition that the mutual exclusion relationship is determined to exist.
9. An installation apparatus of a cloud-native application, comprising:
the building module is used for building a helm chart software package according to the deployment condition of the cloud native application;
the generation module is used for responding to the fact that the user determines the palm chart software package, generating a form corresponding to the palm chart software package and displaying the form; and
and the installation module is used for responding to a first configuration item input in the form by a user, and calling a palm chart software package manager corresponding to the first configuration item to install the cloud native application.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method according to any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform a method according to any one of claims 1 to 8.
12. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 8.
CN202111607123.8A 2021-12-24 2021-12-24 Installation method and device of cloud native application, electronic equipment and medium Pending CN114237651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111607123.8A CN114237651A (en) 2021-12-24 2021-12-24 Installation method and device of cloud native application, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111607123.8A CN114237651A (en) 2021-12-24 2021-12-24 Installation method and device of cloud native application, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114237651A true CN114237651A (en) 2022-03-25

Family

ID=80763061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111607123.8A Pending CN114237651A (en) 2021-12-24 2021-12-24 Installation method and device of cloud native application, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114237651A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234545A (en) * 2023-11-16 2023-12-15 深圳万物安全科技有限公司 Application program installation method, device, terminal equipment and storage medium
CN117289951A (en) * 2023-11-22 2023-12-26 华信咨询设计研究院有限公司 Software system multi-application automatic deployment method based on recursion principle
CN118092982A (en) * 2024-04-25 2024-05-28 浪潮通用软件有限公司 Multi-cluster operation and maintenance method, equipment and medium for cloud native application
CN118092982B (en) * 2024-04-25 2024-07-05 浪潮通用软件有限公司 Multi-cluster operation and maintenance method, equipment and medium for cloud native application

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234545A (en) * 2023-11-16 2023-12-15 深圳万物安全科技有限公司 Application program installation method, device, terminal equipment and storage medium
CN117234545B (en) * 2023-11-16 2024-03-08 深圳万物安全科技有限公司 Application program installation method, device, terminal equipment and storage medium
CN117289951A (en) * 2023-11-22 2023-12-26 华信咨询设计研究院有限公司 Software system multi-application automatic deployment method based on recursion principle
CN117289951B (en) * 2023-11-22 2024-04-02 华信咨询设计研究院有限公司 Software system multi-application automatic deployment method based on recursion principle
CN118092982A (en) * 2024-04-25 2024-05-28 浪潮通用软件有限公司 Multi-cluster operation and maintenance method, equipment and medium for cloud native application
CN118092982B (en) * 2024-04-25 2024-07-05 浪潮通用软件有限公司 Multi-cluster operation and maintenance method, equipment and medium for cloud native application

Similar Documents

Publication Publication Date Title
CN110795649A (en) Target page display method, device and system and electronic equipment
CN114237651A (en) Installation method and device of cloud native application, electronic equipment and medium
CN113434241A (en) Page skipping method and device
CN113536253A (en) Method, apparatus, device and medium for controlling display authority of page element
US11930096B2 (en) Systems and methods for rendering interactive web pages
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN115587575A (en) Data table creation method, target data query method, device and equipment
CN116561013B (en) Testing method and device based on target service framework, electronic equipment and medium
CN113176907A (en) Interface data calling method and device, computer system and readable storage medium
CN112965916A (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN110825622A (en) Software testing method, device, equipment and computer readable medium
US12001458B2 (en) Multi-cloud object store access
CN114237765B (en) Functional component processing method, device, electronic equipment and medium
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
CN113986258A (en) Service publishing method, device, equipment and storage medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113535565B (en) Interface use case generation method, device, equipment and medium
CN116594876A (en) Interface testing method, device, equipment and storage medium
CN113535153A (en) Method, device, equipment and medium for encoding custom label
CN115421873A (en) Dictionary construction method, and file evaluation method, device and equipment based on dictionary
CN115098391A (en) Page detection method, device, equipment and medium
CN115185798A (en) Data acquisition and analysis method and device, electronic equipment and storage medium
CN116069312A (en) Page rendering method and device, electronic equipment and computer readable storage medium

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