ADOT (AWS Distro for OpenTelemetry) Implementation for Simple Golang RESTful API Application (Bookstore)
-
Create Bucket S3
BUCKET_NAME="devopscorner-adot-chart" aws s3 mb "s3://${BUCKET_NAME}" --region us-west-2
-
Check If Bucket S3 Created
aws s3 ls "s3://${BUCKET_NAME}" --recursive --human-readable --summarize
helm repo list
-
Production Environment
helm s3 init "s3://${BUCKET_NAME}/prod"
-
Staging Environment
helm s3 init "s3://${BUCKET_NAME}/staging"
-
Lab Environment
helm s3 init "s3://${BUCKET_NAME}/lab"
-
Production Environment
AWS_REGION=us-west-2 helm repo add devopscorner-adot "s3://${BUCKET_NAME}/prod"
-
Staging Environment
AWS_REGION=us-west-2 helm repo add devopscorner-adot-staging "s3://${BUCKET_NAME}/staging"
-
Lab Environment
AWS_REGION=us-west-2 helm repo add devopscorner-adot-lab "s3://${BUCKET_NAME}/lab"
helm repo update
helm repo list
-
Production Environment
cd helm/template/prod
-
Staging Environment
cd helm/template/staging
-
Lab Environment
cd helm/template/lab
-
Production Environment
./helm-pack-prod.sh
-
Staging Environment
./helm-pack-staging.sh
-
Lab Environment
./helm-pack-lab.sh
-
Production Environment
./helm-push-prod.sh
-
Staging Environment
./helm-push-staging.sh
-
Lab Environment
./helm-push-lab.sh
-
Empty Bucket
aws s3 rm "s3://${BUCKET_NAME}" --recursive
-
Delete Bucket
aws s3 rb "s3://${BUCKET_NAME}" --region us-west-2
-
Cleanup Helm Repo
helm repo rm devopscorner-adot helm repo rm devopscorner-adot-staging helm repo rm devopscorner-adot-lab helm repo update