Installing IBM Cloud Private Cloud Foundry with the Cloud Foundry deployment tool
Cloud Foundry deployment tool
The Cloud Foundry deployment tool is automatically installed on the inception container when you run the launch.sh script. You can use the Cloud Foundry deployment tool to manage extensions, upload your configurations, and start and
monitor deployments.
By default, the Cloud Foundry deployment tool is accessible from all IP addresses and uses port 30100 to communicate. You can use the following parameters to restrict client access:
- Use the
-ihparameter to configure wanted source IP addresses. The default, 0.0.0.0 is open for all sources. - Use the
-puiparameter to enable wanted ports for the Cloud Foundry deployment tool. The default is 30100. - Use the
-pssluiparameter to enable the wanted port for HTTPS access to the Cloud Foundry deployment tool. The default is 30102. - Use the
-dcparameter to specify the path to your own domain certificate. - Use the
-dkparameter to specify the path to your own RSA key. - Use the
-hnparameter to specify the domain of the certificate. The default islocalhost. -
Use the
-rcparameter to renew the certificates or if you want to migrate from an auto-generated certificate to your own certificate.Note: if the
-dcand-dkparameters are not provided, a valid self-signed certificate is created for the provided domain. See Providing certificates for IBM Cloud Private Cloud Foundry for more information.
For example:
./launch.sh -n IBMCloudPrivate -b ./BOM.yml -c /home/user/data -e LICENSE=accept -ih 10.10.1.2 -pui 9090
Configuring Cloud Foundry deployment tool settings
Complete the following steps to configure the Cloud Foundry deployment tool:
-
From the installation directory, run the following command:
./cm apiCopy the
Token. You need the token to set up the Cloud Foundry deployment tool. -
From a web browser, browse to
http[s]://<IP>:<Port>where IP is the IP address of the server that is running the inception container (usually the server from which you enter thelaunch.shcommand). The default ports are 30100 (HTTP) and 30102 (HTTPS) or the ports you specified in the-puiand-pssluiparameters of thelaunch.shcommand.Note: If you use autogenerated or self-signed certificates, your browser must trust the Cloud Foundry deployment tool URL.
-
Click
Settingsand complete the following fields:-
Configuration manager API endpoint
http[s]://<IP>:<port>where IP is the IP address of the server that is running the inception container and the port is the default port 30101 (HTTP) and 30103 (HTTPS) or the port you specified in the-pand-psslparameters of thelaunch.shcommand.Note: If you use auto-generated or self-signed certificate, your browser must trust the Configuration manager API endpoint URL.
-
Token This is the token that you copied in step 1.
-
-
Click
Submit.
Managing extensions
IBM provides extensions that are ready for you to use. You can also add your own custom extensions. For more information about using extensions, see Using extensions in IBM® Cloud Private Cloud Foundry.
You can view, register, and unregister extensions.
- To view all available extensions and to register or unregister custom extensions, select
Register new extensionsfrom the menu. From the same page, you can also add and remove an extension in the states file. - To add or remove extensions from the deployment states file, select
Statesfrom the menu. - Monitor deployments and view deployment logs from the
Statestable. To view logs for a specific deployment state, click the doc icon that is associated with the state you are interested in.
Configurations
You can upload, create, edit, or view and deploy your configurations.
- To upload new configurations for main deployments and extensions, select
Upload configurationfrom the menu. - To create a new configuration, select the configuration type and click the pencil. Now you can edit all parameters of the configuration. Next, click
SaveorSave and Exitto save the configuration. - After the configuration is created or uploaded, the configuration settings are validated. If no errors are found, click
Start deploymentto deploy your configuration. TheStateswindow opens for you to view the deployment progress.
States
From the States page, you can follow up on the deployment.
- To view the logs of a state, click the
documenticon next to the state. - To change the status of a state or multiple states, select the states for which you want to change the status. Click the pencil, then select the status that you want to set.
- To reset all states to
READY, click the menu and selectReset statuses. - To add an extension, click
Add extension. - The tick icon in the
Next runcolumn indicates the corresponding state that runs at the next deployment. For each change in the status of a state, this column updates based on the state dependencies. For example, if theDeploy Directoris set to ready then a tick icon appears next to thePrepare Directorto indicate that it runs at the next deployment.
Server logs
From the Server logs menu, you can see the logs of the Configuration manager.