Add GCE hostprovider
This topic shows how to add the Google Compute Engine (GCE) hostprovider, which allows to create virtual machines in the Google Cloud.
IMPORTANT
Before adding the GCE hostprovider, make sure that:
|
A typical installation sequence for the GCE hostprovider includes the following steps.
Step 1. Download a hostprovider bundle
Hostprovider distributions for ADCM come in bundles. Regarding the GCE hostprovider, a bundle is a regular archive that includes a description and logic to interact with the Google Cloud.
The steps for downloading a bundle are given below:
-
Go to the Arenadata Cluster Manager product website and click Download.
Switching to the Arenadata Cluster Manager downloading pageAnother way — go to https://network.arenadata.io/ and choose Arenadata Cluster Manager.
-
On the next page, download a required bundle. GCE hostprovider bundles are called Google Compute Engine Bundle.
Step 2. Upload a hostprovider bundle to ADCM
To upload a bundle to ADCM, follow these steps in the ADCM web interface:
-
Open the BUNDLES tab and click Upload bundle.
-
Select the downloaded bundle in the Open File Dialog.
Switching to uploading a bundleSwitching to uploading a bundle -
As a result of the performed actions, the uploaded bundle is displayed at the BUNDLES tab.
The result of successful uploading a bundle
Step 3. Create a hostprovider based on the uploaded bundle
To add a new hostprovider to ADCM on the base of the uploaded bundle, follow these steps in the ADCM web interface:
-
Open the HOSTPROVIDERS tab and click Create provider.
Creating a new hostprovider -
In the opened window:
-
Select the uploaded bundle in the Bundle field.
-
Select the desired version of the bundle in the Version field. Several versions become available in the case of different versions of the same bundle being uploaded. By default, the latest version is displayed.
-
Enter the hostprovider name in the Hostprovider name field.
-
Enter the hostprovider description in the Description field, if necessary.
-
Click Create.
Filling in the new hostprovider parameters -
-
As a result of the performed actions, the created hostprovider is displayed at the HOSTPROVIDERS tab.
The result of successful adding a hostprovider
Step 4. Configure a hostprovider
In order to configure the access to the cloud, perform the following actions:
-
Open the HOSTPROVIDERS tab, find the row with a desired hostprovider, and click the gear icon in the Config column.
Switching to configuring the hostprovider -
In the next window set the Advanced flag, fill in the necessary parameters, and click Save.
Configuring the hostproviderThe assignment of parameters is listed below.
Configuration parameters Parameter Mandatory Description Project ID
Yes
A unique project identifier in the Google Cloud. Can be copied from the Id column in the Manage resources section of the Google Cloud platform
Service Account email
Yes
A service account email. You can create and view service accounts of the project in the Service accounts section of the Google Cloud platform
Credentials JSON
Yes
Credentials of the service account in the JSON format. To upload credentials in the JSON format, navigate to the Service accounts section of the Google Cloud platform, select Create key in the Actions context menu, and get the credentials
Ssh keys
No
A list of OpenSSH keys with the
user@hostname
data in the end. When adding virtual machines, the users list is parsed from this field. Every user is created with the corresponding key -
Return to the HOSTPROVIDERS tab. As a result, the orange exclamation mark stops being displayed in the Actions column. The actions available for the configured hostprovider can be opened by clicking the icon in the Actions column.
The result of successful hostprovider configuring
Step 5. Configure ADCM
-
Open the ADCM home page and select the Settings item in the left navigation menu.
-
Fill in the credentials for Google Cloud authorization in the Google Auth pane. The parameters purpose is described in the table below.
Google authorization parameters Parameter Description client_id
A Сlient ID. See more details in the Google Cloud documentation
secret
A secret key. See more details in the Google Cloud documentation
whitelisted_domains
Domains from which the ADCM authorization is possible. For example,
arenadata.io
-
Click Save.
Configuring Google authorization in ADCM