简体   繁体   English

Cloud Run On Anthos - 仅限 VPC 访问

[英]Cloud Run On Anthos - VPC access only

I have deployed a service on Cloud Run Anthos.我已经在 Cloud Run Anthos 上部署了一项服务。 Access to the service is only through VPC private connection and not to be exposed to outside.仅通过VPC专线接入服务,不对外暴露。 I have a VM and trying to access the service and not able to connect on the internal IP. Can this service be accessed only through GKE cluster external IP with a valid domain?我有一个 VM 并尝试访问该服务,但无法连接到内部 IP。只能通过具有有效域的 GKE 集群外部 IP 访问此服务吗? It doesn't make sense with option provided with Anthos deployment that allow access only through internal "This service is deployed in a cluster-local configuration , and can only be reached from inside the Kube.netes cluster. You can use kubectl port-forward to set up a tunnel from your desktop to the cluster" Anthos 部署提供的选项没有意义,该选项仅允许通过内部访问“此服务部署在cluster-local configuration中,并且只能从 Kube.netes 集群内部访问。您可以使用kubectl port-forward设置从您的桌面到集群的隧道”

Is internal means, not the GCP project context but only within the cluster?是内部手段,不是 GCP 项目上下文,而是仅在集群内?

gke-workloads-anthos-cloud-run anthos-cluster-cloud-run-service-deployed gke-workloads-anthos-cloud-run anthos-cluster-cloud-run-service-deployed

[cloud-run-anthos-gke][3]
  [3]: https://i.stack.imgur.com/z8iE9.png

If you need to access to the service from outside, you need to expose it with NodePort.如果需要从外部访问该服务,则需要使用 NodePort 将其公开。 In ClusterIP mode, it is only accessible from inside the cluster在 ClusterIP 模式下,它只能从集群内部访问

More detail in the kube.netes documentation kube.netes 文档中的更多详细信息

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

相关问题 Cloud Run for Anthos 在 GCP 中的部署下不可用 - Cloud Run for Anthos is not available under deployment in GCP 如何使用无服务器 vpc 连接器启用 Cloud Run 以仅将流量限制到特定 VPC 资源 - How to enable Cloud Run using serverless vpc connector to restrict traffic to a specific VPC resource only 如何使用无服务器自动续订 Google Cloud 上的 Cloud Run for Anthos 的 Let's Encrypt SSL 证书? - How to automatically renew the Let's Encrypt SSL certificate for Cloud Run for Anthos on Google Cloud with Serverless? 如何在 Cloud Run for Anthos on Google Cloud 集群上启用 HTTPS? - How do I enable HTTPS on a Cloud Run for Anthos on Google Cloud cluster? 使用无服务器 VPC 连接器连接到 Cloud Run 服务时出现 403 - Getting 403 when connecting to a Cloud Run service when using a Serverless VPC Connector Lambda in VPC访问RDS - Lambda in VPC access RDS 使用 VPC 和 peer.networking 时如何从 Google Cloud Run 连接到 MongoDB Atlas? - How do you connect to MongoDB Atlas from Google Cloud Run when using VPC and peer networking? 我是否需要 Provate VPC 以允许从另一个 GCP 项目访问云 SQL? - Do I need a Provate VPC to Allow Cloud SQL Access from another GCP project? 为 GCP 认证用户访问 Cloud Run URL - Access Cloud Run URL for GCP authenticated users 如何让 Cloud Tasks 只运行一次? - How to have Cloud Tasks run only once?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM