From 7ced7ed8729fd78b92fad0e76d1592dac1c2425a Mon Sep 17 00:00:00 2001 From: huangzhangshu Date: Thu, 13 Jun 2024 09:56:30 +0800 Subject: [PATCH] chore:change gke node size --- .github/workflows/terraform-init.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/terraform-init.yml b/.github/workflows/terraform-init.yml index 4d02ab9..9535cb9 100644 --- a/.github/workflows/terraform-init.yml +++ b/.github/workflows/terraform-init.yml @@ -194,7 +194,7 @@ jobs: if [[ ("${{ inputs.cloud-provider }}" == "eks" || "${{ inputs.cloud-provider }}" == "aks" || "${{ inputs.cloud-provider }}" == "aks-cn" ) && -n "${COUNTS}" && -z "${NODE_SIZE}" ]]; then NODE_SIZE="$(( $COUNTS * 2 ))" elif [[ "${{ inputs.cloud-provider }}" == "gke" && -n "${COUNTS}" && -z "${NODE_SIZE}" ]]; then - NODE_SIZE="$(( $COUNTS / 2 + 1 ))" + NODE_SIZE="$(( $COUNTS / 4 + 1 ))" fi if [[ ("${{ inputs.cloud-provider }}" == "eks" || "${{ inputs.cloud-provider }}" == "aks" || "${{ inputs.cloud-provider }}" == "aks-cn" ) && -z "${NODE_SIZE}" && -z "${{ inputs.test-mode }}" ]]; then @@ -211,15 +211,15 @@ jobs: fi elif [[ "${{ inputs.cloud-provider }}" == "gke" && -z "${NODE_SIZE}" && -z "${{ inputs.test-mode }}" ]]; then if [[ "${{ inputs.kb-version }}" == "v0.5."* ]]; then - NODE_SIZE=2 + NODE_SIZE=1 elif [[ "${{ inputs.kb-version }}" == "v0.6."* ]]; then - NODE_SIZE=6 + NODE_SIZE=3 elif [[ "${{ inputs.kb-version }}" == "v0.7."* ]]; then - NODE_SIZE=11 + NODE_SIZE=6 elif [[ "${{ inputs.kb-version }}" == "v0.8."* ]]; then - NODE_SIZE=13 + NODE_SIZE=7 elif [[ "${{ inputs.kb-version }}" == "v0.9."* ]]; then - NODE_SIZE=14 + NODE_SIZE=8 fi fi