【发布时间】:2017-04-17 12:39:00
【问题描述】:
我正在尝试按照此处的说明使用 HTTPS 负载平衡器设置 IAP:https://cloud.google.com/iap/docs/load-balancer-howto
我的后端是 gke 集群,它在端口 80 上有一个入口来访问 http web 服务器。
前端是带有有效证书的 https。
流量通过 HTTPS FE 从 LB 路由到 Web 服务器没有任何问题,但是当我想使用以下命令启用 IAP 时:
gcloud beta compute backend-services update k8s-be-30324--34c500f0e91c741a --iap=enabled --global
它返回以下输出:
WARNING: IAP only protects requests that go through the Cloud Load Balancer. See the IAP documentation for important security best practices: https://cloud.google.com/iap/
WARNING: IAP has been enabled for a backend service that does not use HTTPS. Data sent from the Load Balancer to your VM will not be encrypted.
ERROR: (gcloud.beta.compute.backend-services.update) There was a problem modifying the resource:
- Invalid value for field 'resource.iap': ''. Backend service with IAP enabled requires at least one HTTPS proxy.
感谢任何建议!谢谢
【问题讨论】:
标签: google-cloud-platform gcloud