Skip to content

Commit

Permalink
fix: alb, external dns chart install
Browse files Browse the repository at this point in the history
  • Loading branch information
NEM-NE committed Sep 14, 2022
1 parent bf9176e commit b5dcd49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions live/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ terraform apply -var="global_name=$SO1S_GLOBAL_NAME"

# Using for ALB, External DNS Chart
RESULT=`terraform apply -var="global_name=$SO1S_GLOBAL_NAME"`
CLUSTER_NAME=`echo $RESULT | grep cluster_id | cut -d ' ' -f3`
CLUSTER_NAME=`echo $RESULT | grep cluster_id | cut -d '"' -f2`
echo $CLUSTER_NAME
VPC_ID=`echo $RESULT | grep vpc_id | cut -d ' ' -f3`
VPC_ID=`echo $RESULT | grep vpc_id | cut -d '"' -f2`
echo $VPC_ID
ROLE_ARN=`echo $RESULT | grep external_dns_role_arn | cut -d ' ' -f3`
ROLE_ARN=`echo $RESULT | grep external_dns_role_arn | cut -d '"' -f2`
echo $ROLE_ARN

[[ $SO1S_ENV_NUMBER = 1 ]] && SO1S_CLUSTER_NAME="$SO1S_GLOBAL_NAME-so1s" || SO1S_CLUSTER_NAME="$SO1S_GLOBAL_NAME-so1s-dev"
Expand Down Expand Up @@ -109,4 +109,4 @@ kubectl apply -f $SO1S_DEPLOY_REPO_PATH/project/project-$SO1S_ENV_NAME.yaml --wa
echo -e "\n"
echo "Run root-$SO1S_ENV_NAME.yaml application"
echo "-> kubectl apply -f $SO1S_DEPLOY_REPO_PATH/root-$SO1S_ENV_NAME.yaml"
kubectl apply -f $SO1S_DEPLOY_REPO_PATH/root-$SO1S_ENV_NAME.yaml --wait
kubectl apply -f $SO1S_DEPLOY_REPO_PATH/root-$SO1S_ENV_NAME.yaml --wait

0 comments on commit b5dcd49

Please sign in to comment.