1. Create a new project (optional)
A project forms the basis for creating, enabling and using all GCP services, managing APIs, enabling billing, adding and removing collaborators, and managing permissions. You would need browse to the GCP cloud resource manager and click on create project to get started. You can follow these instructions to create a new GCP project.
Give the project a suitable name (eg:
yugabyte-gcp) and note the project ID (eg:
yugabyte-gcp). You should see a dialog that looks like the screenshot below.
2. Set up a new service account
Yugaware admin console requires a service account with the appropriate permissions to provision and manage compute instances. Go to the
IAM & admin ->
Service accounts and click on
Create Service Account. You can follow these instructions to create a service account.
Fill the form with the following values:
- Service account name is
yugaware(you can customize the name if needed).
- Set role to
- Check the box for
Furnish a new private key, choose
Here is a screenshot with the above values in the form, click create once the values are filled in.
NOTE: Your browser would have downloaded the respective JSON format key. It is important to store it safely. This JSON key is needed to configure the Yugaware Admin Console.
3. Creating a firewall rule
In order to access Yugaware from outside the GCP environment, you would need to enable firewall rules. You will at minimum need to:
- Access the Yugaware instance over ssh (port tcp:22)
- Check, manage and upgrade Yugaware (port tcp:8800)
- View the Yugaware console ui (port tcp:80)
Let us create a firewall entry enabling all of that!
VPC network ->
Firewall rules tab:
NOTE: If this is a new project, you might see a message saying
Compute Engine is getting ready. If so, you would need to wait for a while. Once complete, you should see the default set of firewall rules for your default network, as shown below.
Click on the
CREATE FIREWALL RULE button and fill in the following.
yugaware-firewall-ruleas the name (you can change the name if you want).
- Add a description (eg:
Firewall setup for Yugaware Admin Console).
- Add a tag
Target tagsfield. This will be used later when creating instances.
- Add the appropriate ip addresses to the
Source IP rangesfield. To allow access from any machine, add
0.0.0.0/0but note that this is not very secure.
- Add the ports
Protocol and portsfield.
You should see something like the screenshot below, click
4. Provision instance for Yugaware
Create an instance to run Yugaware. In order to do so, go to
Compute Engine ->
VM instances and click on
Create. Fill in the following values.
yugaware-1as the name.
- Pick a region/zone (eg:
n1-standard-4) as the machine type.
- Change the boot disk image to
Ubuntu 16.04and increase the boot disk size to
- Open the
Management, disks, networking, SSH keys->
yugaware-serveras the network tag (or the custom name you chose when setting up the firewall rules).
- Switch to the
SSH Keystab and add a custom public key and login user to this instance. Follow these instructions to create a new SSH key pair, as well as the expected format for this field (eg:
ssh-rsa [KEY_VALUE] [USERNAME]). This is important to enable
sshaccess to this machine.
Note on boot disk customization:
Note on networking customization:
Create to launch the YugaWare server.