简体   繁体   中英

Cloud Run On Anthos - VPC access only

I have deployed a service on Cloud Run Anthos. Access to the service is only through VPC private connection and not to be exposed to outside. 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? 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"

Is internal means, not the GCP project context but only within the cluster?

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. In ClusterIP mode, it is only accessible from inside the cluster

More detail in the kube.netes documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM