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

Method for automatically managing virtual IP in Kubernetes environment

An automatic management and environment technology, applied in the computer field, can solve problems such as configuring different priorities and affecting automatic switching of computers, and achieve the effects of improving ease of use and manageability, reducing image size, and simplifying configuration

Pending Publication Date: 2020-05-15
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the implementation of Keepalived requires the NIC to support the VRRP protocol, and each computer needs to be configured with a different priority; at the same time, a user-defined detection script is required. Once the script is not written properly, it will affect the automatic switching of the VIP when the computer fails.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] This embodiment proposes a method for automatically managing virtual IPs in a Kubernetes environment. This method first defines the RBAC-related authority operations required by the Pod and uses Configmap to define the five basic operations implemented by the Shell function, and then manages the single-point Pod through the Deployment to run the busybox image. And mount the Configmap, realize the virtual IP of the target computer through the Kubernetes client, and automatically switch the virtual IP to the normal computer when the computer fails.

[0031] In this embodiment, defining the RBAC-related permission operations required by Pod includes defining ServiceAccount, Role and ClusterRole, and binding the defined ServiceAccount to Role and ClusterRole to ensure that ServiceAccount has basic Kubernetes object CRUD permissions.

[0032] In this embodiment, Configmap is used to define five basic operations implemented by the Shell function. The five basic operations incl...

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 automatically managing a virtual IP in a Kubernetes environment, and relates to the technical field of computers. The method comprises the following steps: firstly, defining RBAC related authority operation required by a Pod and five basic operations realized by defining a Shell function by using Config map; then, managing a single point Pod through a Deployment to run a Busybox mirror image, and mounting a Config map; and enabling a target computer to run a virtual IP through a Kubernetes client, and when the computer breaks down, automatically switching the virtual IP to a normal computer. According to the method, smooth migration of the virtual IP can be conveniently realized by means of node check and Pod automatic migration of the Kubernetes cluster, compared with a mainstream mode Keepalived, the image size is reduced and the configuration is simplified by using the busybox image and the Shell function; and a computer network card is not required to support a VRRP protocol, and different nodes need different configurations, so that the configuration stability is ensured, and the usability and manageability are greatly improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for automatically managing virtual IPs in a Kubernetes environment. Background technique [0002] A virtual IP (VIP) is an IP address that is not associated with a specific computer or a network interface card (NIC) within a computer. Packets are sent to this VIP address, but all data still goes through the real network interface. VIP is mostly used for connection redundancy, a VIP address can be used in the event of a computer or NIC failure, and another optional computer or NIC can respond to the connection. [0003] At present, the mainstream way to realize virtual IP is Keepalived, which regularly detects the status of the computer by calling the script provided by the user. If a computer fails, Keepalived will remove the faulty computer from its own system and replace it with other computers. The work of the computer; when the computer is normal, Keepalived will...

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): H04L12/24H04L12/26H04L29/12
CPCH04L41/0663H04L43/0817H04L61/5007
Inventor 李珂潘峰蔡卫卫高传集
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
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