- Create a new DevOps toolchain:
- Go to the Dashboard >> DevOps and click on
Create a Toolchain. - If deploying a Kubernetes based application create a toolchain by selecting
Develop a Kubernetes app with Helm. - If deploying a Cloud Foundry based application create a toolchain by selecting
Develop a Cloud Foundry app. - Follow prompts and provide the required information such as toolchain name, git repository, api key, etc..
- Go to the Dashboard >> DevOps and click on
- Running as a Kubernetes based application:
- Rename the directory from
app-nameunder the ./chart directory to the correct name of the application. - Edit the
Chart.yamlfile underchart\<app-name>and update the value of thenamefield to the application name (as specified in step 1). - Edit the
values.yamlfile underchart\<app-name>and update the value of therepositoryfield accordingly (update domain, namespace and application name). - Set up Ingress.
- Rename the directory from
If your application requires a persistent file storage, see here: Set up Persistent Volume Claim for file storage.
-
Running as a Cloud Foundry application:
- Update the
namefield inmanifest.ymlfile to reflect the correct name of the application that will be deployed.
- Update the
-
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.
-
If the
Deploy Helm Chartjob in the finalPRODstage fails with theError: UPGRADE FAILED: "<app-name>" has no deployed releaseserror, follow the steps below:- Delete the deployed Helm chart for this application by running the command:
helm del --purge <app-name>. - Restart the delivery pipeline from the very beginning.
- Delete the deployed Helm chart for this application by running the command: