diff --git a/.github/workflows/on-demand-build-docker-image-deploy-preview.yml b/.github/workflows/on-demand-build-docker-image-deploy-preview.yml index 7b0ce7c158..3f4e6133c2 100644 --- a/.github/workflows/on-demand-build-docker-image-deploy-preview.yml +++ b/.github/workflows/on-demand-build-docker-image-deploy-preview.yml @@ -261,7 +261,6 @@ jobs: - name: Deploy Helm chart env: - AWS_ROLE_ARN: ${{ secrets.APPSMITH_EKS_AWS_ROLE_ARN }} AWS_ACCESS_KEY_ID: ${{ secrets.APPSMITH_CI_AWS_SECRET_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.APPSMITH_CI_AWS_SECRET_ACCESS_KEY }} IMAGE_HASH: ${{ needs.push-image.outputs.imageHash }} diff --git a/scripts/deploy_preview.sh b/scripts/deploy_preview.sh index bbea66c2c8..1e55adc345 100755 --- a/scripts/deploy_preview.sh +++ b/scripts/deploy_preview.sh @@ -16,23 +16,12 @@ export cluster_name=uatx-cluster echo "[default] region = $region output = json -# [profile eksci] -# role_arn = $AWS_ROLE_ARN -# output = json -# region = $region -# source_profile = default" > ~/.aws/config echo "Region: $region" echo "Cluster name: $cluster_name" echo "Pull Request Number: $PULL_REQUEST_NUMBER" echo "DP_EFS_ID: $DP_EFS_ID" -# sts_output="$(aws sts assume-role --role-arn "$AWS_ROLE_ARN" --role-session-name ekscisession)" - -# export AWS_ACCESS_KEY_ID="$(echo "$sts_output" | jq -r .Credentials.AccessKeyId)" -# export AWS_SECRET_ACCESS_KEY="$(echo "$sts_output" | jq -r .Credentials.SecretAccessKey)" -# export AWS_SESSION_TOKEN="$(echo "$sts_output" | jq -r .Credentials.SessionToken)" - export NAMESPACE="$edition$PULL_REQUEST_NUMBER" export CHARTNAME="$edition$PULL_REQUEST_NUMBER" export SECRET="$edition$PULL_REQUEST_NUMBER" @@ -117,4 +106,5 @@ helm upgrade -i "$CHARTNAME" "appsmith-ee/$HELMCHART" -n "$NAMESPACE" --create-n --set applicationConfig.APPSMITH_CARBON_API_BASE_PATH="$APPSMITH_CARBON_API_BASE_PATH" \ --set applicationConfig.APPSMITH_AI_SERVER_MANAGED_HOSTING="$APPSMITH_AI_SERVER_MANAGED_HOSTING" \ --set applicationConfig.IN_DOCKER='$IN_DOCKER' \ - --set applicationConfig.APPSMITH_CUSTOMER_PORTAL_URL="https://release-customer.appsmith.com" + --set applicationConfig.APPSMITH_CUSTOMER_PORTAL_URL="https://release-customer.appsmith.com" \ + -f dp-node-affinity-values.yaml diff --git a/scripts/dp-node-affinity-values.yaml b/scripts/dp-node-affinity-values.yaml new file mode 100644 index 0000000000..662178e3d1 --- /dev/null +++ b/scripts/dp-node-affinity-values.yaml @@ -0,0 +1,15 @@ +affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: instance_name + operator: In + values: + - uatx-shared + +tolerations: + - key: instance_name + operator: Equal + value: uatx-shared + effect: NoSchedule \ No newline at end of file