CloudCasa supports direct integration with Google Cloud Platform on a per-project basis using a custom role. It uses the integration to automatically discover all GKE clusters within the given project and to provide advanced backup and restore features. These include backup of GKE cluster configuration parameters and automatic creation or re-creation of clusters on restore.
Select the Google Cloud project that you want to connect to with CloudCasa:
gcloud config set project <project-id>
You can list projects with the following command:
gcloud projects list
Once the project ID is set, enable the required APIs. These are the IAM , Deployment Manager, Compute Engine, and Cloud Resource Manager APIs.
Since we deploy a custom role and bind it to a Service Account, before the final step we need to make sure that Google Cloud Shell has the right permissions.
- In the Google Cloud console, Go to the IAM page.
- From the list of principals, locate the principal with the name Google APIs Service Agent.
- Edit the service account's roles by clicking the Edit button, then add the Roles > Owner role.
- Click Save to apply the role.
Once the template is deployed successfully, the "Owner" role can and should be removed from the "Google APIs Service Agent" principal.
In order to complete the integration with your GCP project, execute the command displayed in the CloudCasa UI with the following format:
sh connect_with_cloudcasa.sh <cloudcasa-cloud-account-id>
Once the script finishes successfully, the Cloud Account in CloudCasa will be marked as active, and the resource inventory process will start. In case of any errors, please contact CloudCasa Support.