Parameter configuration method, device, terminal and medium based on Kubernetes hybrid deployment
Through the Kubernetes-based hybrid deployment parameter configuration method, the general configuration parameters are automatically configured, which solves the problems of difficulty and low efficiency of existing hybrid deployment methods, and realizes efficient and automated deployment parameter configuration.
Patent Information
- Application Number
- CN202211481345.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-11-24
AI Technical Summary
The existing hybrid deployment methods are difficult, inefficient in deployment, and are susceptible to human factors, resulting in parameter configuration errors and missed configuration parameters, increasing the probability of errors and reducing deployment quality.
Using a hybrid deployment parameter configuration method based on Kubernetes, by obtaining the deployment documents of each cloud platform, checking whether the business unit is a business function to be deployed, and automatically configures common configuration parameters based on the deployment documents to determine its configuration method and configuration scope.
There is no need to master the parameter configuration rules of each cloud platform, which realizes convenient and efficient automatic configuration of deployment parameters, improves the efficiency and automation level of hybrid deployment, and reduces the probability of errors.
Smart Images

Figure CN115842725B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a parameter configuration method, device and equipment based on Kubernetes hybrid deployment. Background Art
[0002] At present, when business systems are deployed, they are often deployed on multiple different cloud platforms at the same time; for example, the functional modules in the same business system are deployed on cloud platforms such as Alibaba Cloud, Huawei Cloud and Tencent Cloud respectively; for each cloud platform, in order to facilitate users to deploy business systems thereon, preset deployment specifications are usually provided, such as API documents, deployment documents, etc., which include functional information, configuration range and configuration method of each functional parameter, so that users can deploy the business system on the cloud platform according to the information contained in the deployment specification.
[0003] However, since different cloud platforms provide different deployment specifications, such as different functions, setting methods and setting ranges of parameters, when performing hybrid deployment on different cloud platforms, it is usually necessary to first obtain and master the deployment methods corresponding to each cloud platform, that is, the parameter configuration methods and configuration ranges corresponding to each cloud platform; then, based on each deployment specification, perform a comprehensive configuration of various functional parameters in the business system; this method not only increases the difficulty of hybrid deployment, but also affects the deployment efficiency; and currently, manual methods are still mainly used to master the deployment specifications of different cloud platforms, which are easily affected by human factors, resulting in parameter configuration errors, missing configuration parameters, etc., which greatly increases the probability of errors, further reduces the efficiency and quality of deployment, and may even lead to serious consequences. Summary of the invention
[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a parameter configuration method, system, terminal and medium based on Kubernetes hybrid deployment, which are used to solve the problems that the existing hybrid deployment method is difficult, has low deployment efficiency, and is easily affected by human factors, resulting in parameter configuration errors, missing configuration parameters, etc.
[0005] In order to solve the above technical problems, the present invention provides a parameter configuration method based on Kubernetes hybrid deployment in a first aspect, which is used to automatically configure the parameters of the business unit when the business unit in the business system is deployed to different cloud platforms; wherein each cloud platform configures a corresponding deployment document, and the deployment document includes each deployment function and deployment parameter information corresponding to the deployment function, and the deployment parameter information includes the parameter function, configuration method and configuration range of the deployment parameter; the parameter configuration method based on Kubernetes hybrid deployment includes: based on the deployment document corresponding to each cloud platform, detecting whether the current business unit is a business function to be deployed; when it is detected that the current business unit is a business function to be deployed, based on the deployment document, setting the deployment parameters associated with the business function as associated deployment parameters; and determining the general configuration parameters in the associated deployment parameters, the general configuration parameters are associated deployment parameters with the same parameter function; based on the configuration method and configuration range of each deployment parameter in the deployment document, determining the configuration method and configuration range of the general configuration parameters.
[0006] In one embodiment of the present invention, the detection of whether the current business unit is a business function to be deployed includes: obtaining the business function of the business unit; detecting whether each of the deployment documents includes a deployment function that is identical to the business function, and if so, treating the business unit as a business function to be deployed, and setting the deployment function that is identical to the business function as a general deployment function; if not, executing this step for the next business unit.
[0007] In one embodiment of the present invention, a natural language processing method is used to detect whether each of the deployment documents includes a deployment function that is the same as the business function.
[0008] In one embodiment of the present invention, the method for obtaining the common configuration parameters includes: based on the parameter functions of the deployment parameters in each of the deployment documents, detecting whether there are associated deployment parameters with the same parameter functions between the associated deployment parameters; if so, setting the associated deployment parameters with the same parameter functions as the common configuration parameters in the business unit.
[0009] In one embodiment of the present invention, the configuration method and configuration range of the general configuration parameters are determined based on the configuration method and configuration range in the deployment document, including: obtaining the configuration method and configuration range of each of the general configuration parameters in the corresponding configuration document; selecting the same method from each configuration method corresponding to each of the general configuration parameters as the configuration method of the general configuration parameters, and selecting the same range from the configuration range corresponding to each of the general configuration parameters as the configuration range of the general configuration parameters, so as to obtain the business parameters after automatic deployment.
[0010] In one embodiment of the present invention, the parameter configuration method based on Kubernetes hybrid deployment also includes: based on the parameter functions of the deployment parameters in each of the deployment documents, detecting whether there are associated deployment parameters with the same parameter functions between the associated deployment parameters, if not, setting the associated deployment parameters with different parameter functions as independent configuration parameters; detecting whether each of the independent configuration parameters belongs to a configuration parameter of the default class, if so, setting the independent configuration parameter as the default configuration parameter; and, based on the configuration method and configuration range in the deployment document, determining the configuration method and configuration range of the default configuration parameter.
[0011] In one embodiment of the present invention, the configuration method and configuration range of the default configuration parameters are determined based on the configuration method and configuration range in the deployment document, including: obtaining the configuration method and configuration range of each of the default configuration parameters in the corresponding configuration document, and using the configuration method as the configuration method of the default configuration parameters, and using the configuration range as the configuration range of the default configuration parameters.
[0012] In a second aspect, the present invention provides a parameter configuration device based on Kubernetes hybrid deployment, which is used to automatically configure the parameters of a business unit in a business system when the business unit is deployed to different cloud platforms; wherein each cloud platform configures a corresponding deployment document, and the deployment document includes each deployment function and deployment parameter information corresponding to the deployment function, and the deployment parameter information includes the parameter function, configuration method and configuration range of the deployment parameter; the parameter configuration device based on Kubernetes hybrid deployment includes: a business function detection unit, which is used to detect whether the current business unit is a business function to be deployed according to the deployment documents corresponding to each cloud platform; a general configuration parameter acquisition unit, which is used to set the deployment parameters associated with the business function as associated deployment parameters based on the deployment document when detecting that the current business unit is a business function to be deployed; and determine the general configuration parameters from the associated deployment parameters, and the general configuration parameters are associated deployment parameters with the same parameter functions; a configuration unit, which is used to determine the configuration method and configuration range of the general configuration parameters based on the configuration method and configuration range in the deployment document.
[0013] In one embodiment of the present invention, the parameter configuration device based on Kubernetes hybrid deployment also includes: an independent configuration parameter acquisition unit, which is used to detect whether there are deployment parameters with the same parameter functions between the configuration documents based on the parameter functions of the deployment parameters in each deployment document. If not, the deployment parameters with different parameter functions are set as independent configuration parameters.
[0014] The present invention provides a terminal in a third aspect, comprising: a processor and a memory, wherein the memory is communicatively connected to the processor; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any of the parameter configuration methods based on Kubernetes hybrid deployment as described above.
[0015] In a fourth aspect, the present invention provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the parameter configuration method based on Kubernetes hybrid deployment as described above is implemented.
[0016] As described above, the parameter configuration method, device, terminal and computer storage medium based on Kubernetes hybrid deployment provided by the present invention obtain the deployment documents corresponding to each cloud platform, obtain the associated deployment parameters corresponding to the business functions to be deployed, and determine the common configuration parameters with the same parameter functions in each associated deployment parameter; and based on the deployment document, determine the configuration mode and configuration range of the common configuration parameters, so that there is no need to master the parameter configuration rules corresponding to each cloud platform, and the automatic configuration of the deployment parameters can be realized conveniently and efficiently, thereby improving the deployment efficiency and automation level of each business unit during hybrid deployment.
[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of an application scenario of the parameter configuration method based on Kubernetes hybrid deployment in one embodiment of the present invention;
[0019] Figure 2 This is a flow chart of a parameter configuration method based on Kubernetes hybrid deployment in one embodiment of the present invention;
[0020] Figure 3 This is a structural diagram of a parameter configuration device based on Kubernetes hybrid deployment in one embodiment of the present invention;
[0021] Figure 4 It is a schematic diagram of the structure of the terminal in one embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0023] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0024] It should also be noted that if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0025] In order to solve the technical problems existing in the prior art, the present invention provides a parameter configuration method based on Kubernetes hybrid deployment, which is used to automatically configure the parameters of the business units in the business system when they are deployed to different cloud platforms.
[0026] Among them, the Kubernetes is an open source container cluster management unit used to automatically deploy, expand and manage containerized applications.
[0027] See also Figure 1 , which is a schematic diagram of an application scenario of the hybrid deployment parameter configuration method based on Kubernetes according to an embodiment of the present invention. Figure 1 As shown, the method is applicable to an application end, which is connected to more than two cloud platforms; the business system in the application end is based on Kubernetes to implement the call to the storage containers in each cloud platform.
[0028] See also Figure 2 , showing a flow chart of the parameter configuration method based on Kubernetes hybrid deployment provided in an embodiment of the present invention; Figure 2 As shown, for a single business unit in a business system, the method includes the following steps:
[0029] S100, based on the deployment documents corresponding to each cloud platform, detecting whether the current business unit is a business function to be deployed;
[0030] The business unit is a module in the business system used to implement a specific function; the business function to be deployed is a business function waiting to be deployed on different cloud platforms;
[0031] In a specific implementation, the business unit includes a log collection module, whose corresponding business function is to collect log information stored on each cloud platform.
[0032] Specifically, when this step is executed, it includes:
[0033] Obtaining the business function of the business unit;
[0034] In the deployment documents corresponding to each cloud platform, check whether they all include deployment functions that are the same as the business functions. If so, take the business unit as the business function to be deployed, and set the deployment function that is the same as the business function as a general deployment function; if not, execute this step for the next business unit.
[0035] Among them, the deployment document includes specification information when the cloud platform is deployed, and the specification information includes but is not limited to deployment functions and deployment parameter information corresponding to the deployment functions; the deployment parameter information includes deployment parameter name, parameter function, deployment method, deployment scope or other deployment specifications; optionally, the deployment document includes API documentation.
[0036] In a specific implementation, the API documents corresponding to each cloud platform are captured on each cloud platform; each deployment function contained in each API document is obtained; it is detected in each API document whether there is a deployment function identical to the business function. If so, it indicates that the business function can be deployed in each cloud platform, and the business function is set as the business function to be deployed; and the deployment function identical to the business function to be deployed is set as a general deployment function.
[0037] Optionally, natural language processing is used to check whether each of the deployment documents includes a deployment function that is the same as the business function.
[0038] S200, when it is detected that the current business unit is a business function to be deployed, based on the deployment document, setting the deployment parameters associated with the business function as associated deployment parameters; and determining common configuration parameters in the associated deployment parameters;
[0039] The common configuration parameters are the associated deployment parameters having the same parameter functions on different cloud platforms;
[0040] Specifically, after detecting that the current business unit is a business function to be deployed, the parameter function corresponding to each associated deployment parameter is obtained based on the parameter function corresponding to each deployment parameter in each deployment document; and it is detected whether there are associated deployment parameters with the same parameter function between the associated deployment parameters. If so, the associated deployment parameters with the same parameter function are set as the common configuration parameters in the business unit.
[0041] The parameter function is the function and role of the deployment parameter in the deployment; for example, when the deployment function is log collection, the deployment parameters include word segmentation parameters, index parameters, collection time and collection size, and the corresponding parameter functions are: dividing words, adding indexes, obtaining collection time and obtaining collection size.
[0042] In a specific implementation, the functional information is log collection. On the first cloud platform, the deployment parameters include a first word segmentation parameter and a first index parameter; on the second cloud platform, the deployment parameters include a second word segmentation parameter and a second index parameter; since the first word segmentation parameter and the second word segmentation parameter have the same parameter function, the word segmentation parameter is used as a general configuration parameter for the log collection; similarly, since the first index parameter and the second index parameter have the same parameter function, the index parameter is used as a general configuration parameter for the log collection.
[0043] Optionally, natural language processing is used to detect whether each of the deployment documents includes a deployment function that is the same as the business function.
[0044] S300, determining the configuration mode and configuration range of the common configuration parameters based on the configuration mode and configuration range in the deployment document, so as to realize automatic deployment of the business unit.
[0045] Specifically, obtaining the configuration mode and configuration range of each of the common configuration parameters in the corresponding configuration document;
[0046] The same method is selected from the configuration methods corresponding to the general configuration parameters as the configuration method of the general configuration parameters, and the same range is selected from the configuration ranges corresponding to the general configuration parameters as the configuration range of the general configuration parameters to obtain the business parameters after automatic deployment.
[0047] Exemplarily, when the log collection module is deployed in a hybrid cloud on Alibaba Cloud, Huawei Cloud, and Tencent Cloud, after sorting out the API parameters of each cloud platform of Alibaba Cloud and Huawei Cloud, the common configuration parameters are obtained as the word segmentation parameters and the retrieval parameters; when there are three word segmentation methods A, B, and C and inverted index methods on Alibaba Cloud, and two word segmentation methods A and B and inverted index methods on Huawei Cloud, the two word segmentation methods A and B are used as the configuration methods of the common word segmentation parameters, and the inverted index method is used as the configuration method of the index parameters, so as to ensure the universality of the hybrid cloud deployment.
[0048] In other embodiments, the parameter configuration method based on Kubernetes hybrid deployment, when executing step S200, further includes: determining independent configuration parameters in the associated deployment parameters, detecting whether each of the independent configuration parameters belongs to a configuration parameter of the default class, and if so, setting the independent configuration parameter as a default configuration parameter.
[0049] The independent configuration parameters are parameters that are configured separately according to the needs of each cloud platform, that is, the associated deployment parameters with different parameter functions on different cloud platforms;
[0050] The configuration parameters of the default class are parameters that must be deployed by the business unit on different cloud platforms.
[0051] Specifically, based on the parameter functions of the deployment parameters in each of the deployment documents, it is detected whether there are deployment parameters with the same parameter functions between the configuration documents. If not, the deployment parameters with different parameter functions are set as independent configuration parameters.
[0052] And, the parameter configuration method based on Kubernetes hybrid deployment also includes:
[0053] Based on the configuration mode and configuration range in the deployment document, the configuration mode and configuration range of the default configuration parameters are determined.
[0054] Specifically, the configuration mode and configuration range of each of the default configuration parameters in the corresponding configuration document are obtained, and the configuration mode is used as the configuration mode of the default configuration parameter, and the configuration range is used as the configuration range of the default configuration parameter.
[0055] That is, during the deployment of the business unit to different cloud platforms, if a certain cloud platform does not include the default configuration parameter, no execution processing corresponding to the default configuration parameter will be performed.
[0056] In order to solve the technical problems existing in the prior art, the present invention provides a parameter configuration device based on Kubernetes hybrid deployment, which is used to automatically configure the corresponding parameters of the business system when the business system is deployed in a hybrid cloud, that is, when the business units in the business system are deployed to different cloud platforms.
[0057] See also Figure 3 , showing a structural schematic diagram of the parameter configuration device based on Kubernetes hybrid deployment provided in an embodiment of the present invention.
[0058] like Figure 3 As shown, the parameter configuration device 30 based on Kubernetes hybrid deployment includes a business function detection unit 31, a general configuration parameter acquisition unit 32 and a configuration unit 33;
[0059] The business function detection unit 31 is used to detect whether the current business unit is a business function to be deployed according to the deployment documents corresponding to each cloud platform;
[0060] The general configuration parameter acquisition unit 32 is used to, when detecting that the current business unit is a business function to be deployed, set the deployment parameters associated with the business function as associated deployment parameters based on the deployment document; and determine general configuration parameters from the associated deployment parameters, the general configuration parameters being associated deployment parameters with the same function as the parameters;
[0061] The common configuration parameters are the associated deployment parameters having the same parameter functions on different cloud platforms;
[0062] Specifically, when the general configuration parameter acquisition unit 32 is executed, it includes: based on the parameter function of the deployment parameters in each of the deployment documents, detecting whether there are deployment parameters with the same parameter function between the configuration documents, and if so, setting the deployment parameters with the same parameter function as the general configuration parameters in the business unit.
[0063] Optionally, natural language processing is used to detect whether each of the deployment documents includes a deployment function that is the same as the business function.
[0064] The configuration unit 33 is used to determine the configuration mode and configuration range of the common configuration parameters based on the configuration mode and configuration range in the deployment document.
[0065] Specifically, when the configuration unit 33 is executed, it includes: obtaining the configuration method and configuration range of each of the general configuration parameters in the corresponding configuration document; selecting the same method from each configuration method corresponding to each of the general configuration parameters as the configuration method of the general configuration parameter, and selecting the same range from the configuration range corresponding to each of the general configuration parameters as the configuration range of the general configuration parameter, so as to obtain the business parameters after automatic deployment.
[0066] Optionally, the parameter configuration device based on Kubernetes hybrid deployment further includes: an independent configuration parameter acquisition unit, a default configuration parameter acquisition unit, and a default configuration parameter configuration unit;
[0067] The independent configuration parameter acquisition unit is used to detect whether there are deployment parameters with the same parameter function between the configuration documents based on the parameter function of the deployment parameters in each deployment document. If not, the deployment parameters with different parameter functions are set as independent configuration parameters.
[0068] The independent configuration parameters are parameters that are configured separately according to the needs of each cloud platform, that is, the associated deployment parameters with different parameter functions on different cloud platforms.
[0069] The default configuration parameter acquisition unit is used to detect whether each of the independent configuration parameters belongs to a configuration parameter of the default class, and if so, set the independent configuration parameter as a default configuration parameter;
[0070] The configuration parameters of the default class are parameters that must be deployed by the business unit on different cloud platforms.
[0071] Specifically, based on the parameter functions of the deployment parameters in each of the deployment documents, it is detected whether there are deployment parameters with the same parameter functions between the configuration documents. If not, the deployment parameters with different parameter functions are set as independent configuration parameters.
[0072] The default configuration parameter configuration unit is used to determine the configuration mode and configuration range of the default configuration parameters according to the configuration mode and configuration range in the deployment document.
[0073] Specifically, the configuration mode and configuration range of each of the default configuration parameters in the corresponding configuration document are obtained, and the configuration mode is used as the configuration mode of the default configuration parameter, and the configuration range is used as the configuration range of the default configuration parameter.
[0074] In order to solve the technical problems existing in the prior art, the embodiment of the present invention further provides a terminal. Please refer to 4, which shows a schematic diagram of the structure of the terminal of the present invention; Figure 4As shown, the terminal 4 includes a memory 41 and a processor 42 that are interconnected; the memory 41 is used to store computer programs, and the processor 42 is used to execute the computer programs stored in the memory, so that when the terminal executes, any step in the parameter configuration method based on Kubernetes hybrid deployment as described above can be implemented.
[0075] Optionally, the number of the memories may be one or more, and the number of the processors may be one or more. Figure 4 Take one as an example.
[0076] Optionally, the processor in the terminal follows the following Figure 2 The steps in the parameter configuration method based on Kubernetes hybrid deployment shown load one or more instructions corresponding to the application process into the memory, and the processor runs the application stored in the memory, thereby realizing the various functions in the parameter configuration method based on Kubernetes hybrid deployment, which will not be repeated here.
[0077] It should be noted that the memory includes but is not limited to random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage. Similarly, the processor may also be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0078] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is called by a processor, the execution is as follows: Figure 2 The steps in the parameter configuration method based on Kubernetes hybrid deployment are shown. The computer-readable storage medium may include a random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0079] In summary, the parameter configuration method, device, terminal and computer storage medium based on Kubernetes hybrid deployment provided by the present invention obtain the deployment documents corresponding to each cloud platform, obtain the associated deployment parameters corresponding to the business functions to be deployed, and determine the common configuration parameters with the same parameter functions in each associated deployment parameter; and based on the deployment document, determine the configuration mode and configuration range of the common configuration parameters, so that there is no need to master the parameter configuration rules corresponding to each cloud platform, and the automatic configuration of the deployment parameters can be realized conveniently and efficiently, thereby improving the deployment efficiency and automation level of each business unit in hybrid deployment.
[0080] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A parameter configuration method based on Kubernetes hybrid deployment, characterized in that: When deploying business units in a business system to different cloud platforms, based on each deployment specification, automatically configure the parameters of the business units; wherein each cloud platform configures a corresponding deployment document, the deployment document includes each deployment function and deployment parameter information corresponding to the deployment function, and the deployment parameter information includes the parameter function, configuration method and configuration range of the deployment parameter; For a single business unit, the parameter configuration method based on Kubernetes hybrid deployment includes: Based on the deployment documents corresponding to each cloud platform, detecting whether the current business unit is a business function to be deployed; When it is detected that the current business unit is a business function to be deployed, based on the deployment document, the deployment parameters associated with the business function are set as associated deployment parameters; and common configuration parameters are determined in the associated deployment parameters, the common configuration parameters being associated deployment parameters with the same function as the parameters; Determining the configuration mode and configuration range of the common configuration parameters based on the configuration mode and configuration range of each deployment parameter in the deployment document; Wherein, determining the common configuration parameters in the associated deployment parameters includes: Based on the parameter function corresponding to each deployment parameter in each deployment document, the parameter function corresponding to each associated deployment parameter is obtained, and it is detected whether there are associated deployment parameters with the same parameter function between the associated deployment parameters. If so, the associated deployment parameters with the same parameter function are set as common configuration parameters in the business unit.
2. According to the parameter configuration method based on Kubernetes hybrid deployment according to claim 1, it is characterized in that The detecting whether the current business unit is a business function to be deployed includes: Obtaining the business function of the business unit; Check whether each of the deployment documents includes the same deployment function as the business function. If so, take the business unit as the business function to be deployed, and set the same deployment function as the business function as a common deployment function; if not, execute this step for the next business unit.
3. According to the parameter configuration method based on Kubernetes hybrid deployment according to claim 2, it is characterized in that A natural language processing method is used to detect whether each of the deployment documents includes a deployment function that is the same as the business function.
4. According to the parameter configuration method based on Kubernetes hybrid deployment according to claim 1, it is characterized in that The method for obtaining the general configuration parameters includes: Based on the parameter functions of the deployment parameters in each of the deployment documents, it is detected whether there are associated deployment parameters with the same parameter functions among the associated deployment parameters. If so, the associated deployment parameters with the same parameter functions are set as common configuration parameters in the business unit.
5. The parameter configuration method based on Kubernetes hybrid deployment according to claim 1, characterized in that: The determining the configuration mode and configuration range of the common configuration parameters based on the configuration mode and configuration range in the deployment document includes: Obtaining the configuration mode and configuration range of each of the common configuration parameters in the corresponding configuration document; The same method is selected from the configuration methods corresponding to the general configuration parameters as the configuration method of the general configuration parameters, and the same range is selected from the configuration ranges corresponding to the general configuration parameters as the configuration range of the general configuration parameters to obtain the business parameters after automatic deployment.
6. The parameter configuration method based on Kubernetes hybrid deployment according to claim 4 is characterized in that: Also includes: Based on the parameter functions of the deployment parameters in each of the deployment documents, detecting whether there are associated deployment parameters with the same parameter functions among the associated deployment parameters, if not, setting the associated deployment parameters with different parameter functions as independent configuration parameters; Detecting whether each of the independent configuration parameters belongs to a configuration parameter of the default class, and if so, setting the independent configuration parameter as a default configuration parameter; and, Based on the configuration mode and configuration range in the deployment document, the configuration mode and configuration range of the default configuration parameters are determined.
7. The parameter configuration method based on Kubernetes hybrid deployment according to claim 6 is characterized in that: The determining the configuration mode and configuration range of the default configuration parameters based on the configuration mode and configuration range in the deployment document includes: The configuration mode and configuration range of each of the default configuration parameters in the corresponding configuration document are obtained, and the configuration mode is used as the configuration mode of the default configuration parameter, and the configuration range is used as the configuration range of the default configuration parameter.
8. A parameter configuration device based on Kubernetes hybrid deployment, characterized in that: When deploying business units in a business system to different cloud platforms, based on each deployment specification, automatically configure the parameters of the business units; wherein each cloud platform configures a corresponding deployment document, the deployment document includes each deployment function and deployment parameter information corresponding to the deployment function, and the deployment parameter information includes the parameter function, configuration method and configuration range of the deployment parameter; For a single business unit, the parameter configuration device based on Kubernetes hybrid deployment includes: The business function detection unit is used to detect whether the current business unit is a business function to be deployed according to the deployment documents corresponding to each cloud platform; A general configuration parameter acquisition unit is used to, when detecting that the current business unit is a business function to be deployed, set the deployment parameters associated with the business function as associated deployment parameters based on the deployment document; and determine general configuration parameters from the associated deployment parameters, the general configuration parameters being associated deployment parameters with the same function as the parameter; A configuration unit, configured to determine a configuration mode and a configuration range of the common configuration parameters based on the configuration mode and the configuration range in the deployment document; Wherein, determining the common configuration parameters in the associated deployment parameters includes: Based on the parameter function corresponding to each deployment parameter in each deployment document, the parameter function corresponding to each associated deployment parameter is obtained, and it is detected whether there are associated deployment parameters with the same parameter function between the associated deployment parameters. If so, the associated deployment parameters with the same parameter function are set as common configuration parameters in the business unit.
9. A terminal, characterized in that: include: A processor and a memory, wherein the memory is communicatively connected to the processor; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the parameter configuration method based on Kubernetes hybrid deployment as described in any one of claims 1 to 7.
10. A computer storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the parameter configuration method based on Kubernetes hybrid deployment is implemented as described in any one of claims 1 to 7.
Citation Information
Patent Citations
System and method for realizing simple deployment and using private cloud
CN105404530A
Method and apparatus for cloud platform management, electronic device, and storage medium
WO2022170760A1