FogROS2 icon indicating copy to clipboard operation
FogROS2 copied to clipboard

Add GCP Compute Engine & Kubernetes Integration

Open EmersonDove opened this issue 3 years ago • 0 comments

This PR adds full support for GCP and Kubernetes.

GCP Usage:

machine1 = fogros2.GCPCloudInstance(
        project_id='gcp-project'
    )

Kubernetes Usage

machine1 = fogros2.GCPKubeInstance()

Requires gcloud CLI and/or kubectl on local host

Changes to review:

  • The cloud instance exposes an ip property and now a vpn_ip property. Kubernetes has separate addresses for the two services so a modification was also made to the VPN class
  • Enforced the ubuntu username in ClouldInstance

Known Issues:

  • boto3 (any python dependencies) is not recognized on remote launch for both kube and GCP
  • Depending on kubectl gcloud configuration a warning can disrupt the parsing done for kubernetes responses

EmersonDove avatar Jul 20 '22 17:07 EmersonDove