From 76d6e561349d7b120e6c8a6a2ddeface4d6aeba6 Mon Sep 17 00:00:00 2001 From: "Yuan (Bob) Gong" Date: Tue, 31 Dec 2019 12:07:39 +0800 Subject: [PATCH] Use new K8s version to improve workload identity stability (#2777) --- test/deploy-cluster.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}