Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for exposing resources in kubernetes, equipment and medium

A resource and service resource technology, applied in the field of kubernetes, can solve problems such as traffic import and no pod provision, and achieve the effect of avoiding business interruption

Active Publication Date: 2020-11-27
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF1 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In kubernetes, there are many ways to expose services to the outside world, such as nodeport, L7ingress, and L4 LoadBalancer. However, because these methods are based on DNS, they do not provide real High Availability (HA) of multiple copies of pods.
The main cause of the problem is that in a multi-replica pod, when a replica goes down, DNS does not perceive that there is an abnormal pod, and some traffic will still be imported to the abnormal pod until DNS finds that the pod is abnormal. And correct the traffic direction, it will stop importing abnormal traffic into the abnormal pod

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
  • Method and system for exposing resources in kubernetes, equipment and medium
  • Method and system for exposing resources in kubernetes, equipment and medium
  • Method and system for exposing resources in kubernetes, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0040] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0041] According to one aspect of the present invention, the embodiment of the present invention proposes a resource exposure method in kubernetes, such as figure 1 As shown, it may include the steps of:

[0042] S1, in response to receiving a requ...

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 method for exposing resources in kubernetes. The method comprises the following steps of: in response to a received request for applying for service resources, judging whether a mapping relationship between a label corresponding to a type of the service resources and a virtual IP exists in a first configuration file of keepalived service or not; in response to the absenceof the mapping relationship, acquiring a new virtual IP and establishing a mapping relationship between the new virtual IP and the label in the first configuration file; and binding the virtual IP corresponding to the label in the first configuration file to a plurality of pods corresponding to the service resources, so as to expose the plurality of pods to the outside of a kubernetes cluster byusing the virtual IP. The invention further discloses a system, computer equipment and a readable storage medium. According to the method provided by the invention, the virtual IP (VIP) is enabled tocorrespond to each pod of the service resources through keepalived, and the VIP is exposed out of the kubernetes cluster, so that each pod of the service resources is exposed out of the kubernetes cluster, and meanwhile, the problem of service interruption caused by DNS is avoided.

Description

technical field [0001] The present invention relates to the field of kubernetes, in particular to a resource exposure method, system, device and storage medium in kubernetes. Background technique [0002] In kubernetes, a variety of ways to expose services to the outside world are provided, such as nodeport, L7ingress, and L4 LoadBalancer. However, because these methods are based on DNS, they do not provide true High Availability (HA) of multiple copies of pods. The main cause of the problem is that in a multi-replica pod, when a replica goes down, DNS does not perceive that there is an abnormal pod, and some traffic will still be imported to the abnormal pod until DNS finds that the pod is abnormal. Only by correcting the traffic direction, the import of abnormal traffic to the abnormal pod will be stopped. Contents of the invention [0003] In view of this, in order to overcome at least one aspect of the above problems, an embodiment of the present invention proposes a ...

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
IPC IPC(8): H04L29/12H04L29/08
CPCH04L67/1048H04L61/2553H04L67/1074H04L67/30H04L61/4511H04L61/5053H04L67/1001H04L67/1008H04L61/4541H04L61/45
Inventor 刘鹏
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More