Skip to content

Create new base Helm Files from BlueGreen StarterKit

READ THIS:
If you're creating a brand new repo and not replacing Jinja with Helm in an existing repo, skip this step and move on the Update Helm Values Files section

Use Starter-Kit to create a new repo

  1. Create a new repo using the appropriate starter-kit update link with blue/green helm deployment strategy using an "-v2 appendage.

Example Repo Name: your-existing-repo-name-v2

  1. Rename the deployment/app directory to deployment/helm

  2. Remove all of the -v2 naming from the new files

  3. You may Use the following commands to remove -v2 from inside of the chart files

    #You may use sed cmds to replace all references of the temp repo nam
    sed -i '.bak' ā€™s/{temp_repo_name<span style="color:red">-v2</span>}/{target_repo_name}/gā€™ *.yaml
    sed -i '.bak' 's/{temp_repo_name}/{target_repo_name}/gā€™ templates/*.tpl
    
  4. If you want to use the cert files from the starter-kit instead of your existing cert files, do the following:

    Rename the certs files in the deployment/helm/certs folder to the proper application name, e.g Example: your-existing-repo-name-v2-dev.crt ā†’ your-existing-repo-name-dev.crt

Important Note: It is highly recommended that you make all of the changes for the rest of this document inside of a single branch and PR it to main/master. This is due to these steps breaking your deployment with Jinja and if you need to rollback, we want it to be as seamless as possible.

Add Helm to the main repository

  1. Copy the deployment folder from the starter-kit repo you made above into the main repository

  2. Move/copy certificates into deployment/helm/certs directory