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.