Reserve a range of static IPs for Kubernetes pods

爷,独闯天下 提交于 2020-01-06 04:34:08

问题


I am attempting to build a Kubernetes cluster on Google Container Engine where its pods do requests to the internet (incoming or egress traffic). These outgoing connections must be limited to a static IP or limited to a range of them.


回答1:


The external IP address is the IP address of the node machines in the GKE cluster. You can specify static IP address to these node vms from the VPC Network => External IP addresses.

A more complex option would be to create a NAT gateway on a separate VM and then route all the traffic from Kubernetes nodes through it.




回答2:


You can opt to https://github.com/doitintl/kubeIP and avoid configuring with NAT



来源:https://stackoverflow.com/questions/46687208/reserve-a-range-of-static-ips-for-kubernetes-pods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!