google-cloud-platformgoogle-vpc

google cloud connectl local computer to network


Is there a way to connect a local computer to google cloud network?

I have a server building ios apps on a mac mini, and would like to be able to call/make builds from google cloud VM - and copy files from local/on prem. to Google Cloud VM.


Solution

  • You can reach your goal in a few ways:

    1. Enable ssh access to your mac mini to run commands remotely on it and use on of the options described in the documentation Transferring files to instances to transfer files between cloud and premises.

    2. Enable ssh access to your mac mini to run commands remotely and use cloud storage bucket mounted with Cloud Storage FUSE to the VM instance to upload/downlowad files between cloud and premises.

    3. Use Google Cloud VPN to connect your on-premises network to the cloud.

    In case of GKE cluster, you can find cluster CIDR range which contains IPs of Pods with the command:

     gcloud container clusters describe my-cluster | grep clusterIpv4Cidr 
    

    to use it while configuring VPN.