Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Local service operation method based on kubernetes platform

A technology of local service and operation method, applied in the field of service operation, which can solve the problems that kubernetes cannot support local startup services, kubernetes' configuration and hosting scheme cannot cover all scenarios, and the final operation fails after an error is reported.

Pending Publication Date: 2022-02-18
上海致景信息科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above solution can only be used within the kubernetes environment. At the same time, developers also need to start the service locally (that is, run the service on their own computer) for debugging. Since this scenario has been separated from kubernetes, the kubernetes-based configuration hosting solution cannot cover all scenarios
[0004] The existing kubernetes-based configuration hosting solution cannot support local start-up services, which makes the service report an error when it is started locally and eventually fail to run

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Local service operation method based on kubernetes platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0066] see figure 1 , in the present invention, a kind of local service operation method based on kubernetes platform comprises the following steps:

[0067]Step 1, the developer opens the Maven plug-in in the toolbar of InterlliJ IDEA, and selects the K8S tool;

[0068] Step 2, when the application compiles code java into class, download all configurations from the namespace specified by the user through the API provided by the kubernetes Java client;

[0069] Step 3, this process follows a certain file algorithm format text, and the core uses the '---' symbol to merge all configurations into one file;

[0070] Step 4, this process will actively write the merged configuration data into the classes folder in the Maven output folder of the project in the form of a file, and modify the file name to application.yml;

[0071] Step 5. At this point, the developer can easily start the application by himself.

[0072] The specific operation method that the file format can be saved...

Embodiment 2

[0084] The specific operation steps of the monitoring process in this embodiment are:

[0085] If the change of the temperature module exceeds the preset temperature value, the charger will be powered off, which is used for the protection setting of the charger.

[0086] The preset temperature value of this embodiment adopts the reading unit to read the value;

[0087] The reading unit is used to read the information value of the temperature and display the corresponding information prompt.

[0088] The reading unit of this embodiment is used to take images and videos in the environment of the charger, and deliver the images and videos to the analysis unit;

[0089] The analysis unit is used to obtain the position information of each temperature value in the environment exceeding the pre-approved value through the radar wave, and transmit the position information to the obstacle analysis unit.

[0090] The developer of this embodiment is used to control the work of the time ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a local service operation method based on a kubernetes platform. The method comprises the following steps: step 1, enabling a developer to open a toolbar Maven plug-in of InterlliJ IDEA, and selecting a K8S tool; step 2, when an application compiling code java is changed into class, downloading all configurations from a namespace specified by a user through an API (Application Program Interface) provided by a kubernetes Java client; and step 3, according to a certain file algorithm format text, combining all configurations into a file by using '---' symbols as a core. Configuration data synchronization is realized by utilizing the kubernetes client, so that a developer can continue to implement local debugging of the application without changing any development habit.

Description

technical field [0001] The invention relates to the technical field of service operation, in particular to a local service operation method based on a kubernetes platform. Background technique [0002] When deploying the kubernetes environment, the ConfigMap capability in the facility is used to host the external configuration of the application. This technology can mount the configuration in the form of a file in the application service directory, which conforms to the configuration file rules of Spring boot and is adopted by Spring Boot is regarded as an external configuration file and loads related configurations into the application, thus indirectly making ConfigMap act as a configuration center. [0003] However, the above solution can only be used within the kubernetes environment. At the same time, developers also have the need to start the service locally (that is, run the service on their own computer) for debugging. Since this scenario has been separated from kuber...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F11/36
CPCG06F9/44505G06F9/44526G06F11/3624
Inventor 赵振洪宋振一陈钟浩管瑞峰
Owner 上海致景信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products