Skip to content

Commit

Permalink
Use new K8s version to improve workload identity stability (#2777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobgy authored and k8s-ci-robot committed Dec 31, 2019
1 parent a73d8f1 commit 76d6e56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/deploy-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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}
Expand Down

0 comments on commit 76d6e56

Please sign in to comment.