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

Application message publishing method based on k8s

A technology of application information and application information, which is applied in resource allocation, program control design, instruments, etc., can solve the problem of insufficient security of data use, and achieve the effect of increasing security, deploying light weight, and reducing dependence

Pending Publication Date: 2022-01-04
新华智云科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a version upgrade method and a computer-readable storage medium to solve the technical problem of insufficient data security in the above-mentioned prior art

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
  • Application message publishing method based on k8s
  • Application message publishing method based on k8s

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] Such as figure 1 As shown, this embodiment includes a k8s-based application message publishing method, which is characterized in that it includes the following steps:

[0048] Create a business application and a configMap configuration file with the same name as the business application, group the business application and configMap configuration files, and set a group configuration operator for each group;

[0049] Obtain the first business parameter passed by the console or business application, and perform authentication according to the first business parameter; if the authentication is passed, call the API interface to monitor whether the group configuration operator changes, and if there is a change, modify the configMap configuration file;

[0050] Update the modified configMap configuration file to the directory specified by the container; the business application monitors whether the configMap configuration file is updated, and consumes the message if it is upda...

Embodiment 2

[0069] A computer-readable storage medium. Computer instructions are stored on the computer-readable storage medium. When the computer instructions are executed by a processor, the steps of the method in Embodiment 1 are implemented.

[0070] Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

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 k8s-based application message publishing method, which comprises the following steps of: creating a service application and a configMap configuration file with the same name as the service application, grouping the service application and the configMap configuration file, collecting a first service parameter transmitted by a console or the service application, and performing authentication according to the first service parameter; if the authentication is passed, an API interface is called to monitor whether a group configuration operator is changed, and if the group configuration operator is changed, a configMap configuration file is modified; the modified ConfigMap configuration file is updated to a directory specified by the container; the service application monitors whether the configMap configuration file is updated or not, if yes, the message is consumed, and the method has the beneficial effects that the safety of data use is improved, the service application can control the configuration information and authority authentication of other service applications in the group, the dependence on middleware is reduced through the configuration information, the deployment is lighter, and the deployment efficiency is improved. Meanwhile, various languages are supported to read configuration information.

Description

technical field [0001] The invention belongs to the technical field of message release, and more specifically, the invention relates to a k8s-based application message release method. Background technique [0002] Kubernetes, referred to as k8s for short, is an important tool for Google's open source orchestration container. At present, more and more business applications have realized microservices, and almost all business applications are deployed in containers. The current technical solution has the following defects: [0003] First, the purpose of micro-service is to reduce the coupling of services as much as possible, but the cost of sharing data information between services and publishing / subscribing messages becomes higher and higher. How to reduce the dependence between applications and support cross-language worth considering. [0004] Second, the current existing technology usually uses configMap to share data. Multiple business applications are mounted on the sam...

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/455G06F9/50G06F21/31
CPCG06F9/45558G06F9/5077G06F21/31G06F2009/45595G06F2009/45587
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