Define Your PCF Target Infrastructure

Updated 1 month ago by Chakravarthy Tenneti

Infrastructure Definitions are a feature-flagged replacement for Service Infrastructure.

In the Environment, you create Infrastructure Definitions that describe your target deployment environments. PCF Infrastructure Definitions specify the following:

  • The PCF deployment type.
  • The PCF Cloud Provider that you added, as described in Add Cloud Providers.
  • The PCF organization to use.
  • The target PCF space that the app you are deploying is scoped to.
  • Any specific Harness Services that you want to scope the Infrastructure Definition to. If you choose not to scope to specific Services, the Infrastructure Definition may be used with any PCF Service.

In this topic:

Before You Begin

Step 1: Add Infrastructure Definition

To add an Infrastructure Definition, do the following:

  1. In your Environment, click Add Infrastructure Definition. The Infrastructure Definition dialog appears.

The Infrastructure Definition dialog has the following fields.

Step 2: Name

Enter a name for your Infrastructure Definition. You will use this name to select this Infrastructure Definition when you create Harness Workflows.

Step 3: Cloud Provider Type

Select Pivotal Cloud Foundry.

Step 4: Deployment Type

Select Pivotal Cloud Foundry.

Step 5: Cloud Provider

Select the Cloud Provider to use to connect to the foundation. This will be one of the PCF Cloud Providers you set up in Add Cloud Providers.

The roles associated with the PCF user account used in the Cloud Provider determine what orgs will appear in the Organization setting.

Step 6: Organization

The active PCF orgs available to the PCF user account used in the Cloud Provider are listed. Select the PCF org for the development account.

Step 7: Space

Select the space where the application you are deploying is scoped.

Step 8: Scope to Specific Services

Select this option to scope this Infrastructure Definition to the Harness PCF Service you want to deploy.

If you do not select this setting, you can select this Infrastructure Definition when you create a Workflow for any PCF Service.

Option: Use Variables in the Infrastructure Definition

You can use Service variables in the PCF Infrastructure Definition Organization and Space settings:

This allows you to set the orgs and spaces in a Service, and have the Infrastructure Definition act as a template that multiple Services can use.

The orgs specified must be available to the PCF user account used to set up the PCF Cloud Provider used in the Infrastructure Definition.

Next Steps


How did we do?