[英]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.