Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

2. Remote Deployment 🤝

Gary edited this page Jul 12, 2022 · 5 revisions

Pre-Requisites

Follow the Cloud Platform guide to authenticate and configure your local kubectl to connect to the cluster.

Follow the Cloud Platform guide to read secrets in kubernetes.

Populate a ECR_URL value for use in .env using the following command:

kubectl get secret ecr-repo-cloudopsbot-prod -o jsonpath='{.data.repo_url}' | base64 --decode

Populate a SECRET_KEY_BASE value for use in .env using the following command:

openssl rand -base64 32

Deployment

To release a Helm Chart upgrade to the k8s cluster in Cloud Platform, please follow the steps below:

Tag your commit (example: v1.0.5 below).

git tag -a v1.0.5 -m "Update help response - v1.0.5"

Push the tag.

git push origin v1.0.5

This triggers a GitHub Action which pushed the v1.0.5 docker image to the Cloud Platform Container Registry (ECR).

Update the appVersion value of the chart in cloudopsbot/Chart.yaml file to the appropriate values (an example: v1.0.1). Also increase the Chart version appropriately.

Now run the following to deploy the helm chart:

make deploy

🥳 Congratulations, the new version of CloudOpsBot is now running.

Useful Commands

Run the below command to get a list of available tags:

git tag