Skip to content

Promote Application Version from Dev to Stg/Prd Environment

Fetch CHAI™ Application Blueprint Details

  1. Login to CHAI™ GUI at https://app.cloudhedge.io/ or "CHAI™-appliance-url".

  2. Navigate to CruizeApplication Blueprints.

  3. We have created a sample application blueprint called 'eshop'. We will be using the "v1" version for the promotion.


Promote Application Blueprint of Version 'v1' to Stg/Prd Environment

Execute the following command to promote the application blueprint to the gitops staging/production environment:

# Promote application blueprint
chctl cruize promote --source "eks-dev-01" --applicationName "eshop" --target "od-eks-stg-01" --appBlueprintVersion v1

The above command will promote the eshop application artifacts to the git repository monitored by ArgoCD in the EKS cluster "eks-dev-01". This ArgoCD will deploy this application to the "od-eks-stg-01" EKS cluster.

You can check the status of the deployment by navigating to the ArgoCD UI: https://localhost:8443


Fetch Deployed Application Details

Execute the following command to get the deployed application blueprint:

# Get deployed applications
chctl cruize getDeployedApps --eksBlueprintName "od-eks-stg-01"

Delete the Workload

To delete the deployed workload, use the following command:

# Delete workload
Syntax: chctl cruize deleteWorkload --blueprintName <EKS_blueprint_name> --environment <dev/stg/prod>

Example: chctl cruize deleteWorkload --blueprintName od-eks-stg-01 --environment stg