简体   繁体   English

当使用具有多个 static IP 地址的 Cloud NAT 时,GKE 是否可以将特定的出站 IP 地址分配给 Pod?

[英]Is it possible in GKE to assign a specific outbound IP Address to a Pod when using Cloud NAT with multiple static IP adresses?

I'm running a private GKE cluster with Cloud NAT.我正在使用 Cloud NAT 运行私有 GKE 集群。 Cloud NAT has multiple static ip addresses assigned. Cloud NAT 分配了多个 static ip 地址。 Is it possible for me to tell a pod to always use one of those ip addresses as source ip?我是否可以告诉 pod 始终使用其中一个 ip 地址作为源 ip?

Answering the question:回答问题:

Is it possible in GKE to assign a specific outbound IP Address to a Pod when using Cloud NAT with multiple static IP addresses?当使用 Cloud NAT 和多个 static IP 地址时,GKE 中是否可以将特定的出站 IP 地址分配给 Pod?

In short, no.简而言之,没有。 There is no option to modify the Cloud NAT (and Cloud Router ) in a way that would make specific Pods to have a specific IP address when connecting to the external sources.没有选项可以修改Cloud NAT (和Cloud Router ),以使特定 Pod 在连接到外部源时具有特定的Pods地址。

You could also consider creating a Feature Request for it at:您还可以考虑在以下位置为其创建功能请求:


Additional resources:其他资源:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM