云部署对私有 GKE 的访问

问题描述 投票:0回答:2

花了很长时间尝试遵循 https://cloud.google.com/architecture/accessing-private-gke-clusters-with-cloud-build-private-pools 并让我的私有工作池访问我的私有 GKE 集群,我设法让它工作。

但是,我现在尝试使用 Cloud Deploy 将工作负载部署到我的私有 GKE 集群。由于 Cloud Deploy 不使用我的 Cloud Build 私有工作人员池,因此它无法利用工作人员池和 GKE 之间的连接。有没有办法让 Cloud Deploy 访问私有 GKE?我在网上找不到任何相关内容。

谢谢!

google-cloud-platform google-kubernetes-engine cicd gke-networking google-cloud-deploy
2个回答
0
投票

这是可能的!为此,您需要配置一个执行环境来指定您想要使用的私有工作池。您可以在这里找到更多详细信息:

https://cloud.google.com/deploy/docs/execution-environment#chang_from_the_default_pool_to_a_private_pool


0
投票

我一直在尝试遵循相同的文档https://cloud.google.com/architecture/accessing-private-gke-clusters-with-cloud-build-private-pools但我还不能,我创建了所有vpc、工作池运行良好,但工作池无法到达私有 Gke 集群。你如何配置它?我将感谢您的帮助。

© www.soinside.com 2019 - 2024. All rights reserved.