-
Notifications
You must be signed in to change notification settings - Fork 0
2. Remote Deployment 🤝
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
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.
Run the below command to get a list of available tags:
git tag
01110111 01101000 01111001 00100000 01100001 01110010 01100101 00100000 01111001 01101111 01110101 00100000 01110010 01100101 01100001 01100100 01101001 01101110 01100111 00100000 01110100 01101000 01101001 01110011 00111111