代码之家  ›  专栏  ›  技术社区  ›  Magnus Runesson

Istio限制对谷歌云资源的访问

  •  0
  • Magnus Runesson  · 技术社区  · 8 年前

    我有一个运行谷歌容器引擎(Kubernetes)的服务。它可以访问谷歌云存储,运行良好。

    在同一个Kubernetes集群上,我安装了Istio 0.1,如下所示: https://istio.io/v-0.1/docs/tasks/installing-istio.html

    kubectl create -f <(istioctl kube-inject -f myservice.yaml) 但现在我的服务不能再访问谷歌云存储了。我收到以下错误消息:

    java.lang.IllegalArgumentException: A project ID is required for this service but could not be determined from the builder or the environment. Please set a project ID using the builder.

    在我看来,kube注入和sidecar使得我的服务无法访问我正在运行的谷歌云项目的信息。就我所知,侧车是唯一的区别。

    什么会造成这种影响?

    1 回复  |  直到 8 年前
        1
  •  0
  •   Vadim Eisenberg    8 年前

    您可能需要配置对外部服务的访问权限,如中所述 Enabling Egress Traffic :作为Kubernetes外部服务或使用 istioctl --includeIPRanges