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

Method for setting static IP (Internet Protocol) in Pod in Kubernetes

A static, IP address technology, applied in program control design, program control devices, instruments, etc., can solve problems such as high cost of transformation, high requirements for maintenance platform, and wide impact of transformation

Inactive Publication Date: 2020-02-04
广西梯度科技股份有限公司
View PDF6 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Aiming at the deficiencies of the existing technology, the present invention provides a method for setting a static IP in the Pod in Kubernetes, which solves the problem that when a large number of applications need to be migrated to the Kubernetes cluster, if the transformation is carried out according to the original migration specification, the transformation cost will be incurred Large scale, wide scope of transformation, and high maintenance platform requirements

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 for setting static IP (Internet Protocol) in Pod in Kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0022] see figure 1 , the embodiment of the present invention provides a technical solution: a method for setting a static IP in a Pod in Kubernetes, which specifically includes the following steps:

[0023] S1. First implement the Pod network management function based on the Kubernetes cluster platform. When it is necessary to implement workflows such as creating a container network, container IP allocation, and container IP recycling, if you need to create a...

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 setting a static IP (Internet Protocol) in Pod in Kubernetes. The method comprises the following steps: firstly, a Pod network management function is realized based on a Kubernetes cluster platform, and when workflows such as container network creation, container IP distribution, container IP recovery and the like need to be realized, if the container network needs to be created through the network management platform, the method relates to the technical field of system framework construction. According to the method for setting the static IP in the Pod inthe Kubernetes, the static IP is set; a Mysql cluster 5 is queried; a specified container network configuration is acquired; the corresponding IP record in the Mysql is updated; the fact the Pod IP record has been used is identified; meanwhile, a query result is returned to the network plug-in; after the network plug-in receives the network configuration of the container, a Network Namespace technology of Linux is adopted to switch to a Network Namespace of a container, the specified network configuration is configured for the container, and the use mode of the Pod IP is fixed, so that the efficiency of migrating the application to the Kubernetes cluster can be improved, the maintenance cost is reduced, and the method and the system are compatible with the modes of deploying the application and operating and maintaining the application by a user to the greatest extent.

Description

technical field [0001] The invention relates to the technical field of system framework construction, in particular to a method for setting a static IP in a Pod in Kubernetes. Background technique [0002] Kubernetes is a container cluster management system, which can simplify application workflow and speed up development. Through Kubernetes technology, container-based application deployment, maintenance and rolling upgrade can be realized; load balancing and service discovery; cross-machine and cross-region Cluster scheduling; automatic scaling; stateless services and stateful services; multiple types of Volume support; support for declarative configuration files to manage the entire life cycle of containers and other functions. Due to the flexibility of Kubernetes management containers, it is necessary to migrate to Kubernetes The services on the cluster are transformed to meet the application deployment specifications in the Kubernetes cluster. The contents that need to b...

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): G06F9/455
CPCG06F9/45558G06F2009/45595G06F2009/45562
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