Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 2 KB

File metadata and controls

32 lines (22 loc) · 2 KB

Deployment to the IBM Cloud

Create a new toolchain

  • Create a new DevOps toolchain:
    1. Go to the Dashboard >> DevOps and click on Create a Toolchain.
    2. If deploying a Kubernetes based application create a toolchain by selecting Develop a Kubernetes app with Helm.
    3. If deploying a Cloud Foundry based application create a toolchain by selecting Develop a Cloud Foundry app.
    4. Follow prompts and provide the required information such as toolchain name, git repository, api key, etc..

Edit the required source files and deploy

  • Running as a Kubernetes based application:
    1. Rename the directory from app-name under the ./chart directory to the correct name of the application.
    2. Edit the Chart.yaml file under chart\<app-name> and update the value of the name field to the application name (as specified in step 1).
    3. Edit the values.yaml file under chart\<app-name> and update the value of the repository field accordingly (update domain, namespace and application name).
    4. Set up Ingress.

If your application requires a persistent file storage, see here: Set up Persistent Volume Claim for file storage.

  • Running as a Cloud Foundry application:

    1. Update the name field in manifest.yml file to reflect the correct name of the application that will be deployed.
  • Once the required file(s) have been changed for the Kubernetes or Cloud Foundry deployment, the toolchain will detect the change and the delivery service will deploy the application appropriately.

Troubleshooting

Fix for possible Kubernetes deployment failure(s)

  1. If the Deploy Helm Chart job in the final PROD stage fails with the Error: UPGRADE FAILED: "<app-name>" has no deployed releases error, follow the steps below:

    1. Delete the deployed Helm chart for this application by running the command: helm del --purge <app-name>.
    2. Restart the delivery pipeline from the very beginning.