Cloud Foundry plugin
This topic describes the Deploy Cloud Foundry plugin, which supports creating spaces, deploying applications, creating routes, binding services, and using manifest files.
For more information about the Deploy Cloud Foundry plugin requirements and the configuration items (CIs) that the plugin supports, see the Cloud Foundry Plugin Reference.
Using the Deploy Cloud Foundry plugin
The Deploy Cloud Foundry plugin can push and remove applications on a Cloud Foundry organization. To use the plugin:
- Download the Deploy Cloud Foundry plugin ZIP from the distribution site.
- Unpack the plugin inside the
XL_DEPLOY_SERVER_HOME/plugins/
directory. - Restart Deploy.
Create the Cloud Foundry organization
To create a Cloud Foundry organization in Deploy:
- Under Infrastructure, create a
cloudFoundry.Organization
CI. - Specify the following properties:
- Organization Name: Organization name on the Cloud Foundry server.
- API Endpoint: API endpoint of Cloud Foundry server (example:
api.run.pivotal.io
). - Username: User name to use for authentication.
- Password: Password to use for authentication.
Provision a Cloud Foundry space
To provision a new Cloud Foundry space:
- Under Applications, create an application (
udm.Application
) and a deployment package (udm.DeploymentPackage
). - Under the deployment package, create a
cloudFoundry.SpaceSpec
CI. - Specify the Space Name to use. If not provided, the CI name will be used as the space name.
Alternatively, you can use a space that already exists in Cloud Foundry by creating a cloudFoundry.Space
CI under the cloudFoundry.Organization
CI (in Infrastructure).
Push an application to Cloud Foundry
To push an application to Cloud Foundry:
- Under Applications, create an application (
udm.Application
) and a deployment package (udm.DeploymentPackage
). - Under the deployment package, create a
cloudFoundry.AppSpec
CI. Specify the following required properties:- App Name: Application name to use.
- Build Pack: Build pack to use (example: Java, Go, Binary, and so on). To specify a custom build pack, fill in the Custom Build Pack URL property instead.
Configure Cloud Foundry services
To configure Cloud Foundry services:
- Under Applications, create an application (
udm.Application
) and a deployment package (udm.DeploymentPackage
). - Under the deployment package, create a
cloudFoundry.Services
CI. - Specify the Service Type.
Push an application to Cloud Foundry using a manifest
To push an application to Cloud Foundry:
- Under Applications, create an application (
udm.Application
) and a deployment package (udm.DeploymentPackage
). - Under the deployment package, create a
cloudFoundry.ManifestModuleSpec
CI. - In the File property, specify a ZIP file that contains the manifest file and artifacts required to create the application.