Google Cloud Dataflow 可以 运行 没有外部 IP 地址吗?

Can Google Cloud Dataflow be run without an external IP address?

我们在努力扩大 Google Cloud Dataflow 的使用时注意到的一件事是,我们将开始 运行 超出我们在使用中的 IP 地址的配额。我们知道请求增加配额是一种选择(并且已经这样做并获得了 CPU 的批准)但想知道是否(或将要)[=16] =] 没有外部 IP 地址的数据流实例(出于配额原因和 IP 地址成本)。

目前无法 运行 Google 没有外部 IP 地址的 Cloud Dataflow 实例。如果您需要额外的工人,您应该申请增加配额。

现在可以了。来自 documentation:

To turn off public IPs:

Enable Private Google Access for your network or subnetwork.

In the parameters of your Cloud Dataflow job, specify --usePublicIps=false and --network=[NETWORK] or --subnetwork=[SUBNETWORK].

有关选项的更多信息 usePublicIps

usePublicIps

boolean

Specifies whether Cloud Dataflow workers use public IP addresses. If the value is set to false, Cloud Dataflow workers use private IP addresses for all communication. In this case, if the subnetwork option is specified, the network option is ignored. Make sure that the specified network or subnetwork has Private Google Access enabled. If not set, the default value is true and Cloud Dataflow workers use public IP addresses.

现在支持...

只需添加标志

--disable-public-ips

在你的 gcloud 命令中。