diff --git a/test/deploy-cluster.sh b/test/deploy-cluster.sh index b96bf55aa08..03a2c4c1fab 100755 --- a/test/deploy-cluster.sh +++ b/test/deploy-cluster.sh @@ -62,6 +62,8 @@ else # easily compare performance. We can reduce usage later. NODE_POOL_CONFIG_ARG="--num-nodes=2 --machine-type=n1-standard-8 \ --enable-autoscaling --max-nodes=8 --min-nodes=2" + # Use new kubernetes master to improve workload identity stability. + KUBERNETES_VERSION_ARG="--cluster-version=1.14.8-gke.17" if [ "$ENABLE_WORKLOAD_IDENTITY" = true ]; then WI_ARG="--identity-namespace=$PROJECT.svc.id.goog" SCOPE_ARG= @@ -71,7 +73,7 @@ else # reference: https://cloud.google.com/compute/docs/access/service-accounts#accesscopesiam SCOPE_ARG="--scopes=storage-rw,cloud-platform" fi - gcloud beta container clusters create ${TEST_CLUSTER} ${SCOPE_ARG} ${NODE_POOL_CONFIG_ARG} ${WI_ARG} + gcloud beta container clusters create ${TEST_CLUSTER} ${SCOPE_ARG} ${NODE_POOL_CONFIG_ARG} ${WI_ARG} ${KUBERNETES_VERSION_ARG} fi gcloud container clusters get-credentials ${TEST_CLUSTER}