Use a Google Cloud Platform (GCP) destination to deploy application components to your GCP cloud environment. It’s important to note that a deployment pipeline can have only one public cloud destination (AWS, GCP or Azure).

 

Before you add a GCP destination, make sure you've created a GCP connection.

 

Click the Deploy tab. Clickto create a new deployment pipeline or click Edit on an existing pipeline.

 

Add a GCP destination node or click and existing GCP node. Complete the following steps to select a deployment environment and configure your Compute Engine virtual machine (VM) instances. When you’re done, click away to close the node.

Select a Deployment Environment and Configure Environments

Select a deployment environment, such as development or production, for your virtual servers. Your instances will be launched to the Virtual Private Cloud (VPC) network, subnet and zone for this environment.

ShuttleOps creates an initial “dev” environment for your default GCP connection. This environment uses the default network, subnet and zone for the GCP project linked to your default connection. You can change the environment name; if you want to delete the environment, you must delete the deployment pipeline associated with it. You can also create additional environments with different network/subnet/zone combinations.

Tip If you’d like ShuttleOps to automatically create an environment, click on a deployment pipeline tile on the Deploy tab, then click Create New Environment. ShuttleOps creates a copy of the pipeline and assigns a new environment. You can modify the environment name, network, subnet and zone using the following instructions.


To select or configure an environment, click .

 

To select a deployment environment for your virtual servers, select a GCP connection in the Credentials list, then select an environment. The environment’s network, subnet and zone are shown. If you want to create a new environment, select a GCP connection in the Credentials list, then click . To change the name, network, subnet or zone for an environment, click .

Configure Your Virtual Servers

Configure the virtual servers you want to deploy. To add a virtual server, click Click to Add.

Tip  To ensure your application components are automatically added to your virtual servers, add your application components to the pipeline first. If you add a component after you create your virtual servers, you’ll need to manually add it to the servers.

 

Enter the following information to configure the virtual server.

 

Select the Instance Type

Use the Instance tab to select the instance type and configure the instance.

Instance Type  Select an instance type from the list. Use the search bar to find an instance type or expand an instance tier to view options.

Instances  Enter the number copies of the instance to launch.

Size (GB)  Enter the instance storage size.

SSH User  Enter the name of a public SSH key you’ve already added to a GCP project. Click the list, then click Create new. Enter the SSH key, then click Save.

Create Firewall Rules

Use the Firewall tab to create virtual firewall rules to control inbound and outbound traffic for different source IP ranges. Note that IP ranges must be entered using CIDR notation. You’ll see that a default set of firewall rules is already configured for all IP addresses (0.0.0.0/0). You can change or delete the rules in this group. You can also delete the entire group.

To add firewall rules for a new source IP range:

  1. Click Add new firewall. Enter the source IP address ranges (using CDIR notation). Use commas to separate the ranges. The rules in this group will apply only to traffic that has a source IP address in these ranges.
  2. For each firewall rule, click Add new rule and enter the protocol, port, and description. You can also create a copy of a rule and modify it.
  3. When you’re done adding rules, click Save.

To change the source IP ranges for a rule group, click or hover over the source IP ranges, then click . Change the source IP address ranges (using CDIR notation); use commas to separate the ranges. When you’re done, click Save.

To delete a rule group, click or hover over the source IP ranges, then click .

Save Your Settings

Click Save. The virtual server is added to the GCP destination.

 

Add Application Components to Your Virtual Servers

By default, all application components in your deployment pipeline are added to the virtual servers you’ve configured in your GCP destination. You can modify each virtual server to add or remove application components.

Tip  To ensure your application components are automatically added to your virtual servers, add your application components to the pipeline first. If you add a component after you create your virtual servers, you’ll need to manually add it to the servers.

Click beside a component to remove it from a virtual server. To add an application component to a server, click  and select a component.

 

Clone a Virtual Server

You can quickly create a virtual server by cloning an existing server. Just click the banner of the virtual server tile, then click Clone.

 

Modify Virtual Server Settings or Delete a Virtual Server

To modify a virtual server, click on the server tile. You can also click the banner to quickly change the number of instances and the server size. To delete a virtual server, click the banner, then click Delete.