If you use Google Cloud Platform (GCP) as a resource provider, you can deploy Cloud Discovery & Visibility (CDV) on a virtual machine (VM) running in the GCP environment.
To set up CDV to run on a VM on GCP:
In Google Cloud Platform, create a virtual private cloud (VPC) that will host CDV.
Typically, you can do so from the Google Cloud Platform dashboard. Click VPC networks in the navigator on the left, then click Create VPC Network.
- Create the virtual machine as follows:
In the navigator on the left, click Compute Engine, then select VM instances.Tip: You might need to go to a higher level in the navigator to find the Compute Engine item.
Click the Create Instance button, then select New VM instance.
In the Identity and API access page, select the service account and access scopes needed for CDV:
- In Service account, select Compute Engine default service account.
- In Access scope, select Allow full access to all Cloud APIs.
- Click to select the Allow HTTP traffic and Allow HTTPS traffic checkboxes. Doing so will automatically create a firewall and open standard ports 80 and 443 on your machine.
- Complete the rest of the details based on needs of your organization. When you're done, click the Create button.
- Open the SSH port as follows:
Within Google Cloud Platform, within in the VPC network, click Firewall in the navigator on the left.
Configure a firewall rule for your VM. Fill in details and choose options as needed for your organization.In addition, make sure you configure the following:
- For the rule's Network, select the same network as the virtual machine.
- For Source IPv4 ranges, add:
- Under Protocols and ports, select
Specified protocols and
ports. Then, select the
tcp checkbox and enter
22for the tcp port.
- Open an SSH shell in the virtual machine as follows:
Within Google Cloud Platform, in the Compute Engine page, click the VM instances tab.
In the list of instances, find the virtual machine instance that you just created. In that entry's Connect column, click the drop-down arrow next to SSH and choose View gcloud command.
In the gcloud command line window that appears, click the Run in Cloud Shell button (at the bottom).
Install docker. You can use the following command to do so:
sudo apt update && sudo apt install docker.io
Continue with the standard procedure for setting up a CDV image.
For more details, see Installing the Cloud Discovery & Visibility Docker image.Tip: When setting up authentication for CDV in GCP, you can tell CDV to use the VM instance's credentials (instead of specifying and uploading them manually). For more details, see GCP Service Account.