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

Cloud native service uninterrupted IP replacement method based on Kubernetes

An IP network, the original technology, applied in the field of cloud computing, can solve problems such as service unavailability

Active Publication Date: 2021-06-25
中国东盟信息港股份有限公司
View PDF16 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In some special cases, you will want to modify the above-mentioned cidr network segment range. Under the existing scheme, you want to modify the cluster IP network segment and take effect. Generally, Will use the scheme of rebuilding the cluster and migrating the load, or adopt the scheme of modifying the configuration of the cluster IP network segment and rebuilding all services. Both of these schemes will cause the service to be unavailable for a period of time, which is unacceptable in some scenarios

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
  • Cloud native service uninterrupted IP replacement method based on Kubernetes
  • Cloud native service uninterrupted IP replacement method based on Kubernetes
  • Cloud native service uninterrupted IP replacement method based on Kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Such as figure 1 As shown, a method for uninterrupted IP replacement of cloud native services based on Kubernetes includes the following steps:

[0037] S1. Modify the api-server component and kube-proxy component in Kubernetes;

[0038] The Kubernetes cloud-native cluster loads and runs several modules, among which api-server is the control entry of the Kubernetes cloud-native cluster, and is mainly used to accept control requests. The modification content of the api-server component includes:

[0039] In the current api-server implementation, after receiving a request to modify the service, the ClusterIP field cannot be modified. It can neither be modified to another IP nor cleared, otherwise the request will be intercepted and an error will be reported.

[0040] When the api-server receives the service modification request, the value of the ClusterIP field of the modified service is allowed to be empty.

[0041] When the api-server receives a service modification r...

Embodiment 2

[0055] Such as image 3 , Figure 4 as shown,

[0056] In this embodiment, three Master Nodes are used as the control nodes. The control nodes are not responsible for running workloads. Only some kubernetes components run on them in the form of containers, including the application program interface server (APIServer), the controller management control center (Controller Manager ), scheduler (Scheduler).

[0057] In this embodiment, N Worker Nodes are used as work nodes, and Kubelet components and multiple container groups are run on each work node as workloads.

[0058] The API Server on each Master Node will be connected to the distributed database etcd for various resource configuration and state storage in the cluster.

[0059] Such as Figure 4 As shown, each node contains the Kubelet component, which acts as a proxy for the node to communicate with the Kubernetes cluster, and also as a management component for managing workload container groups on the node. Among th...

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 cloud native service uninterrupted IP replacement method based on Kubernetes, and belongs to the technical field of cloud computing. The method comprises the following steps of: modifying an api-server component and a kube-proxy component in the Kubernetes, and modifying the api-server component and the kube-proxy component in the Kubernetes; replacing the kube-proxy components on all the working nodes with the version modified in the step S1; S2, replacing the api-server component on the control node with the version modified in the step S1; modifying cluster IP field values of all services into null character strings in batches; restarting all the container groups in a batch rolling mode; and recovering the kube-proxy components on all the working nodes to the original versions. According to the invention, the time window can be provided, and the new and old cluster IPs in the time window can provide services, so that the client of the service is not aware, and the high reliability of the application and the continuity of the service are ensured.

Description

technical field [0001] The invention belongs to the technical field of cloud computing, in particular to a Kubernetes-based uninterrupted IP replacement method for cloud native services. Background technique [0002] Usually, in the Kubernetes cloud-native cluster, there is a resource named service, which is the most common resource type in the cluster and is mainly responsible for basic functions such as load balancing and service discovery. Each service is usually assigned a cluster IP (ClusterIP), and the cluster IP is allocated in a fixed cidr network segment, which is configured during the cluster deployment phase. [0003] In some special cases, you will want to modify the range of the above cidr network segment. Under the existing scheme, if you want to modify the cluster IP network segment and take effect, you will generally use the scheme of rebuilding the cluster and migrating the load, or modify the cluster The IP network segment configuration and the scheme of r...

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): H04L29/12
CPCH04L61/5053H04L61/5007
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